<?php
|
include_once "/Account/User.php";
|
include_once "/language/lang.php";
|
include_once "/Common/CommFunc.php";
|
include_once "cfg/GMT_QueryBillboard.php";
|
include_once "/Common/Logging.php";
|
|
\Logging\CreateLogging("queryBillboard.php");
|
|
$Permission = \User\Permission::P_QueryBillboard;
|
$spid = $_SESSION['spid'];
|
$user = new \User\User($_SESSION['UserAccount']);
|
if (!$user->HavePermission($Permission)) {
|
exit;
|
}
|
|
$billboardCh = GetbillboardCh();
|
|
?>
|
|
<!DOCTYPE html>
|
<html>
|
|
<head>
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
<title><?php echo \Lang\gettext("查询实时排行榜"); ?></title>
|
<link rel="gettext" type="application/x-po" href="../language/<?php echo \Lang\getLang(); ?>/LC_MESSAGES/<?php echo \Lang\getjspodomain(); ?>.po" />
|
</head>
|
|
<body>
|
|
<form id="QueryBillboard" name="QueryBillboard" action="/Common/GMCmdProcess.php" method="post">
|
<dl>
|
<center>
|
<dt><b><?php echo \Lang\gettext("查询实时排行榜"); ?></b></dt>
|
</center>
|
|
<dd class="def_dd">
|
<div>
|
<label><?php echo \Lang\gettext("榜单类型"); ?>:</label>
|
<select name='billboardType' id='billboardType'>
|
<?php
|
foreach ($billboardCh as $key => $value) {
|
$bbName = $value['BBName'];
|
echo "<option value='" . $key . "'>" . $bbName . "(" . $key . ")</option>";
|
}
|
?>
|
</select>
|
<input class="long_input" type="text" name="billType" value="" maxlength="3" size="5" />(<?php echo \Lang\gettext("其他类型"); ?>)
|
</div>
|
<div>
|
<?php echo \Lang\gettext("查询条数"); ?>: <input class="long_input" type="number" name="queryCount" value="20" min="10" max="100"/>
|
<?php echo \Lang\gettext("从第几名开始"); ?>: <input class="long_input" type="number" name="startRank" value="1" min="1" max="1000"/>
|
</div>
|
<p class="clear"></p>
|
</dd>
|
|
<?php
|
if ($user->NeedCheckKey()) {
|
echo "<dd class=\"def_dd\">";
|
echo \Lang\gettext("授权码(key)") . ":";
|
echo "<input type=\"text\" name=\"key\" id=\"key\" />";
|
echo "<p class=\"clear\"></p>";
|
echo "</dd>";
|
} else {
|
echo "<input type=\"hidden\" name=\"key\" id=\"key\" />";
|
}
|
?>
|
<input type="hidden" name="Permission" value="<?php echo $Permission; ?>" />
|
<input type="hidden" name="pack_type" value="GMT_QueryBillboard" />
|
<dd class="submit_dd">
|
<input type="submit" name="submit" value="<?php echo \Lang\gettext("提交"); ?>" onclick="return CheckKey('key')" />
|
<br /><br />
|
<a href="/serverinfo/billboardhis.php"><?php echo \Lang\gettext("查询历史排行榜"); ?></a>
|
</dd>
|
</dl>
|
</form>
|
|
<script type='text/javascript' src='/language/gettext.js'></script>
|
<script type='text/javascript' src="/js/common.js"></script>
|
</body>
|
|
</html>
|