HavePermission($Permission)) { exit; } $limitDefault = 30; $limit = array_key_exists("limit", $_COOKIE) ? intval($_COOKIE["limit"]) : $limitDefault; // 单页条数 $limit = 30; $page = 1; if (array_key_exists("limit", $_POST) && intval($_POST["limit"]) > 0) { $limit = intval($_POST["limit"]); } if (array_key_exists("topage", $_POST) && intval($_POST["topage"]) > 1) { $page = intval($_POST["topage"]); } else if (array_key_exists("page", $_POST) && intval($_POST["page"]) > 1) { $page = intval($_POST["page"]); } $skip = ($page - 1) * $limit; if ($page == 1) { \DBOper\EnsureIndex("EventReportBug", array("Channel" => 1, "Time" => -1)); } $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) { $totalCount = \DBOper\Count("EventReportBug", $find); } //显示表格字段配置 key-参数名,value-说明 $tableArray = array( "RegionID" => array(\Lang\gettext("区服"), "5%", "center"), "UserAccount" => array(\Lang\gettext("内容"), "", "left"), ); $moneyNameInfo = CommFunc\getCfgKeyNameContent("money", false); $itemIDNameInfo = CommFunc\getCfgKeyNameContent("item", false); \CommFunc\GetConfig("ServerInfo", "BugReportMailTitle", $mailTitle); $ReplyMailInfo = array(); // 保存cookie // setcookie("limit", $limit); ?>