GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/
Upload File :
Current File : /home/serb/www/escort_search_list.php

<? session_start();

 include("lib/globals.php");

 include("lib/common.php");

 include("lib/functions.php");

 ?>

<? include "includes/header_top.php";?>
<script language="javascript">
	function validate()
	{
		if(document.srchfrm.zipCode.value=="")
		{
			alert("Enter A Zipcode");
			document.srchfrm.zipCode.focus();
			return false;
		}
				
		
		
	}
</script>
<?

if($_POST)

{

	$zipcode=$_POST['zipCode'];
	$location=$_POST['location'];
	$calltype=$_POST['inoutcals'];
	$pfwithPh=$_POST['pfwithPh'];
	$onlyphoto=$_POST['forPhoto'];

	
		$sql_cityname="SELECT * FROM citys WHERE name='".$_POST['location']."'";
		$res_cityname=execute_query($sql_cityname);
		$num_cityname=mysql_num_rows($res_cityname);
		if($num_cityname>0)
			{
				$row_cityname=mysql_fetch_array($res_cityname);
				$cityid=$row_cityname['id'];
			}

	if($_POST['zipCode'])

	{
		$sql_escort="SELECT * FROM post_ad WHERE (ad_catagory='1' OR ad_catagory='4' OR ad_catagory='5') AND zip='$zipcode'";		

	}
	if($_POST['zipCode'])

	{
		$sql_msgparlor="SELECT * FROM massageparlor WHERE zipCode='$zipcode'";		

	}
	if($_POST['location'])
	{
		
		$sql_msgparlor="SELECT * FROM massageparlor WHERE (street like '%$location%' OR city_id='$cityid')";
	}
	
	/////Location wise search////
	if($_POST['location'])
	{
		
		 $sql_escort="SELECT * FROM post_ad WHERE (ad_catagory='1' OR ad_catagory='4' OR ad_catagory='5') AND (address like '%$location%' OR city_id='$cityid')";
	}
	
	if(($_POST['zipCode']) && ($_POST['location']))
	{
		
		$sql_msgparlor="SELECT * FROM massageparlor WHERE zipCode='$zipcode' AND (street like '%$location%' OR city_id='$cityid')";
	}
	
	if(($_POST['zipCode']) && ($_POST['location']))
	{
		
		$sql_escort="SELECT * FROM post_ad WHERE (ad_catagory='1' OR ad_catagory='4' OR ad_catagory='5') AND zip='$zipcode' AND (address like '%$location%' OR city_id='$cityid')";
	}
	
	
	
	///////Zipcode And Incall outcall//////////
	if(($_POST['zipCode']) && ($_POST['inoutcals']))
	{
		if($_POST['inoutcals']==1)
		{
			$sql_escort="SELECT * FROM post_ad WHERE (ad_catagory='1' OR ad_catagory='4' OR ad_catagory='5') AND incall='Incall' AND outcall='Outcall' AND zip='".$_POST['zipCode']."'";
		}
		if($_POST['inoutcals']==2)
		{
			$sql_escort="SELECT * FROM post_ad WHERE (ad_catagory='1' OR ad_catagory='4' OR ad_catagory='5') AND incall='Incall' AND zip='".$_POST['zipCode']."' ";
		}
		if($_POST['inoutcals']==3)
		{
			$sql_escort="SELECT * FROM post_ad WHERE (ad_catagory='1' OR ad_catagory='4' OR ad_catagory='5') AND outcall='Outcall' AND zip='".$_POST['zipCode']."' ";
		}
	}
	
	////////Location and In_outCall//////////////
	if(($_POST['location']) && ($_POST['inoutcals']))
	{
		if($_POST['inoutcals']==1)
		{
			$sql_escort="SELECT * FROM post_ad WHERE (ad_catagory='1' OR ad_catagory='4' OR ad_catagory='5') AND incall='Incall' AND outcall='Outcall'  AND (address like '%$location%' OR city_id='$cityid')";
		}
		if($_POST['inoutcals']==2)
		{
			$sql_escort="SELECT * FROM post_ad WHERE (ad_catagory='1' OR ad_catagory='4' OR ad_catagory='5') AND incall='Incall' AND (address like '%$location%' OR city_id='$cityid')";
		}
		if($_POST['inoutcals']==3)
		{
			$sql_escort="SELECT * FROM post_ad WHERE (ad_catagory='1' OR ad_catagory='4' OR ad_catagory='5') AND outcall='Outcall' AND (address like '%$location%' OR city_id='$cityid')";
		}
	}
	//////Zipcode and location and in_outcall/////
	if(($_POST['zipCode']) && ($_POST['location']) && ($_POST['inoutcals']))
	{
		if($_POST['inoutcals']==1)
		{
			$sql_escort="SELECT * FROM post_ad WHERE (ad_catagory='1' OR ad_catagory='4' OR ad_catagory='5') AND incall='Incall' AND outcall='Outcall' AND zip='$zipcode' AND (address like '%$location%' OR city_id='$cityid')";
		}
		if($_POST['inoutcals']==2)
		{
			$sql_escort="SELECT * FROM post_ad WHERE (ad_catagory='1' OR ad_catagory='4' OR ad_catagory='5') AND incall='Incall' AND zip='".$_POST['zipCode']."' AND (address like '%$location%' OR city_id='$cityid')";
		}
		if($_POST['inoutcals']==3)
		{
			$sql_escort="SELECT * FROM post_ad WHERE (ad_catagory='1' OR ad_catagory='4' OR ad_catagory='5') AND outcall='Outcall' AND zip='".$_POST['zipCode']."' AND (address like '%$location%' OR city_id='$cityid')";
		}
	}
	
	
	$res_lstmsgpl=execute_query($sql_escort);
	$num_lstmsgpl=mysql_num_rows($res_lstmsgpl);
	
	$res_msgparlor=execute_query($sql_msgparlor);
	$num_msgparlor=mysql_num_rows($res_msgparlor);
	

}

?>



<body>



<? include "includes/header.php";?>

<div class="wrapper">

 <div class="inside_wrapper">

     <div class="loc_left">

          <div class="loc_left_top">

           <div class="loc_left_toper"></div>

           <div class="loc_top_mid">

           	<div style="width:210px; margin:0 auto;">

            	<form action="<?=$_SERVER['PHP_SELF'] ?>" method="post" name="srchfrm" style="width:208px;"  onSubmit="return validate();">

            <input name="submit_form" value="1" type="hidden">

            <table style="border:none; margin-left:10px;" cellpadding="0" cellspacing="0">

              <tr>

               <td class="name_align2" style="width:183">Zip Code..<br/>
               
				<input name="zipCode" id="zipCode" class="main_input5"   type="text">               	             

               </td>

               <td></td>

              </tr>

              <tr style="height:5px;">

              	<td></td>

                <td></td>

              </tr>

              <tr>

               <td class="name_align2">

                Location:<br/>
				<input name="location" id="location" class="main_input5"   type="text">
                
               </td>

               <td></td>

              </tr>

              <tr style="height:10px;">

              	<td></td>

                <td></td>

              </tr>

              <tr>

               <td class="name_align2">

                Find a massage with<br/>
                <input type="radio" name="inoutcals" value="1">&nbsp;Incalls & Outcalls<br/><input type="radio" name="inoutcals" value="2">&nbsp;Incalls <br/><input type="radio" name="inoutcals" value="3">&nbsp;Outcalls<br/>

               </td>

               <td></td>

              </tr>

              

              <tr height="10px;">

               <td></td>

               <td></td>

              </tr>
              <tr>

               <td class="name_align2">
				<input type="checkbox" name="pfwithPh" value="1">&nbsp;Only profile w/photo</td>

               <td></td>

              </tr>
              <tr>

               <td class="name_align2">
				<input type="checkbox" name="forPhoto" value="2">Show me just photos</td>

               <td></td>

              </tr>

              <tr>

               <td style="padding-top:10px; padding-bottom:5px; float:left;"><input src="images/search_btn.png" type="image" /></td>

               <td></td>

              </tr>

            </table>

           </form>

            </div>

           </div>

           <div class="loc_top_bottom"></div>

           <!--<div class="srch_tbl">

            

           </div>-->

           

          </div>

          <div class="smal_spc"></div>

          

     </div>

     <div class="loc_mid3">     	

       <div class="loc_mid_top">           

				<h1>Escort<span><a href="post-ad.php"><img src="images/escort_post.png" /></a></span></h1>

                <div class="parlor_list" align="center">

                	<? if($num_lstmsgpl>0)
					{

                     while($row_lstmsgpl=mysql_fetch_array($res_lstmsgpl)){

                    ?>

                        <div style="float:left; width:530px; margin:0 auto; margin-bottom:5px; margin-left:5px;">
                        	
                        	
								<p style="padding:0; margin:0; float:left; margin-left:5px; margin-top:5px;">

                               <? if($row_lstmsgpl['picture']==""){

                                ?><a href="escort-service-dtls.php?postid=<?=$row_lstmsgpl['id']?>&city_id=<?=$row_lstmsgpl['city_id']?>"> <img src="images/No Image.gif" style="width:100px; height:85px; border:1px solid #666; border-radius:2px;" /></a>

                                    

                                <? }else{ ?>

                                    <a href="escort-service-dtls.php?postid=<?=$row_lstmsgpl['id']?>&city_id=<?=$row_lstmsgpl['city_id']?>"><img src="avtar/<?=$row_lstmsgpl['picture'] ?>" style="width:100px;height:85px; border:1px solid #666; border-radius:2px; " /></a>

                                <? } ?>

                            </p>
							

                           <? 
						   		if($onlyphoto!=2)
								{?>
                                		<p style="padding:0; margin:5px 0 0 20px; float:left; font-family: 'Open Sans',sans-serif; text-align:left; font-size:16px; width:300px; font-weight:bold;">

                                <a class="escort_header" href="escort-service-dtls.php?postid=<?=$row_lstmsgpl['id']?>&city_id=<?=$row_lstmsgpl['city_id']?>"><?=$row_lstmsgpl['ad_name'] ?></a>

                                <br class="spacer"/>

                                <? if($row_lstmsgpl['ad_catagory']!=2)

            

                                            { if($row_lstmsgpl['ad_catagory']!=6) {

                                                

                                                if($row_lstmsgpl['ad_catagory']!=7){?>

                                <span style="color:#00000; margin:0; padding:0; font-size:12px; font-family:'Open Sans', sans-serif; font-weight:normal; line-height:15px;"><?=$row_lstmsgpl['age'].'Years old' ?></span><br class="spacer"/>

                                <span style="color:#00000; margin:0; padding:0; font-size:12px; font-family: 'Open Sans', sans-serif; font-weight:normal; line-height:15px;"><?='Hair Color'.' '.$row_lstmsgpl['haircolor'] ?></span><br class="spacer"/>

                               <? } } }?>

                                    <? 

                                    $sql_city="SELECT * FROM citys where id='".$row_lstmsgpl['city_id']."' ";

                                    $res_city=execute_query($sql_city);

                                    while($row_city=mysql_fetch_array($res_city)){

                                     $sql_state="SELECT * FROM states where id='".$row_city['states_id']."'";

                                     $res_state=execute_query($sql_state);

                                     $row_state=mysql_fetch_array($res_state);

                                    

                                    ?>   

                                <span style="color:#00000; margin:0; padding:0; font-size:12px; font-family: 'Open Sans', sans-serif; font-weight:normal; line-height:15px;"><?=$row_city['name'] ?>,<?=$row_state['short_name']?> <?=$row_lstmsgpl['zip'] ?></span><br class="spacer"/>
                                   <? }?>

                                

                               

                            </p>

                            <p style="float:left; width:95px; margin-top:30px; height:60px; text-align:left; vertical-align:bottom;">

                                <br/>

                                <? if($row_lstmsgpl['incal_charge']!="") {?>

                                <span style="font-size:12px; font-family: 'Open Sans', sans-serif;">Incall:&nbsp;<?=$row_lstmsgpl['incal_charge'] ?></span>

                                <? } ?><br/>

                                <? if($row_lstmsgpl['outcall_charge']!="") {?>

                                <span style="font-size:12px; font-family: 'Open Sans', sans-serif;">Outcall:<?=$row_lstmsgpl['outcall_charge'] ?></span>   

                                <? } ?>          	

                            </p>
                                    
								<? }
						   
						   ?> 

                           

                        </div>

                        <p style="margin-left:5px; padding-top:5px;">&nbsp;&nbsp;<img src="images/item_divider.png" /></p>

                    <? }
					} else 
					
						{ ?>
                        	<div style="float:left; width:500px; margin:0 auto; margin-bottom:5px; margin-left:5px;">
                            	<p><? echo "Nothing is Found" ?></p>
							</div>
							
						<? }
                   ?>

                    <div style="height:50px;">

                        

                     </div>

                    </div> 

   		

   		</div>

        <div class="loc_mid_top">

		<h1>Massage Parlor</h1>

        <div class="parlor_list" align="center">

        <?		if($num_msgparlor>0)
					{          
         
               while($row_lstmsgpl=mysql_fetch_array($res_msgparlor)){

            ?>

                <div style="float:left; width:500px; margin:0 auto; margin-bottom:5px; margin-left:5px;">
                <p style="padding:0; margin:0; float:left; margin-left:5px; margin-top:5px;">
                   <? if($row_lstmsgpl['pic']==""){
					?><a href="massageparlor-details.php?parlor_id=<?=$row_lstmsgpl['id']?>&city_id=<?= $row_lstmsgpl['city_id']?>"> <img src="images/No Image.gif" style="width:100px; height:85px; border-radius:2px; border:1px solid #666;" /></a>
						
					<? }else{ ?>
						<a href="massageparlor-details.php?parlor_id=<?=$row_lstmsgpl['id']?>&city_id=<?= $row_lstmsgpl['city_id']?>"><img src="avtar/<?=$row_lstmsgpl['pic'] ?>" style="width:100px; height:85px; border-radius:2px; "  />
                   </a>
					<? } ?>
                </p>
               <p style="padding:0; margin:5px 0 0 20px; float:left; font-family: 'Open Sans', sans-serif; text-align:left; font-size:16px; width:300px; font-weight:bold;">
                    <a class="escort_header" href="massageparlor-details.php?parlor_id=<?=$row_lstmsgpl['id']?>&city_id=<?= $row_lstmsgpl['city_id']?>"><?=$row_lstmsgpl['name'] ?></a>
                    <br class="spacer"/>
                    <span style="color:#00000; margin:0; padding:0; font-size:12px; font-family: 'Open Sans', sans-serif; font-weight:normal; line-height:15px;"><?=$row_lstmsgpl['phoneNumber'] ?></span><br class="spacer"/>
                    <span style="color:#00000; margin:0; padding:0; font-size:12px; font-family: 'Open Sans', sans-serif; font-weight:normal; line-height:15px;"><?=$row_lstmsgpl['street'] ?></span><br class="spacer"/>
                    	<? 
						$sql_city="SELECT * FROM citys where id='".$row_lstmsgpl['city_id']."' ";
						$res_city=execute_query($sql_city);
						while($row_city=mysql_fetch_array($res_city)){
						 $sql_state="SELECT * FROM states where id='".$row_city['states_id']."'";
						 $res_state=execute_query($sql_state);
						 $row_state=mysql_fetch_array($res_state);
						
						?>   
                    <span style="color:#00000; margin:0; padding:0; font-size:12px; font-family: 'Open Sans', sans-serif; font-weight:normal; line-height:15px;"><?=$row_city['name'] ?>,<?=$row_state['short_name']?> <?=$row_lstmsgpl['zipCode'] ?></span><br class="spacer"/>
                    <? }?>
                    
                </p>
            </div>

                <p style="margin-left:5px; padding-top:5px;">&nbsp;&nbsp;<img src="images/item_divider.png" /></p>

            <? }
			} else 
					
						{ ?>
                        	<div style="float:left; width:500px; margin:0 auto; margin-bottom:5px; margin-left:5px;">
                            	<p><? echo "Nothing is Found" ?></p>
							</div>
						<? }
            	
            ?>

            <div style="height:50px;">

                

             </div>

       		</div> 

   		

   		</div>

        

        

     </div>

     <div class="loc_right">

      <? include "includes/bannar_right.php";?>

     

     </div>

     <br class="spacer" /> 

  </div>

</div>

<br class="spacer" />



<? include "includes/footer.php";?>

./BlackJoker Mini Shell 1.0