hxp
2024-12-06 c1ca95726c85b51e62e755907a6829bbbce51f33
10162 后台优化(bug反馈增加过滤选择玩家反馈或系统反馈;)
1个文件已修改
19 ■■■■■ 已修改文件
serverinfo/BugReport.php 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
serverinfo/BugReport.php
@@ -37,6 +37,13 @@
}
$find = array("Channel" => $spid);
$showTypeInfo = array("all" => "全部", "bug" => "玩家反馈", "system" => "系统反馈");
$showType = $_POST["showType"] ? $_POST["showType"] : "bug";
if ($showType == "bug") {
    $find["AccountID"] = array('$nin' => array("system"));
} elseif ($showType == "system") {
    $find["AccountID"] = "system";
}
\DBOper\Find("EventReportBug", $find, $bugArray, null, array("Time" => -1), $limit, $skip);
$totalCount = count($bugArray);
if ($totalCount >= $limit || $page > 1) {
@@ -114,6 +121,18 @@
    </center>
    <form id="BugReport" action="BugReport.php" method="post">
        <?php
        echo "<select name=\"showType\">";
        foreach ($showTypeInfo as $key => $value) {
            echo "<option value=\"" . $key . "\"";
            if ($showType == $key) {
                echo " selected";
            }
            echo ">" . $value . "</option>";
        }
        echo "</select>";
        ?>
        <input type="submit" name="submit" value="<?php echo \Lang\gettext("查询"); ?>" class="button green medium" />
        <hr />
        <table width="100%">
            <?php