GIF89a;
Direktori : /home/serb/public_html/includes/ |
Current File : /home/serb/public_html/includes/header_cities.php |
<link rel="stylesheet" href="css2/nanoscroller.css"> <link rel="stylesheet" href="css2/main.css"> <link rel="stylesheet" href="css2/style.css"> <div class="statedetails"> <div class="stdtls_header"> <? $sql_country="SELECT * from countries where ccode='".$_SESSION['countryname']."'"; $res_countrty=execute_query($sql_country); $row_country=mysql_fetch_array($res_countrty); echo $row_country['country']; ?> <span style="float:right; padding-top:2px; margin-right:5px;"> <select class="switchcnt" id="visitor_country" name="visitor_country" onChange="return opencountry(this.value)"> <option value="">Switch Country</option> <? $sql_country1="select b.ccode,b.country,c.id,c.country_name,count(c.country_name) from countries b LEFT OUTER JOIN escort_details c on b.ccode=c.country_name where c.status='a' group by c.country_name ORDER BY count(c.country_name) DESC "; $country_res=execute_query($sql_country1); while($country_row=mysql_fetch_array($country_res)){ ?> <option value="<?=$country_row['ccode']?>"><?=$country_row['country']?></option> <? }?> <? $sql_oth="select b.ccode,b.country from countries b LEFT JOIN escort_details c on b.ccode=c.country_name WHERE c.country_name IS NULL"; $res_oth=execute_query($sql_oth); while($row_oth=mysql_fetch_array($res_oth)) { ?> <option value="<?=$row_oth['ccode']?>"><?=$row_oth['country']?></option> <? } ?> </select> </span> </div> <div class="stdtls_midder"> <div class="nano"> <div class="overthrow nano-content description"><p> <? if($_SESSION['countryname']=='US') { $todate=date('Y-m-d'); $sql_ccescort="SELECT * FROM escort_details where status='a' AND gender!='Male' AND country_name='".$_SESSION['countryname']."'"; $row_ccescort=execute_query($sql_ccescort); $num_ccescort=mysql_num_rows($row_ccescort); if($num_ccescort>0) { ?> <div class="city-list"> <? $sql_state="select * from states order by name limit 0,5"; $res_state=execute_query($sql_state); while($row_state=mysql_fetch_array($res_state)) { $sql_eststate="select * from escort_details where status='a' AND escort_state='".$row_state['name']."'"; $res_eststate=execute_query($sql_eststate); $num_eststate=mysql_num_rows($res_eststate); if($num_eststate>0) { ?> <div style="float:left; text-align:center; width:140px; margin-top:10px;"> <h2 style="font-size:14px !important; line-height:3px !important;"><?=$row_state['name']?></h2> <? $todatee=date('Y-m-d'); $sql_cityescort="select escort_city, LOWER(REPLACE(REPLACE(escort_city, ' ', '-'), '&', 'and')) AS escort_url,count(escort_city) from escort_details where status='a' AND gender!='Male' AND escort_state='".$row_state['name']."' AND country_name='".$_SESSION['countryname']."' group By escort_city"; $res_cityescort=execute_query($sql_cityescort); while($row_cityescort=mysql_fetch_array($res_cityescort)) { ?> <div class="updatehdrstylecity"> <a href="http://<?=$row_cityescort['escort_url']?>.<?php echo $serverName; ?>"><? echo $row_cityescort['escort_city'].'('.$row_cityescort['count(escort_city)'].')' ?></a> </div> <? } ?> <br class="spacer" /> </div> <? } } ?> <br class="spacer" /> </div> <div class="city-list"> <? $sql_state="select * from states order by name limit 5,9"; $res_state=execute_query($sql_state); while($row_state=mysql_fetch_array($res_state)) { $sql_eststate="select * from escort_details where status='a' AND escort_state='".$row_state['name']."'"; $res_eststate=execute_query($sql_eststate); $num_eststate=mysql_num_rows($res_eststate); if($num_eststate>0) { ?> <div style="float:left; text-align:center; width:140px; margin-top:10px;"> <h2 style="font-size:14px !important; line-height:3px !important;"><?=$row_state['name']?></h2> <? $todatee=date('Y-m-d'); $sql_cityescort="select escort_city, LOWER(REPLACE(REPLACE(escort_city, ' ', '-'), '&', 'and')) AS escort_url,count(escort_city) from escort_details where status='a' AND gender!='Male' AND escort_state='".$row_state['name']."' AND country_name='".$_SESSION['countryname']."' group By escort_city"; $res_cityescort=execute_query($sql_cityescort); while($row_cityescort=mysql_fetch_array($res_cityescort)) { ?> <div class="updatehdrstylecity"> <a href="http://<?=$row_cityescort['escort_url']?>.<?php echo $serverName; ?>"><? echo $row_cityescort['escort_city'].'('.$row_cityescort['count(escort_city)'].')' ?></a> </div> <? } ?> <br class="spacer" /> </div> <? } } ?> <br class="spacer" /> </div> <div class="city-list"> <? $sql_state="select * from states order by name limit 14,9"; $res_state=execute_query($sql_state); while($row_state=mysql_fetch_array($res_state)) { $sql_eststate="select * from escort_details where status='a' AND escort_state='".$row_state['name']."'"; $res_eststate=execute_query($sql_eststate); $num_eststate=mysql_num_rows($res_eststate); if($num_eststate>0) { ?> <div style="float:left; text-align:center; width:140px; margin-top:10px;"> <h2 style="font-size:14px !important; line-height:3px !important;"><?=$row_state['name']?></h2> <? $todatee=date('Y-m-d'); $sql_cityescort="select escort_city, LOWER(REPLACE(REPLACE(escort_city, ' ', '-'), '&', 'and')) AS escort_url,count(escort_city) from escort_details where status='a' AND gender!='Male' AND escort_state='".$row_state['name']."' AND country_name='".$_SESSION['countryname']."' group By escort_city"; $res_cityescort=execute_query($sql_cityescort); while($row_cityescort=mysql_fetch_array($res_cityescort)) { ?> <div class="updatehdrstylecity"> <a href="http://<?=$row_cityescort['escort_url']?>.<?php echo $serverName; ?>"><? echo $row_cityescort['escort_city'].'('.$row_cityescort['count(escort_city)'].')' ?></a> </div> <? } ?> <br class="spacer" /> </div> <? } } ?> <br class="spacer" /> </div> <div class="city-list"> <? $sql_state="select * from states order by name limit 23,10"; $res_state=execute_query($sql_state); while($row_state=mysql_fetch_array($res_state)) { $sql_eststate="select * from escort_details where status='a' AND escort_state='".$row_state['name']."'"; $res_eststate=execute_query($sql_eststate); $num_eststate=mysql_num_rows($res_eststate); if($num_eststate>0) { ?> <div style="float:left; text-align:center; width:140px; margin-top:10px;"> <h2 style="font-size:14px !important; line-height:3px !important;"><?=$row_state['name']?></h2> <? $todatee=date('Y-m-d'); $sql_cityescort="select escort_city, LOWER(REPLACE(REPLACE(escort_city, ' ', '-'), '&', 'and')) AS escort_url,count(escort_city) from escort_details where status='a' AND gender!='Male' AND escort_state='".$row_state['name']."' AND country_name='".$_SESSION['countryname']."' group By escort_city"; $res_cityescort=execute_query($sql_cityescort); while($row_cityescort=mysql_fetch_array($res_cityescort)) { ?> <div class="updatehdrstylecity"> <a href="http://<?=$row_cityescort['escort_url']?>.<?php echo $serverName; ?>"><? echo $row_cityescort['escort_city'].'('.$row_cityescort['count(escort_city)'].')' ?></a> </div> <? } ?> <br class="spacer" /> </div> <? } } ?> <br class="spacer" /> </div> <div class="city-list"> <? $sql_state="select * from states order by name limit 33,7"; $res_state=execute_query($sql_state); while($row_state=mysql_fetch_array($res_state)) { $sql_eststate="select * from escort_details where status='a' AND escort_state='".$row_state['name']."'"; $res_eststate=execute_query($sql_eststate); $num_eststate=mysql_num_rows($res_eststate); if($num_eststate>0) { ?> <div style="float:left; text-align:center; width:140px; margin-top:10px;"> <h2 style="font-size:14px !important; line-height:3px !important;"><?=$row_state['name']?></h2> <? $todatee=date('Y-m-d'); $sql_cityescort="select escort_city, LOWER(REPLACE(REPLACE(escort_city, ' ', '-'), '&', 'and')) AS escort_url,count(escort_city) from escort_details where status='a' AND gender!='Male' AND escort_state='".$row_state['name']."' AND country_name='".$_SESSION['countryname']."' group By escort_city"; $res_cityescort=execute_query($sql_cityescort); while($row_cityescort=mysql_fetch_array($res_cityescort)) { ?> <div class="updatehdrstylecity"> <a href="http://<?=$row_cityescort['escort_url']?>.<?php echo $serverName; ?>"><? echo $row_cityescort['escort_city'].'('.$row_cityescort['count(escort_city)'].')' ?></a> </div> <? } ?> <br class="spacer" /> </div> <? } } ?> <br class="spacer" /> </div> <div class="city-list"> <? $sql_state="select * from states order by name limit 40,10"; $res_state=execute_query($sql_state); while($row_state=mysql_fetch_array($res_state)) { $sql_eststate="select * from escort_details where status='a' AND escort_state='".$row_state['name']."'"; $res_eststate=execute_query($sql_eststate); $num_eststate=mysql_num_rows($res_eststate); if($num_eststate>0) { ?> <div style="float:left; text-align:center; width:140px; margin-top:10px;"> <h2 style="font-size:14px !important; line-height:3px !important;"><?=$row_state['name']?></h2> <? $todatee=date('Y-m-d'); $sql_cityescort="select escort_city, LOWER(REPLACE(REPLACE(escort_city, ' ', '-'), '&', 'and')) AS escort_url,count(escort_city) from escort_details where status='a' AND gender!='Male' AND escort_state='".$row_state['name']."' AND country_name='".$_SESSION['countryname']."' group By escort_city"; $res_cityescort=execute_query($sql_cityescort); while($row_cityescort=mysql_fetch_array($res_cityescort)) { ?> <div class="updatehdrstylecity"> <a href="http://<?=$row_cityescort['escort_url']?>.<?php echo $serverName; ?>"><? echo $row_cityescort['escort_city'].'('.$row_cityescort['count(escort_city)'].')' ?></a> </div> <? } ?> <br class="spacer" /> </div> <? } } ?> <br class="spacer" /> </div> <br class="spacer" /> <? }?> <? } else { $todatee=date('Y-m-d'); $sql_ccescort="SELECT * FROM escort_details where status='a' AND gender!='Male' AND country_name='".$_SESSION['countryname']."'"; $row_ccescort=execute_query($sql_ccescort); $num_ccescort=mysql_num_rows($row_ccescort); if($num_ccescort>0) { $sql_cityescort="select escort_city, LOWER(REPLACE(REPLACE(escort_city, ' ', '-'), '&', 'and')) AS escort_url,count(escort_city) from escort_details where status='a' AND gender!='Male' AND country_name='".$_SESSION['countryname']."' group By escort_city"; $res_cityescort=execute_query($sql_cityescort); while($row_cityescort=mysql_fetch_array($res_cityescort)) { ?> <div class="updatehdrstylecity" style="width:190px !important;"> <a href="http://<?=$row_cityescort['escort_url']?>.<?php echo $serverName; ?>"><? echo $row_cityescort['escort_city'].'('.$row_cityescort['count(escort_city)'].')' ?></a> </div> <? } ?> <br class="spacer" /> <? } } ?> </p> </div> </div> </div> <div class="stdtls_footer"></div> </div> <script type="text/javascript" src="javascripts/overthrow.min.js"></script> <script type="text/javascript" src="javascripts/jquery.nanoscroller.js"></script> <script type="text/javascript" src="javascripts/main.js"></script> <script type="text/javascript" src="javascripts/ga.js"></script>