From c1ca95726c85b51e62e755907a6829bbbce51f33 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 06 十二月 2024 18:10:29 +0800
Subject: [PATCH] 10162 后台优化(bug反馈增加过滤选择玩家反馈或系统反馈;)
---
serverinfo/BugReport.php | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/serverinfo/BugReport.php b/serverinfo/BugReport.php
index e2e58cf..062d82e 100644
--- a/serverinfo/BugReport.php
+++ b/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
--
Gitblit v1.8.0