Файл: mylaf.ru/love/woman.php
Строк: 67
<?
require '../sys/inc/start.php';
require '../sys/inc/compress.php';
require '../sys/inc/sess.php';
require '../sys/inc/home.php';
require '../sys/inc/settings.php';
require '../sys/inc/db_connect.php';
require '../sys/inc/ipua.php';
require '../sys/inc/fnc.php';
require '../sys/inc/user.php';
$set['title']='Знакомства » Девушки';
require '../sys/inc/thead.php';
title();
$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `pol` = '0'"),0);
$k_page=k_page($k_post,$set['p_str']);
$page=page($k_page);
$start=$set['p_str']*$page-$set['p_str'];
if ($k_post==0)
{
?>
<div class='noy'>Нет результатов</div>
<?
}
$q=mysql_query("SELECT * FROM `user` WHERE `pol` = '0' LIMIT $start, $set[p_str]");
while ($ank = mysql_fetch_array($q))
{
if($num==1){
echo "<div class='enk_div'>n";
$num=0;
}else{
echo "<div class='enk2_div'>n";
$num=1;}
echo "".avatar2($ank['id'])."<br />";
echo " </td>n";
echo "".us($ank['id'])."<br />";
if ($ank['ank_d_r']!=NULL && $ank['ank_m_r']!=NULL && $ank['ank_g_r']!=NULL){
$ank['ank_age']=date("Y")-$ank['ank_g_r'];
if (date("n")<$ank['ank_m_r'])$ank['ank_age']=$ank['ank_age']-1;
elseif (date("n")==$ank['ank_m_r']&& date("j")<$ank['ank_d_r'])$ank['ank_age']=$ank['ank_age']-1;
echo " $ank[ank_age] летn";
}
if ($ank['ank_city']!=NULL)echo ", $ank[ank_city]<br />n";
echo "</div>n";
}
if ($k_page>1)str("woman.php?",$k_page,$page);
echo "<div class='fyt'>n";
echo "<img src='/style/images/left.gif'> <a href='/'>Старт</a> » <a href='/love/'>Знакомства</a> » Девушкиn";
echo "</div>n";
require '../sys/inc/tfoot.php';
?>