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

📄 user_top.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 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=\"1\" cellpadding=\"0\">\r\n  <tr class=\"tablehead1\">\r\n    <td ><img src=\"/images/menu/bbs.gif\"  align=\"absmiddle\"> 讨论区积分榜\r\n    </td>\r\n  </tr>\r\n  <tr class=\"tablehead2\">\r\n    <td><a href=\"#\" onclick=\"his";
echo "tory.back();\"><img src=\"/images/button/return.gif\" border=\"0\"></a>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n<hr width=\"95%\" height=\"1\" align=\"left\" color=\"#ffffff\">\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=\"100%\" class=\"small\"  cellpadding=\"3\" >\r\n  <tr class=\"TableHeader\">\r\n      <td nowrap >排行</td>\r\n      <td nowrap >昵称</td>\r\n      <td nowrap >发表文章数</td>\r\n      <td nowrap >积分</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  width=\"30\" nowrap>";
	echo $USER_COUNT;
	echo "</td>\r\n      <td width=\"80\" nowrap >";
	echo $NICK_NAME;
	echo "</td>\r\n      <td  nowrap>";
	echo $BBS_COUNTER;
	echo "</td>\r\n      <td  nowrap>";
	echo $MONEY;
	echo "</td>\r\n  </tr>\r\n";
}
if ( 0 < $USER_COUNT )
{
	echo "  </table>\r\n";
}
else
{
	message( "", "<br>积分榜暂空" );
}
echo "\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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