| <?php | 
| include_once "/Account/User.php"; | 
| include_once "/language/lang.php"; | 
|   | 
| \Logging\CreateLogging("BourseOnOff.php"); | 
| $Permission = \User\Permission::P_BourseOnOff; | 
| $spid = $_SESSION['spid']; | 
| $user = new \User\User($_SESSION['UserAccount']); | 
| if (!$user->HavePermission($Permission)) { | 
|     exit; | 
| } | 
| $serversArray = $user->GetServers(); | 
| ?> | 
|   | 
| <!DOCTYPE html> | 
| <html> | 
|   | 
| <head> | 
|     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | 
|     <title>交易所开关查询</title> | 
| </head> | 
|   | 
| <body> | 
|   | 
|     <form id="BourseOnOff" name="BourseOnOff" action="/Common/GMCmdProcess.php" method="post"> | 
|         <dt>交易所开关查询</dt> | 
|   | 
|         <div class="def_dd"></br> | 
|             <label>请选择操作类型(开启/关闭)</label> | 
|             <div> | 
|                 <input type="radio" name="operate" value="query" checked /> | 
|                 <span>查询</span> | 
|                 <input type="radio" name="operate" value="on" /> | 
|                 <span>开启</span> | 
|                 <input type="radio" name="operate" value="off" /> | 
|                 <span>关闭</span> | 
|             </div> | 
|             <p class="clear"></p> | 
|         </div> | 
|         <?php | 
|         include_once "/Common/SelectServer.php"; | 
|         ?> | 
|         <br /> | 
|         <hr /> | 
|         <?php | 
|         if ($user->NeedCheckKey()) { | 
|             echo \Lang\gettext("授权码(key)") . ":"; | 
|             echo "<input type=\"text\" name=\"key\" id=\"key\" />"; | 
|         } else { | 
|             echo "<input type=\"hidden\" name=\"key\" id=\"key\" />"; | 
|         } | 
|         ?> | 
|         <div class="submit_dd"> | 
|             <br /> | 
|             <input type="hidden" name="Permission" value="<?php echo $Permission; ?>" /> | 
|             <input type="hidden" name="pack_type" value="GMT_BourseOnOff" /> | 
|             <input type="submit" name="submit" value="提交" onclick="return CheckKey('key')" /> | 
|         </div> | 
|         <br /> | 
|     </form> | 
| </body> | 
|   | 
| </html> | 
| <script type='text/javascript' src="/js/common.js"></script> | 
| <script type='text/javascript' src="/Common/selectserver.js"></script> |