hxp
2025-06-09 6c3f6335c70859ded94a1ad8d218acb0ac34239c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?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>