BBS3000PHP版(8)-listuser.php
<?
require ("setup.php");
$query="select id from user";
$result=mysql_db_query($db,$query);
$nums=mysql_num_rows($result);
if (empty(
$start))
{
$start=0;
}
$query="select username, email, send, re, lastvistor from user limit $start,20";
$result=@mysql_db_query($db,$query);
?>
<HTML>
<HEAD>
<TITLE>用户排行榜</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR>

<STYLE type=text/css>A:link {
    COLOR: #004080; FONT-FAMILY: "宋体", "serif"; FONT-SIZE: 9pt; TEXT-DECORATION: none
}
A:hover {
    BACKGROUND-COLOR: #cccc99; COLOR: #004080; TEXT-DECORATION: underline
}
A:visited {
    TEXT-DECORATION: none
}
BODY {
    FONT-FAMILY: "宋体", "serif"; FONT-SIZE: 9pt
}
TD {
    FONT-FAMILY: "宋体", "serif"; FONT-SIZE: 9pt
}
INPUT {
    FONT-SIZE: 9pt
}
P {
    FONT-SIZE: 9pt
}
BR {
    FONT-SIZE: 9pt
}
TR {
    FONT-SIZE: 9pt
}
TABLE {
    FONT-SIZE: 9pt
}
</STYLE>
<SCRIPT language=JavaScript>
function New(para_URL)
{
var URL =new String(para_URL)
window.open(URL,'','scrollbars=yes,width=360,height=320')
}
</SCRIPT>
</HEAD>
<BODY topmargin="0">
<table background=image/tablebg.gif border=0 cellpadding=4 
      cellspacing=0 width="100%">
  <tbody> 
  <tr> 
    <td><font color=#ffffff>您当前的位置:<a 
            href="Forum.php"><font color=#ffffff><?echo $bbsname;?></font></a>-&gt;&gt;&gt;用户排行榜</font> 
    </td>
    <td align=right><a href="<?echo $siteaddr;?>
            target=_blank><font 
          color=#ffffff><?echo $sitename;?></font></a></td>
  </tr>
  </tbody> 
</table>
<BR>
<P align=center class=pt10><B>用 户 排 行 榜 </B><BR><BR>


<TABLE align=center border=1 borderColorDark=#ffffff borderColorLight=#008000 
cellPadding=0 cellSpacing=0 width="80%">
  <TBODY> 
  <TR align=middle> 
    <TD background=image/tablebg.gif width="16%">姓名</TD>
    <TD background=image/tablebg.gif width="24%">Email地址</TD>
    <TD background=image/tablebg.gif width="30%">最后来访时间</TD>
    <TD background=image/tablebg.gif width="15%">发表文章</TD>
    <TD background=image/tablebg.gif width="15%">回复文章</TD>
  </TR>
  <?
  
while(list($name,$mails,$sends,$res,$lastvistors)=mysql_fetch_array($result))
  {
  echo 
"<TR align=middle>
    <TD width="
16%"><a href="JavaScript:New('user.php?username=".$name."')">".$name."</a>";
    if(
$adminer==$name){echo "(版主)";} echo"</TD>
    <TD width="
24%"><a href="mailto:".$mails."">".$mails."</a></TD>
    <TD width="
30%">".$lastvistors."</TD>
    <TD width="
15%"><FONT color=#ff0000>".$sends."</FONT>篇</TD>
    <TD width="
15%"><FONT color=#ff0000>".$res."</FONT>篇</TD>
  </TR>"
;
  }
  
?> 
  <TR> 
    <TD colSpan=5 align=middle> <?
if ($start!=0)
{
$start1=$start-20;
echo
"<A href='$PHP_SELF?start=$start1'>上一页</A>";
}
else
{
echo
"上一页";
}
echo 
"&nbsp;";
if ((
$start+20)<$nums)
{
$start2=$start+20;
echo
"<A href='$PHP_SELF?start=$start2'>下一页</A>";
}
else
{
echo 
"下一页";
}
?> </TD>
  </TR>
  <TR> 
    <TD align=middle bgColor=#fff5e1 colSpan=4 valign="middle"> 当前注册用户:<?echo $nums;?> 
      此页显示第<font color=red> <?echo ($start+1);?> </font>到<font color=red> <?echo ($start+20);?> </font>个用户 </TD>
    <TD align=middle bgColor=#fff5e1 width="100%"><a href="Forum.php">返回论坛</a></TD>
  </TR>
  </TBODY> 
</TABLE>
<div align="center">
  <hr noShade size=1 width=80%>
  &copy;版权所有:<a href="http://hexiaoye.datablocks.net" target="_blank">小叶之家</a> 
  程序制作:<a href="mailto:[email protected]">何小叶</a> </div>
</BODY></HTML>