| | |
| | | } |
| | | $server_id = $_SESSION['server_id']; |
| | | |
| | | $isSpecialAccount = False; |
| | | \CommFunc\GetConfig("ServerInfo", "SpecialAccountList", $SpecialAccountList); |
| | | $SpecialAccountList = explode(",", $SpecialAccountList); |
| | | // 特殊账号,只能看本服 |
| | | if (in_array($UserAccount, $SpecialAccountList)) { |
| | | $isSpecialAccount = True; |
| | | } |
| | | |
| | | $onlyServerID = "on"; |
| | | if (array_key_exists("search", $_POST)) { |
| | | $onlyServerID = $_POST["onlyServerID"]; |
| | |
| | | $queryOrderIDSDK = $_POST["OrderIDSDK"]; |
| | | |
| | | $find = array("Channel" => $spid); |
| | | if ($onlyServerID == 'on') { |
| | | if ($onlyServerID == 'on' || $isSpecialAccount) { |
| | | $serversCfg = $user->GetServersCfg($spid); |
| | | if (array_key_exists($server_id, $serversCfg)) { |
| | | $find["ServerID"] = intval($serversCfg[$server_id]["ServerID"]); |
| | |
| | | 订单ID: <input type="input" name="OrderID" id="OrderID" value="<?php echo $queryOrderID ?>" /> |
| | | SDK订单ID: <input type="input" name="OrderIDSDK" id="OrderIDSDK" value="<?php echo $queryOrderIDSDK ?>" /> |
| | | <?php |
| | | // 仅显示本服 |
| | | echo " "; |
| | | echo '<input type="checkbox" name="onlyServerID" id="onlyServerID" ' . ($onlyServerID == "on" ? "checked" : "") . ' />' . \Lang\gettext("仅显示本服"); |
| | | if (!$isSpecialAccount) { |
| | | // 仅显示本服 |
| | | echo " "; |
| | | echo '<input type="checkbox" name="onlyServerID" id="onlyServerID" ' . ($onlyServerID == "on" ? "checked" : "") . ' />' . \Lang\gettext("仅显示本服"); |
| | | } |
| | | ?> |
| | | <input type="submit" name="submit" value="<?php echo \Lang\gettext("搜索"); ?>" class="button green medium" /> |
| | | <hr /> |