| <?php | 
| include_once "/Account/User.php"; | 
| include_once "/Common/Logging.php"; | 
| include_once "/Common/CommFunc.php"; | 
| include_once "/language/lang.php"; | 
|   | 
| \Logging\CreateLogging("Worship.php"); | 
| $Permission = \User\Permission::P_Worship; | 
| $spid = $_SESSION['spid']; | 
| $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="gettext" type="application/x-po" href="../language/<?php echo \Lang\getLang(); ?>/LC_MESSAGES/<?php echo \Lang\getjspodomain(); ?>.po" /> | 
| </head> | 
|   | 
| <body> | 
|   | 
|     <form id="addtitle" name="addtitle" action="/Common/GMCmdProcess.php" method="post"> | 
|         <dl> | 
|             <dt><?php echo \Lang\gettext("膜拜管理"); ?></dt> | 
|             <dd class="def_dd"> | 
|                 <div> | 
|                     玩家不在线或跨服膜拜操作时可按玩家ID<br /> | 
|                     <input type="radio" name="queryType" value="accID" checked /> | 
|                     <span><?php echo \Lang\gettext("按账号"); ?></span> | 
|                     <input type="radio" name="queryType" value="playerName" /> | 
|                     <span><?php echo \Lang\gettext("角色名"); ?></span> | 
|                     <input type="radio" name="queryType" value="playerID" /> | 
|                     <span><?php echo \Lang\gettext("玩家ID"); ?></span> | 
|                     <br /> | 
|                     <label><?php echo \Lang\gettext("目标玩家"); ?>:</label> | 
|                     <input class="long_input" type="text" name="playerFind" id="playerFind" value="" /> | 
|                 </div> | 
|                 <p class="clear"></p> | 
|             </dd> | 
|   | 
|             <dd class="def_dd"> | 
|                 <label><?php echo \Lang\gettext("膜拜类型"); ?>:</label> | 
|                 <select name="worshipType"> | 
|                     <option value="1"><?php echo \Lang\gettext("服务器冠名(1)"); ?></option> | 
|                     <option value="2"><?php echo \Lang\gettext("跨服排位(2)"); ?></option> | 
|                     <option value="3"><?php echo \Lang\gettext("跨服boss凭证(3)"); ?></option> | 
|                     <option value="4"><?php echo \Lang\gettext("跨服秘境寻宝(4)"); ?></option> | 
|                     <option value="5"><?php echo \Lang\gettext("跨服骑宠养成(5)"); ?></option> | 
|                     <option value="6"><?php echo \Lang\gettext("跨服古宝养成(6)"); ?></option> | 
|                 </select> | 
|                 <p class="clear"></p> | 
|             </dd> | 
|   | 
|             <dd class="def_dd"> | 
|                 <label><?php echo \Lang\gettext("膜拜的值"); ?>:</label> | 
|                 <input class="long_input" type="number" name="worshipValue" value="0" min="0" /> (<?php echo \Lang\gettext("膜拜类型对应的功能值,如名次"); ?>) | 
|                 <p class="clear"></p> | 
|             </dd> | 
|   | 
|             <dd class="def_dd"> | 
|                 <label><?php echo \Lang\gettext("膜拜天数"); ?>:</label> | 
|                 <input class="long_input" type="number" name="days" value="2" min="0" /> (0为永久) | 
|                 <p class="clear"></p> | 
|             </dd> | 
|   | 
|             <dd class="def_dd"> | 
|                 <label><?php echo \Lang\gettext("可膜拜服务器ID列表,格式: [指定serverID, [从serverIDA, 到serverIDB], ...], 配[]为全服"); ?>:</label><br /> | 
|                 <input class="long_input" name="serverIDList" id="serverIDList" value="[]" size="50"/> | 
|                 <p class="clear"></p> | 
|             </dd> | 
|   | 
|             <dd class="def_dd"> | 
|                 <label><?php echo \Lang\gettext("选择操作"); ?>:</label> | 
|                 <input type="radio" name="opType" value="add" checked /> | 
|                 <span><?php echo \Lang\gettext("添加"); ?></span> | 
|                 <input type="radio" name="opType" value="del" /> | 
|                 <span><?php echo \Lang\gettext("删除"); ?></span> | 
|                 <input type="radio" name="opType" value="view" /> | 
|                 <span><?php echo \Lang\gettext("查看服务器所有膜拜"); ?></span> | 
|                 <br />(注:重复添加时会直接替换) | 
|                 <p class="clear"></p> | 
|             </dd> | 
|   | 
|             <?php | 
|             if ($user->NeedCheckKey()) { | 
|                 echo "<dd class=\"def_dd\"><br />"; | 
|                 echo \Lang\gettext("授权码(key)") . ":"; | 
|                 echo "<input type=\"text\" name=\"key\" id=\"key\" />"; | 
|                 echo "<p class=\"clear\"></p>"; | 
|                 echo "</dd>"; | 
|             } else { | 
|                 echo "<input type=\"hidden\" name=\"key\" id=\"key\" />"; | 
|             } | 
|             ?> | 
|             <input type="hidden" name="Permission" value="<?php echo $Permission; ?>" /> | 
|             <input type="hidden" name="pack_type" value="GMT_Worship" /> | 
|             <dd class="submit_dd"> | 
|                 <input type="submit" name="submit" value="<?php echo \Lang\gettext("提交"); ?>" onclick="return CheckSubmit();" /> | 
|             </dd> | 
|         </dl> | 
|     </form> | 
|   | 
|     <script type='text/javascript' src='/language/gettext.js'></script> | 
|     <script type='text/javascript' src="/js/common.js"></script> | 
|     <script type="text/javascript"> | 
|         function CheckSubmit() { | 
|             if (!CheckKey("key")) { | 
|                 return false; | 
|             } | 
|   | 
|             if (!window.confirm("<?php echo \Lang\gettext("确定提交?"); ?>")) { | 
|                 return false; | 
|             } | 
|   | 
|             return true; | 
|         } | 
|     </script> | 
| </body> | 
|   | 
| </html> |