<?php 
 | 
include_once "/Common/CommFunc.php"; 
 | 
include_once "/Common/Logging.php"; 
 | 
include_once "/Account/User.php"; 
 | 
include_once "/language/lang.php"; 
 | 
  
 | 
\Logging\CreateLogging("CompensationQuery.php"); 
 | 
  
 | 
$Permission = \User\Permission::P_ServerMailMgr; 
 | 
$user = new \User\User($_SESSION['UserAccount']); 
 | 
if (!$user->HavePermission($Permission)) { 
 | 
    exit; 
 | 
} 
 | 
  
 | 
?> 
 | 
  
 | 
<!DOCTYPE html> 
 | 
<html> 
 | 
  
 | 
<head> 
 | 
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
 | 
    <title><?php echo \Lang\gettext("全服邮件管理"); ?></title> 
 | 
    <link rel="stylesheet" type="text/css" href="/css/tableform.css"> 
 | 
    <link rel="gettext" type="application/x-po" href="../language/<?php echo \Lang\getLang(); ?>/LC_MESSAGES/<?php echo \Lang\getjspodomain(); ?>.po" /> 
 | 
</head> 
 | 
  
 | 
<body> 
 | 
  
 | 
    <form id="CompensationQuery" name="CompensationQuery" action="/Common/GMCmdProcess.php" method="post"> 
 | 
  
 | 
        <table id="tt" class="formTable"> 
 | 
            <caption><b><?php echo \Lang\gettext("全服邮件管理"); ?></b><br /></caption> 
 | 
            <tr> 
 | 
                <td class="formTableTDName"><?php echo \Lang\gettext("发送时间"); ?>: </td> 
 | 
                <td class="formTableTDValue"> 
 | 
                    <input type="text" name="FromDate" id="FromDate" onclick="new Calendar().show(this);" readonly value="<?php echo date('Y-m-d') ?>" size="8" /> 
 | 
                    ~ 
 | 
                    <input type="text" name="ToDate" id="ToDate" onclick="new Calendar().show(this);" readonly value="<?php echo date('Y-m-d') ?>" size="8" /> 
 | 
                </td> 
 | 
            </tr> 
 | 
            <tr> 
 | 
                <td class="formTableTDName"><?php echo \Lang\gettext("包含标题"); ?>: </td> 
 | 
                <td class="formTableTDValue"> 
 | 
                    <input type="text" name="SearchTitle" id="SearchTitle" size="50" /> 
 | 
                </td> 
 | 
            </tr> 
 | 
            <tr> 
 | 
                <td class="formTableTDName"><?php echo \Lang\gettext("包含内容"); ?>: </td> 
 | 
                <td class="formTableTDValue"> 
 | 
                    <input type="text" name="SearchContent" id="SearchContent" size="50" /> 
 | 
                </td> 
 | 
            </tr> 
 | 
            <tr> 
 | 
                <td class="formTableTDName"><?php echo \Lang\gettext("邮件GUID"); ?>: </td> 
 | 
                <td class="formTableTDValue"> 
 | 
                    <input type="text" name="GUID" id="GUID" size="50" /> 
 | 
                </td> 
 | 
            </tr> 
 | 
            <tr> 
 | 
                <td class="formTableTDName"><?php echo \Lang\gettext("审核状态"); ?>: </td> 
 | 
                <td class="formTableTDValue"> 
 | 
                    <select name="SearchState" id="SearchState"> 
 | 
                        <option value="0"><?php echo \Lang\gettext("全部"); ?></option> 
 | 
                        <option value="1"><?php echo \Lang\gettext("已通过"); ?></option> 
 | 
                        <option value="2" selected><?php echo \Lang\gettext("未审核"); ?></option> 
 | 
                    </select> 
 | 
                </td> 
 | 
            </tr> 
 | 
            <tr> 
 | 
                <td class="formTableTDName"></td> 
 | 
                <td class="formTableTDValue"> 
 | 
                    ** <?php echo \Lang\gettext("最大返回条数20条"); ?> ** 
 | 
                    <input type="hidden" name="MaxCount" value="20" /> 
 | 
                </td> 
 | 
            </tr> 
 | 
            <?php 
 | 
            if ($user->NeedCheckKey()) { 
 | 
                echo "<tr><td class=\"formTableTDName\">"; 
 | 
                echo \Lang\gettext("授权码(key)"); 
 | 
                echo ": </td>"; 
 | 
                echo "<td class=\"formTableTDValue\">"; 
 | 
                echo "<input type=\"text\" name=\"key\" id=\"key\" />"; 
 | 
                echo "</td><tr>"; 
 | 
            } else { 
 | 
                echo "<input type=\"hidden\" name=\"key\" id=\"key\" />"; 
 | 
            } 
 | 
            ?> 
 | 
            <tr> 
 | 
                <td class="formTableTDName"></td> 
 | 
                <td class="formTableTDValue"> 
 | 
                    <input type="hidden" name="Permission" value="<?php echo $Permission; ?>" /> 
 | 
                    <input type="hidden" name="pack_type" value="GMT_CompensationQuery" /> 
 | 
                    <input type="submit" name="submit" value="<?php echo \Lang\gettext("查询"); ?>" onclick="return CheckKey('key')" /> 
 | 
                </td> 
 | 
            </tr> 
 | 
        </table> 
 | 
    </form> 
 | 
    <script type='text/javascript' src='/language/gettext.js'></script> 
 | 
    <script type='text/javascript' src="/js/calendar.js"></script> 
 | 
    <script type='text/javascript' src="/js/common.js"></script> 
 | 
</body> 
 | 
  
 | 
</html> 
 |