-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcities.php
More file actions
33 lines (28 loc) · 903 Bytes
/
cities.php
File metadata and controls
33 lines (28 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
define('LOADED', TRUE);
include_once('include/functions.php');
includeContents("cities");
getHeader();
$citiesArray = array();
$citiesArray = getAllCities(82);
?>
<div class="citiesBox">
<center class="citiesTop"> Bulunduğunuz şehri seçiniz </center>
<?php //cityFrame div'i tüm şehirlerin listelendiği genel div ?>
<div class="cityFrame">
<?php
for($i = 0; $i < count($citiesArray); $i++)
{
//city olan kısım her şehrin görünümünü birbirinden ayıran kısım
echo "<div class=\"city\">";
echo "<div class=\"cityNum\">" .$citiesArray[$i][0]. "</div>"; // plaka kodu için olan div
echo "<div class=\"cityName\"><a href=\"".isDevelopmentModeOn()."".$citiesArray[$i][1]."/parklar\">".$citiesArray[$i][2]."</a></div>"; // il adı için olan div
echo "</div>";
}
?>
</div>
</div>
<?php
getFooter();
getHtmlEnd();
?>