GIF89a;
| Direktori : /home/serb/www/ |
| Current File : /home/serb/www/newarrival.php |
<? session_start();
include("lib/globals.php");
include("lib/common.php");
include("lib/functions.php");
include"lib/SimpleImage.php";
$page="newarrival";
?>
<? include "includes/header_top.php";?>
<body>
<? include "includes/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">
<span style="color:#000;">New Arrivals in </span>
<?
$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'];
?>
</div>
<div class="stdtls_midder">
<div style=" width:990px;">
<?php /*?><?
$sql_ccescort="SELECT * FROM escort_details where status='a' 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 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="new-arrivals.php?cityname=<?=$row_cityescort['escort_city']?>"><?
echo $row_cityescort['escort_city'].'('.$row_cityescort['count(escort_city)'].')'
?></a>
</div>
<? } ?>
<br class="spacer" />
<? } ?> <?php */?>
<div style="width:960px; margin:0 auto;">
<br/>
<?
$ii=1;
if($_GET['cityname'])
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%".$_GET['cityname']."%' ORDER BY id DESC";
}
else
{
$todate=date('Y-m-d');
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND gender!='Male' AND country_name='".$_SESSION['countryname']."' ";
}
$res_locescort=execute_query($sql_locescort);
$num_locescort=mysql_num_rows($res_locescort);
if($num_locescort>0)
{
while($row_locescort=mysql_fetch_array($res_locescort))
{
increase_impression($row_locescort['id']);
?>
<div class="escortpicsnew">
<?
if($row_locescort['ft_ad_status']=='Yes')
{?>
<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">
<?
$location = getUrlAttrib($row_locescort['escort_city']);
$nickname = getUrlAttrib($row_locescort['nickname']);
$title = $row_locescort['slogan'] ? "/".getTitle($row_locescort['slogan']) : null;
$gender = ucfirst($row_locescort['gender']);
$url = "http://{$location}.$serverName/{$gender}Escorts/{$nickname}{$title}/{$row_locescort['id']}";
$sql_image="SELECT * FROM escort_photo where postid='".$row_locescort['id']."'";
$res_image=execute_query($sql_image);
$row_image=mysql_fetch_array($res_image);
if($row_image['picture']!="")
{
?>
<a href="<?php echo $url; ?>"><img src="thubigg/<?=$row_image['picture']?>" /></a>
<? } else
{ ?>
<a href="<?php echo $url; ?>"> <img src="images/no_photo_female.gif" /></a>
<? } ?>
</div>
<div class="estlocation"><?=$row_locescort['escort_city']?>
<?
if($row_locescort['online_img']!=""){
?>
<span style="float:right;"> <img src="images/online.gif" width="80" height="20" /></span>
<? } ?>
</div>
</div>
<?
if($ii%4==0)
{
?>
<br class="spacer" />
<div style="height:10px;"> <br class="spacer" /></div>
<?
}
$ii++;
} ?>
<br class="spacer" />
<?
} 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>
</div>
</div>
<div class="stdtls_footer"></div>
</div>
<!--<div class="estdetailscnt22">
<div style="width:960px; margin:0 auto;">
<br/>
<?
$ii=1;
if($_GET['cityname'])
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%".$_GET['cityname']."%' ORDER BY id DESC Limit 0,108";
}
else
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND country_name='".$_SESSION['countryname']."' ORDER BY id DESC Limit 0,108 ";
}
$res_locescort=execute_query($sql_locescort);
$num_locescort=mysql_num_rows($res_locescort);
if($num_locescort>0)
{
while($row_locescort=mysql_fetch_array($res_locescort))
{
increase_impression($row_locescort['id']);
?>
<div class="escortpicsnew">
<?
if($row_locescort['ft_ad_status']=='Yes')
{?>
<div style="width:229px; height:107px; margin-top:-7px; text-align:left; position:absolute; z-index:3;"><img src="images/vip22.png" style="width:108px; height:107px;" /></div>
<? } ?>
<div class="estname">
<h1><?=$row_locescort['nickname']?></h1></div>
<div class="estimage">
<?
$sql_image="SELECT * FROM escort_photo where postid='".$row_locescort['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>
<? } ?>
</div>
<div class="estlocation"><?=$row_locescort['escort_city']?></div>
</div>
<?
if($ii%4==0)
{
?>
<br class="spacer" />
<div style="height:10px;"> <br class="spacer" /></div>
<?
}
$ii++;
} ?>
<br class="spacer" />
<?
} 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>
<br/>
</div>
<!--</div>-->
<? include "includes/footer.php";?>