GIF89a; Mini Shell

Mini Shell

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

<? session_start();
 include("lib/globals.php");
 include("lib/common.php");
 include("lib/functions.php");
 ?>
<? include "includes/header_top.php";?>

<body>

<? include "includes/location_header.php";?>
<div class="wrapper">
 <div class="inside_wrapper">
     <div class="loc_left">
          <div class="loc_left_top">
           <div class="srch_tbl">
            <form action="#" method="post" name="srchfrm">
            <input name="submit_form" value="1" type="hidden">
            <table style="border:none;" cellpadding="0" cellspacing="0">
              <tr>
               <td height="48">Search For..<br/>
                <input type="text" name="locsrchBox" class="main_input" />
               </td>
               <td></td>
              </tr>
              <tr>
               <td>
                Or Location...<br/>
                <select name="loc_dist" id="locDist" class="main_input2">         
                 <option selected="selected"  value="">Within 10 miles</option>
                 <option  value="">Within 20 miles</option>
                 <option  value="">Within 30 miles</option>
                 <option  value="">Within 40 miles</option>
                 <option  value="">Within 50 miles</option>
                 <option  value="">Within 60 miles</option>
                 <option  value="">Within 70 miles</option>
       		   </select> of <input type="text" name="zipCode" value="Zip" class="main_input3"/>
               </td>
               <td></td>
              </tr>
              <tr>
               <td></td>
               <td></td>
              </tr>
              <tr>
               <td style="padding-top:10px; padding-bottom:5px;"><input src="images/submit.png" type="image" width="80" height="25" style="float:right;"/></td>
               <td></td>
              </tr>
            </table>
           </form>
           </div>
           
          </div>
          <div class="smal_spc"></div>
          <div class="loc_left_bottom">
           <div class="ribon"> &nbsp;&nbsp; Amenities</div>
            <ul style="list-style:none; padding:0; margin-left:15px;">
             <? $sql_tblswr="select * from massageparlor where city_id='".$_GET['city_id']."' AND tableShower='1'" ;
			 	$res_tblswr=execute_query($sql_tblswr);
				$num_tblswr=mysql_num_rows($res_tblswr);
			 ?>
            	<li>&nbsp;&nbsp;<a href="view_msgprl_dtls.php?city_id=<?=$_GET['city_id']?>&tableshower=1&header=<?=$_GET['header']?>" style="color:#2f003d">Table Shower(<?=$num_tblswr?>)</a></li>
             <? $sql_sauna="select * from massageparlor where city_id='".$_GET['city_id']."' AND sauna='1'" ;
			 	$res_sauna=execute_query($sql_sauna);
				$num_sauna=mysql_num_rows($res_sauna);
			 ?>   
                <li>&nbsp;&nbsp;<a href="view_msgprl_dtls.php?city_id=<?=$_GET['city_id']?>&sauna=1&header=<?=$_GET['header']?>" style="color:#2f003d">Sauna(<?=$num_sauna?>)</a></li>
              <? $sql_jacuzi="select * from massageparlor where city_id='".$_GET['city_id']."' AND jacuzzi='1'" ;
			 	$res_jacuzi=execute_query($sql_jacuzi);
				$num_jacuzi=mysql_num_rows($res_jacuzi);
			 ?>  
                <li>&nbsp;&nbsp;<a href="view_msgprl_dtls.php?city_id=<?=$_GET['city_id']?>&jacuzzi=1&header=<?=$_GET['header']?>" style="color:#2f003d">Jacuzzi(<?=$num_jacuzi?>)</a></li>
              <? $sql_trkprk="select * from massageparlor where city_id='".$_GET['city_id']."' AND semiTruckParking='1'" ;
			 	$res_trkprk=execute_query($sql_trkprk);
				$num_trkprk=mysql_num_rows($res_trkprk);
				
			 ?>  
                <li>&nbsp;&nbsp;<a href="view_msgprl_dtls.php?city_id=<?=$_GET['city_id']?>&privateparking=1&header=<?=$_GET['header']?>" style="color:#2f003d">Private Parking(<?=$num_trkprk?>)</a></li>
                
             <? $sql_pvcswr="select * from massageparlor where city_id='".$_GET['city_id']."' AND privacyForShower='1'" ;
			 	$res_pvrswr=execute_query($sql_pvcswr);
				$num_pvrswr=mysql_num_rows($res_pvrswr);
			 ?>   
                <li>&nbsp;&nbsp;<a href="view_msgprl_dtls.php?city_id=<?=$_GET['city_id']?>&privacyshower=1&header=<?=$_GET['header']?>" style="color:#2f003d">Privacy Shower(<?=$num_pvrswr?>)</a></li>
            </ul>
            <br/>
            <div class="ribon"> &nbsp;&nbsp; Services</div>
            <ul style="list-style:none; padding:0; margin-left:15px;">
             <? $sql_hour="select * from massageparlor where city_id='".$_GET['city_id']."' AND hours='24 Hours'" ;
			 	$res_hour=execute_query($sql_hour);
				$num_hour=mysql_num_rows($res_hour);
			 ?>
            	<li>&nbsp;&nbsp;<a href="view_msgprl_dtls.php?city_id=<?=$_GET['city_id']?>&opntwfrh=1&header=<?=$_GET['header']?>" style="color:#2f003d">Open 24 Hours(<?=$num_hour?>)</a></li>             
                <li>&nbsp;&nbsp;<a href="view_msgprl_dtls.php?city_id=<?=$_GET['city_id']?>&frhand=1&header=<?=$_GET['header']?>" style="color:#2f003d">4 Hand Massage()</a></li>
             
            </ul>
            <br/>
            <div class="ribon"> &nbsp;&nbsp; Masseuse Ethnicity</div>             
            <ul style="list-style:none; padding:0; margin-left:15px;">
            
             <? $sql_ethid="select a.name,count(a.name), b.parlor_id,b.ethnicity_id,c.id,c.city_id from masseuseethnicity a inner join parlor_ethnicity b on a.id=b.ethnicity_id inner join massageparlor c on b.parlor_id=c.id where c.city_id='".$_GET['city_id']."' group by a.name" ;
			 	$res_ethid=execute_query($sql_ethid);
				$num_ethid=mysql_num_rows($res_ethid);
				$count=0;
				if($num_ethid>0)
				{
				 	while($row_ethid=mysql_fetch_array($res_ethid))
					{
						?>
						
						 <?php /*?>echo $row_ethid['name'] . ($row_ethid['count(a.name)']);<?php */?>					
						 <li>&nbsp;&nbsp;<a href="view_msgprl_dtls.php?city_id=<?=$_GET['city_id']?>&ethnicityid=<?=$row_ethid['ethnicity_id']?>&header=<?=$_GET['header']?>" style="color:#2f003d"><?=$row_ethid['name']?>(<?=$row_ethid['count(a.name)']?>)</a></li>
						 
					<? }
					
					
				}
				
			 ?>
            	
             
            </ul>
            <br/>
            <div class="ribon"> &nbsp;&nbsp; Payment</div>             
            <ul style="list-style:none; padding:0; margin-left:15px;">
            
             <? $sql_paymentmode="select a.name,count(a.name), b.parlor_id,b.payment_id,c.id,c.city_id from payment a inner join parlor_payment b on a.id=b.payment_id inner join massageparlor c on b.parlor_id=c.id where c.city_id='".$_GET['city_id']."' group by a.name" ;
			 	$res_paymentmode=execute_query($sql_paymentmode);
				$num_paymentmode=mysql_num_rows($res_paymentmode);
				$count=0;
				if($num_paymentmode>0)
				{
				 	while($row_paymentmode=mysql_fetch_array($res_paymentmode))
					{
						?>
						
						 <?php /*?>echo $row_ethid['name'] . ($row_ethid['count(a.name)']);<?php */?>					
						 <li>&nbsp;&nbsp;<a href="view_msgprl_dtls.php?city_id=<?=$_GET['city_id']?>&paymentid=<?=$row_paymentmode['payment_id']?>&header=<?=$_GET['header']?>" style="color:#2f003d"><?=$row_paymentmode['name']?>(<?=$row_paymentmode['count(a.name)']?>)</a></li>
						 
					<? }
					
					
				}
				
			 ?>
            	
             
            </ul>
            <br/>
          </div>
     </div>
     <div class="loc_mid">	    
    
     <? 
	 
	   if($_GET['tableshower'])
		 {
		    
		  $sql_msgprl="SELECT * FROM massageparlor WHERE city_id='".$_GET['city_id']."' AND tableShower='1'";		 
          $res_msgprl=execute_query($sql_msgprl);
          $num_msgprl=mysql_num_rows($res_msgprl);
        ?>
        <h1><?=$_GET['header']?>(<?=$num_msgprl?>)<span><a href="#">Add New Massage Parlor</a></span></h1>
        <div class="parlor_list" align="center">
        <?
		 	$sql_lstmsgpl="SELECT * FROM massageparlor WHERE city_id='".$_GET['city_id']."' AND tableShower='1'";
		 }
		 else if($_GET['sauna'])
		 {
		   
		  $sql_msgprl="SELECT * FROM massageparlor WHERE city_id='".$_GET['city_id']."' AND sauna='1'";		 
          $res_msgprl=execute_query($sql_msgprl);
          $num_msgprl=mysql_num_rows($res_msgprl);
			?>
			<h1><?=$_GET['header']?>(<?=$num_msgprl?>)<span><a href="#">Add New Massage Parlor</a></span></h1>
			<div class="parlor_list" align="center">
			<?
		 	$sql_lstmsgpl="SELECT * FROM massageparlor WHERE city_id='".$_GET['city_id']."' AND sauna='1'";
		 }
		 else if($_GET['jacuzzi'])
		 {
		   
		  $sql_msgprl="SELECT * FROM massageparlor WHERE city_id='".$_GET['city_id']."' AND jacuzzi='1'";		 
          $res_msgprl=execute_query($sql_msgprl);
          $num_msgprl=mysql_num_rows($res_msgprl);
			?>
			<h1><?=$_GET['header']?>(<?=$num_msgprl?>)<span><a href="#">Add New Massage Parlor</a></span></h1>
			<div class="parlor_list" align="center">
			<?
		 	$sql_lstmsgpl="SELECT * FROM massageparlor WHERE city_id='".$_GET['city_id']."' AND jacuzzi='1'";
		 }
		 else if($_GET['privateparking'])
		 {
		   
		  $sql_msgprl="SELECT * FROM massageparlor WHERE city_id='".$_GET['city_id']."' AND semiTruckParking='1'";		 
          $res_msgprl=execute_query($sql_msgprl);
          $num_msgprl=mysql_num_rows($res_msgprl);
			?>
			<h1><?=$_GET['header']?>(<?=$num_msgprl?>)<span><a href="#">Add New Massage Parlor</a></span></h1>
			<div class="parlor_list" align="center">
			<?
		 	$sql_lstmsgpl="SELECT * FROM massageparlor WHERE city_id='".$_GET['city_id']."' AND semiTruckParking='1'";
		 }
		 else if($_GET['privacyshower'])
		 {
		   
		  $sql_msgprl="SELECT * FROM massageparlor WHERE city_id='".$_GET['city_id']."' AND privacyForShower='1'";		 
          $res_msgprl=execute_query($sql_msgprl);
          $num_msgprl=mysql_num_rows($res_msgprl);
			?>
			<h1><?=$_GET['header']?>(<?=$num_msgprl?>)<span><a href="#">Add New Massage Parlor</a></span></h1>
			<div class="parlor_list" align="center">
			<?
		 	$sql_lstmsgpl="SELECT * FROM massageparlor WHERE city_id='".$_GET['city_id']."' AND privacyForShower='1'";
		 }
		 else if($_GET['opntwfrh'])
		 {
		   
		  $sql_msgprl="SELECT * FROM massageparlor WHERE city_id='".$_GET['city_id']."' and hours='24 Hours'";		 
          $res_msgprl=execute_query($sql_msgprl);
          $num_msgprl=mysql_num_rows($res_msgprl);
			?>
			<h1><?=$_GET['header']?>(<?=$num_msgprl?>)<span><a href="#">Add New Massage Parlor</a></span></h1>
			<div class="parlor_list" align="center">
			<?
		 	$sql_lstmsgpl="SELECT * FROM massageparlor WHERE city_id='".$_GET['city_id']."' AND hours='24 Hours'";
		 }
		 else if($_GET['ethnicityid'])
		 {		 
		   
		  $sql_msgprl="SELECT * FROM massageparlor WHERE city_id='".$_GET['city_id']."'";		 
          $res_msgprl=execute_query($sql_msgprl);
          $num_msgprl=mysql_num_rows($res_msgprl);
			?>
			<h1><?=$_GET['header']?>(<?=$num_msgprl?>)<span><a href="#">Add New Massage Parlor</a></span></h1>
			<div class="parlor_list" align="center">
			<?
			 $sql_lstmsgpl="SELECT a.pic, a.name, a.phoneNumber, a.street, a.review_count FROM massageparlor a INNER JOIN parlor_ethnicity b ON a.id = b.parlor_id INNER JOIN masseuseethnicity c ON b.ethnicity_id = c.id WHERE a.city_id = '".$_GET['city_id']."' AND c.id = '".$_GET['ethnicityid']."'";	 
			 		 
			 
		 }
		  else if($_GET['paymentid'])
		 {		 
		   
		  $sql_msgprl="SELECT a.pic, a.name, a.phoneNumber, a.street, a.review_count FROM massageparlor a INNER JOIN parlor_payment b ON a.id = b.parlor_id INNER JOIN payment c ON b.payment_id = c.id WHERE a.city_id = '".$_GET['city_id']."' AND c.id = '".$_GET['paymentid']."'";			 
          $res_msgprl=execute_query($sql_msgprl);
          $num_msgprl=mysql_num_rows($res_msgprl);
			?>
			<h1><?=$_GET['header']?>(<?=$num_msgprl?>)<span><a href="#">Add New Massage Parlor</a></span></h1>
			<div class="parlor_list" align="center">
			<?
			 $sql_lstmsgpl="SELECT a.pic, a.name, a.phoneNumber, a.street, a.review_count FROM massageparlor a INNER JOIN parlor_payment b ON a.id = b.parlor_id INNER JOIN payment c ON b.payment_id = c.id WHERE a.city_id = '".$_GET['city_id']."' AND c.id = '".$_GET['paymentid']."'";	 
			 		 
			 
		 }
		 
		 else
		 {
		 $sql_msgprl="SELECT * FROM massageparlor WHERE city_id='".$_GET['city_id']."'";		 
          $res_msgprl=execute_query($sql_msgprl);
          $num_msgprl=mysql_num_rows($res_msgprl);
        ?>
        <h1><?=$_GET['header']?>(<?=$num_msgprl?>)<span><a href="#">Add New Massage Parlor</a></span></h1>
        <div class="parlor_list" align="center">
        <?
		 	$sql_lstmsgpl="SELECT * FROM massageparlor WHERE city_id='".$_GET['city_id']."'";
		 }
	  $res_lstmsgpl=execute_query($sql_lstmsgpl);
	  $number=mysql_num_rows($res_lstmsgpl);
	  if($number>0)
	   {
		   while($row_lstmsgpl=mysql_fetch_array($res_lstmsgpl)){
	    ?>
        	<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['pic']==""){
					?> <img src="images/No Image.gif" style="width:130px; height:100px; border:1px solid #666;" />
						
					<? }else{ ?>
						<a href="massageparlor-details.php?parlor_id=<?=$row_lstmsgpl['id']?>">
                   		<img src="images/<?=$row_lstmsgpl['pic'] ?>" style="width:130px; height:100px; border:1px solid #666;" />
                   </a>
					<? } ?>
                </p>
               <p style="padding:0; margin:5px 0 0 20px; float:left; font-family:Arial, Helvetica, sans-serif; text-align:left; font-size:16px; width:300px; font-weight:bold;">
                    <a style="color: #63177b;" href="massageparlor-details.php?parlor_id=<?=$row_lstmsgpl['id']?>&city_id=<?= $_GET['city_id']?>"><?=$row_lstmsgpl['name'] ?></a>
                    <br class="spacer"/>
                    <span style="color:#00000; margin:0; padding:0; font-size:12px; font-family:Arial, Helvetica, 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:Arial, Helvetica, sans-serif; font-weight:normal; line-height:15px;"><?=$row_lstmsgpl['street'] ?></span><br class="spacer"/>
                    	<? 
						$sql_city="SELECT * FROM citys where id='".$_GET['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:Arial, Helvetica, sans-serif; font-weight:normal; line-height:15px;"><?=$row_city['name'] ?>,<?=$row_state['short_name']?> <?=$row_lstmsgpl['zipCode'] ?></span><br class="spacer"/>
                    <? }?>
                    <span style="color:#00000; margin:0; padding:0; font-size:12px; font-family:Arial, Helvetica, sans-serif; font-weight:normal; line-height:15px;"><?=$row_lstmsgpl['review_count'] ?> <? if($row_lstmsgpl['review_count']>1){echo Reviews;} else{ echo Review;} ?> </span>
                    <!--<span style="color:<?=$row_color['color_main2'] ?>; font-size:14px; float:left; margin-left:5px; font-weight:normal;"><?=$row_user['username']; ?></span>-->
                </p>
            </div>
        <? }
		
		}?>
     
   </div>
     </div>
     <div class="loc_right"></div>
     <br class="spacer" /> 
  </div>
</div>
<br class="spacer" />

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

./BlackJoker Mini Shell 1.0