<?php
|
include_once "/language/lang.php";
|
include_once "/Common/CommFunc.php";
|
include_once "/Common/Logging.php";
|
include_once "/Account/User.php";
|
|
\Logging\CreateLogging("GMT_Worship.php");
|
|
\CommFunc\SessionStart();
|
$Permission = \User\Permission::P_Worship;
|
$spid = $_SESSION['spid'];
|
$user = new \User\User($_SESSION['UserAccount']);
|
if (!$user->HavePermission($Permission)) {
|
exit;
|
}
|
|
//显示表格字段配置 key-参数名,value-说明
|
$tableArray = array(
|
"Num" => \Lang\gettext("编号"),
|
"PlayerID" => \Lang\gettext("PlayerID"),
|
"AccID" => \Lang\gettext("AccID"),
|
"Name" => \Lang\gettext("Name"),
|
"AddTime" => \Lang\gettext("添加时间"),
|
"WorshipType" => \Lang\gettext("膜拜类型"),
|
"WorshipValue" => \Lang\gettext("膜拜的值"),
|
"Days" => \Lang\gettext("膜拜天数"),
|
"ServerIDList" => \Lang\gettext("ServerIDList"),
|
);
|
|
$resultInfo = $_POST;
|
|
$resultList = $resultInfo["ResultMsg"]["WorshipList"];
|
|
$retCount = count($resultList);
|
|
?>
|
|
<!DOCTYPE html>
|
<html>
|
|
<head>
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
<title><?php echo \Lang\gettext("膜拜列表"); ?></title>
|
</head>
|
|
<body>
|
<hr />
|
<?php echo \Lang\gettext("当前可膜拜条数"); ?>: <?php echo $retCount; ?><br /><br />
|
<table id="tt" class="border-table">
|
<?php
|
echo "<tr>";
|
foreach ($tableArray as $key => $value) {
|
echo "<td align='center'>" . $value . "</td>";
|
}
|
echo "</tr>";
|
|
for ($i = 0; $i < $retCount; $i++) {
|
$infoDict = $resultList[$i];
|
$num = $i + 1;
|
echo "<tr>";
|
echo "<td align='center'>" . $num . "</td>";
|
foreach ($tableArray as $key => $value) {
|
if ($key == "Num") {
|
continue;
|
}
|
|
$widgetName = "lab" . $key . $i;
|
$tdContent = $infoDict[$key];
|
$tdContent = '<label name="' . $widgetName . '" id="' . $widgetName . '"/>' . $tdContent . '</label>';
|
$align = "center";
|
echo "<td align='" . $align . "'>" . $tdContent . "</td>";
|
}
|
echo "</tr>";
|
}
|
?>
|
</table>
|
<hr />
|
|
<style type="text/css">
|
.border-table {
|
border-collapse: collapse;
|
border: none;
|
font-size: 13px;
|
}
|
|
.border-table td {
|
border: solid #000 1px;
|
}
|
</style>
|
</body>
|
|
</html>
|