Просмотр файла eforum25/memlist.php

Размер файла: 3.06Kb
  1. <?php
  2. include "config.php";
  3. include "incl/head.inc";
  4.  
  5. if(!isset($go)||$go==0){$go=1;}else{$go=(int)$go;}
  6.  
  7. $go_forward=$go+$topics_per_page;
  8. if($go>($topics_per_page+1)){$go_back=$go-$topics_per_page;}
  9. else{$go_back=1;}
  10.  
  11. $fs=open_file($members_file);
  12. $fs=explode("\n",$fs);?>
  13.  
  14. <title><?php $temp_var=$go_forward-1;print "$lang[63] ($go-$temp_var)";?></title></head><body>
  15. <table align="center" width="460" border="0" cellpadding="0" cellspacing="0"><tr><td class="q">
  16. <table width="100%" border="0" cellspacing="1" cellpadding="5"><tr class="c"><td colspan="2"><table width="100%" cellpadding="0" cellspacing="0"><tr><td><b class="w"><?php print $lang[63];?></b></td><td align="right">
  17. <a href="join.php" style="color:#ffffff" onclick="zz=window.open('join.php','login','width=310,height=300,resizable=1');zz.focus();return false"><b>New Member</b></a>
  18. </td></tr></table></td></tr><tr class="z"><td class="f" width="25%" nowrap="nowrap">&nbsp;<?php print $lang[62];?>&nbsp;</td><td class="f" width="75%" nowrap="nowrap">&nbsp;<?php print $lang[58];?></td></tr>
  19. <?php
  20. for($i=$go;$i<$go_forward;$i++){
  21. if(isset($fs[$i])&&strlen($fs[$i])>9){
  22. $row=explode(":|:",$fs[$i]);
  23. $random=rand(1,7);
  24. if(isset($row[5])&&$row[5]!='m'){$sex='s';}else{$sex='w';}
  25.  
  26. print "<tr class=\"$row_bg\"><td class=\"s\" nowrap=\"nowrap\"><a href=\"#\" style=\"text-decoration:none\" onclick=\"usr('$row[0]');return false\"><img src=\"pics/$sex$random.gif\" $size_img[1] alt=\"\" hspace=\"2\" border=\"0\" /><b>$row[0]</b></a></td><td class=\"s\"><img src=\"pics/t$random.gif\" $size_img[2] alt=\"\" border=\"0\" align=\"left\" vspace=\"0\" />$row[3]</td></tr>\n";
  27. switch_row_bg();}}
  28.  
  29. print "<tr class=\"$row_bg\"><td colspan=\"2\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td class=\"f\">";
  30. print "<a href=\"join.php\" onclick=\"zz=window.open('join.php','login','width=310,height=300,resizable=1');zz.focus();return false\">$lang[60]</a></td><td align=\"right\">";
  31.  
  32. print "<a href=\"memlist.php?go=$go_back\" title=\"&lt;&lt;\"><img src=\"pics/la.png\" width=\"10\" height=\"9\" hspace=\"0\" vspace=\"0\" border=\"0\" alt=\"&lt;&lt;\" onmouseover=\"this.src='pics/lb.png'\" onmouseout=\"this.src='pics/la.png'\" /></a>";
  33.  
  34. for($i=0;$i<5;$i++){
  35. if(is_integer($i/2)){$hspace=1;}else{$hspace=0;}
  36. if($go!=($i*$topics_per_page+1)){set_navbar($i+1,1);
  37.  
  38. print "<a href=\"memlist.php?go=$nav2temp\" title=\"$lang[63]: $nav3temp-$nav1temp\"><img src=\"pics/of.png\" width=\"10\" height=\"9\" hspace=\"$hspace\" vspace=\"0\" border=\"0\" alt=\"$lang[63]: $nav3temp-$nav1temp\" onmouseover=\"this.src='pics/ou.png'\" onmouseout=\"this.src='pics/of.png'\" /></a>";}
  39. else{print "<img src=\"pics/on.png\" width=\"10\" height=\"9\" hspace=\"$hspace\" vspace=\"0\" alt=\"\" />";}}
  40.  
  41. print "<a href=\"memlist.php?go=$go_forward\" title=\"&gt;&gt;\"><img src=\"pics/ra.png\" width=\"10\" height=\"9\" hspace=\"0\" vspace=\"0\" border=\"0\" alt=\"&gt;&gt;\" onmouseover=\"this.src='pics/rb.png'\" onmouseout=\"this.src='pics/ra.png'\" /></a>";
  42.  
  43. ?></td></tr></table></td></tr></table></td></tr></table></body></html>