<?php
include "../cfg.php";
include "../ini.php";
if(!$_GET["geo"]) {
print '<select name="city" style="width: 250px;" disabled="disabled"><option value="" disabled="disabled">'.$lng['all_city'].'</option></select>';
} else {
$sql = "SELECT * FROM `geocity` WHERE `country_code` = '".substr(addslashes(htmlspecialchars($_GET["geo"], ENT_QUOTES)), 0, 2)."' GROUP BY city ORDER BY city ASC";
$query = mysql_query($sql);
if(mysql_num_rows($query) != 0) {
print '<select name="city" style="width: 250px;"><option value="">'.$lng['all_city'].'</option>';
while($line = mysql_fetch_array($query)) {
print "<option value='".$line['region_code']."'>+".$line['percent']." - ".$line['city']."</option>";
}
print '</select>';
}
}
?>