📄 user_top.php
字号:
<?
include_once("inc/auth.php");
?>
<html>
<head>
<title>讨论区积分榜</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/menu/bbs.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> 讨论区积分榜</span><br>
</td>
</tr>
</table>
<br>
<?
//------- 用户信息 -------
$query = "SELECT * from USER where BBS_COUNTER>0 order by BBS_COUNTER desc";
$cursor = exequery($connection,$query);
$USER_COUNT=0;
while($ROW=mysql_fetch_array($cursor))
{
$USER_COUNT++;
$USER_NAME = $ROW["USER_NAME"];
$NICK_NAME = $ROW["NICK_NAME"];
$AVATAR=$ROW["AVATAR"];
$BBS_COUNTER=$ROW["BBS_COUNTER"];
$MONEY=$BBS_COUNTER*10;
$NICK_NAME=str_replace(">",">",$NICK_NAME);
$NICK_NAME=stripslashes($NICK_NAME);
if($NICK_NAME=="")
$NICK_NAME="未设置昵称";
if($USER_COUNT==1)
{
?>
<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3" align="center">
<tr class="TableHeader">
<td nowrap align="center">排行</td>
<td nowrap align="center">昵称</td>
<?
if($LOGIN_USER_PRIV==1)
{
?>
<td nowrap align="center">实名</td>
<?
}
?>
<td nowrap align="center">发表文章数</td>
<td nowrap align="center">积分</td>
</tr>
<?
}
if($USER_COUNT%2==1)
$TableLine="TableLine1";
else
$TableLine="TableLine2";
?>
<tr class="<?=$TableLine?>">
<td align="center" width="30" nowrap><?=$USER_COUNT?></td>
<td width="80" nowrap align="center"><?=$NICK_NAME?></td>
<?
if($LOGIN_USER_PRIV==1)
{
?>
<td align="center" width="50" nowrap><?=$USER_NAME?></td>
<?
}
?>
<td align="center" nowrap><?=$BBS_COUNTER?></td>
<td align="center" nowrap><?=$MONEY?></td>
</tr>
<?
}
if($USER_COUNT>0)
{
?>
</table>
<?
}
else
Message("","<br>积分榜暂空");
Button_Back();
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -