[ PHPXref.com ] [ Generated: Sun Jul 20 17:23:35 2008 ] [ edge 27-02-2006 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> users.php (source)

   1  <?
   2  //$edge_cleanpage = true;

   3  
   4  include ('include/edge.header.php');
   5  
   6  $disp_count = 50;
   7  
   8  echo "<span class=\"edgebig\">Member list:</span><br />";
   9  
  10  $l = $_GET['l'];
  11  if(!$l) $l = 0;
  12  $l = (int)$l;
  13  if($l % $disp_count != 0) $l = 0;
  14  echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" >";
  15  $q = "SELECT id,login,level,ccode FROM people WHERE login NOT LIKE '?' $filtered ORDER BY dat DESC LIMIT $l,$disp_count";
  16  $result = mysql_db_query($edge_database_auth,$q,$mysql);
  17  
  18  
  19  
  20  while ($row = mysql_fetch_object($result)){
  21      unset($b);
  22  
  23      if (auth_validname($row->login) == 0)
  24      $row->login = $row->login." ".flecho('ERROR VALIDATING',$es_errorvalid);
  25      $row->ccode = strtolower($row->ccode);
  26      if ($row->ccode == '')
  27          $row->ccode = '00';
  28  
  29      echo "<tr><td class=\"edgenormal\"><img src=\"imgsystem/country/$row->ccode.gif\" alt=\"\" /></td><td class=\"edgenormal\" $b width=\"200\"><a class=\"edgemenu\" href=\"user.php?name=$row->login\">$row->login</a></td>
  30      <td class=\"edgenormal\" $b><a class=\"edgemenu\" href=\"blogs.php?author=$row->login\">view blog</a>&nbsp;|&nbsp;<a class=\"edgemenu\" href=\"/memo2.send.php?to=$row->login\">send memo</a></td></tr>";
  31  }
  32  
  33  echo "</table><br />";
  34  
  35  if(mysql_num_rows($result) >= $disp_count)
  36      echo "Displaying users $l through " . ($l + $disp_count) . "<br />";
  37  else
  38      echo "Displaying users $l through " . ($l + mysql_num_rows($result)) . "<br />";
  39      
  40  if($l > 0)
  41      echo "<a class=\"edgemenu\" href=\"/users.php?l=" . ($l - $disp_count) . "\">< PREV $disp_count</a>&nbsp;&nbsp;&nbsp;";
  42  if(mysql_num_rows($result) >= $disp_count)
  43      echo "<a class=\"edgemenu\" href=\"/users.php?l=" . ($l + $disp_count) . "\">NEXT $disp_count ></a><br />";
  44  
  45  include ('include/edge.footer.php');
  46  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]