⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user_top.php

📁 极限网络智能办公系统—MYOA26—100%—源程序。
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
echo "\r\n<html>\r\n<head>\r\n<title>讨论区积分榜</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/menu/bbs.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> 讨论区积分榜</span><br>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n<hr width=\"95%\" height=\"1\" align=\"left\" class=\"big1\">\r\n\r\n";
$connection = openconnection( );
$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( ">", "&gt", $NICK_NAME );
	$NICK_NAME = stripslashes( $NICK_NAME );
	if ( $USER_COUNT == 1 )
	{
		echo "\r\n<table border=\"0\" cellspacing=\"1\" width=\"450\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\">\r\n  <tr class=\"TableHeader\">\r\n      <td nowrap align=\"center\">排行</td>\r\n      <td nowrap align=\"center\">昵称</td>\r\n      <td nowrap align=\"center\">发表文章数</td>\r\n      <td nowrap align=\"center\">积分</td>\r\n  </tr>\r\n\r\n";
	}
	if ( $USER_COUNT % 2 == 1 )
	{
		$TableLine = "TableLine1";
	}
	else
	{
		$TableLine = "TableLine2";
	}
	echo "    <tr class=\"";
	echo $TableLine;
	echo "\">\r\n      <td align=\"center\" width=\"30\" nowrap>";
	echo $USER_COUNT;
	echo "</td>\r\n      <td width=\"80\" nowrap align=\"center\">";
	echo $NICK_NAME;
	echo "</td>\r\n      <td align=\"center\" nowrap>";
	echo $BBS_COUNTER;
	echo "</td>\r\n      <td align=\"center\" nowrap>";
	echo $MONEY;
	echo "</td>\r\n  </tr>\r\n";
}
if ( 0 < $USER_COUNT )
{
	echo "  </table>\r\n";
}
else
{
	message( "", "<br>积分榜暂空" );
}
button_back( );
echo "\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -