Просмотр файла love/man.php

Размер файла: 1.74Kb
  1. <?
  2. include_once '../sys/inc/start.php';
  3. include_once '../sys/inc/compress.php';
  4. include_once '../sys/inc/sess.php';
  5. include_once '../sys/inc/home.php';
  6. include_once '../sys/inc/settings.php';
  7. include_once '../sys/inc/db_connect.php';
  8. include_once '../sys/inc/ipua.php';
  9. include_once '../sys/inc/fnc.php';
  10. include_once '../sys/inc/user.php';
  11. $set['title']='Знакомства'; // заголовок страницы
  12. include_once '../sys/inc/thead.php';
  13. title();
  14. aut();
  15.  
  16.  
  17. $k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `pol` = '1'"),0);
  18. $k_page=k_page($k_post,$set['p_str']);
  19. $page=page($k_page);
  20. $start=$set['p_str']*$page-$set['p_str'];
  21. if ($k_post==0)
  22. {
  23. echo "Нет результатов\n";
  24. }
  25.  
  26. $q=mysql_query("SELECT * FROM `user` WHERE `pol` = '1' LIMIT $start, $set[p_str]");
  27. while ($ank = mysql_fetch_array($q))
  28. {
  29. if($num==1){
  30. echo "<div class='news'>";
  31. $num=0;
  32. }else{
  33. echo "<div class='str'>";
  34. $num=1;}
  35.  
  36. echo "".online($ank['id'])." <a href='/info.php?id=$ank[id]'><span style=\"color:$ank[ncolor]\">$ank[nick]</span></a>\n";
  37. echo "<br/>\n";
  38.  
  39. if ($ank['ank_d_r']!=NULL && $ank['ank_m_r']!=NULL && $ank['ank_g_r']!=NULL){
  40. $ank['ank_age']=date("Y")-$ank['ank_g_r'];
  41. if (date("n")<$ank['ank_m_r'])$ank['ank_age']=$ank['ank_age']-1;
  42. elseif (date("n")==$ank['ank_m_r']&& date("j")<$ank['ank_d_r'])$ank['ank_age']=$ank['ank_age']-1;
  43. echo " $ank[ank_age] лет,\n";
  44. }
  45. if ($ank['ank_city']!=NULL)echo " $ank[ank_city]<br />\n";
  46. echo "</div>\n";
  47. }
  48.  
  49.  
  50.  
  51. if ($k_page>1)str("man.php?",$k_page,$page); // Вывод страниц
  52. echo '<hr color="DeepSkyBlue1" hr noshade size="1"></font>';
  53. echo "&laquo;<a href='/love/index.php'>В знакомства</a><br/>\n";
  54. include_once '../sys/inc/tfoot.php';
  55. ?>