<?cs include:"super_util.cs" ?>
<?cs def:print_content() ?>
<fieldset>
<?cs if:!del_success ?>
<legend><?cs var:lang.super_del_admin_form.page_title ?></legend>
<?cs else ?>
<legend><?cs var:lang.super_del_admin_form.page_title2 ?></legend>
 <?cs /if ?>

<table width="100%">
<tr><td align="center">
   <?cs if:del_success ?>
    <h4><?cs var:del_realname ?> (<?cs var:del_username ?>) <?cs var:lang.super_del_admin_form.was_deleted ?></h4>
    <h4><i><?cs var:current_time ?></i></h4>
   <?cs else ?>
   <div><form method="post" action="super_del_admin" onsubmit="return delete_user_warn()">
        <div><input type="hidden" name="id" value="<?cs var:Query.id ?>" />
        </div>
  <table cellspacing="0" cellpadding="4">
    <tr><th align="left"><?cs var:lang.super_del_admin_form.select ?></th><td>&nbsp;</td>
    </tr>
    <tr><td colspan="2" align="center">
        <select name="list_user" size="5"  title="<?cs var:lang.super_del_admin_form.select_help ?>" >
        <?cs each:this = user ?>
        <option value="<?cs var:this.username ?>:<?cs var:this.realname ?>"><?cs var:this.realname ?>(<?cs var:this.username ?>)</option>    
        <?cs /each ?>
       </select>
       </td>
    </tr>
    <tr><td colspan="2" align="center">
     <input  type="submit" value="<?cs var:lang.super_del_admin_form.delete_button ?>" title="<?cs var:lang.super_del_admin_form.delete_help ?>" />
     </td>
    </tr>
   </table>
   </form></div>
   <?cs /if ?> 
</td></tr>
</table>  
</fieldset>
<?cs /def ?>
 
<?cs call:html_header() ?> 
   <head>
      <title><?cs var:lang.super_del_admin_form.page_title ?></title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <link rel="StyleSheet" href="<?cs var:image_path ?>super_template.css" type="text/css"  />
   <?cs call:addDoIMenu() ?> 
   <script type="text/javascript">
    function delete_user_warn()
    {
       if(document.forms[0].list_user.selectedIndex < 0)
       {
         window.alert('<?cs var:lang.super_del_admin_form.must_select_one_user ?>');
         return false; 
       } 
       return window.confirm('<?cs var:lang.super_del_admin_form.delete_admin_warn_msg ?>');
    }
   </script>
  </head>
<body>
<div id="container">
 <?cs call:top_container() ?>
 <?cs call:doIMenu() ?>
 <div id="content">
  <?cs call:print_content() ?>
 </div>
</div>
</body>
</html>
<?cs call:runtime() ?>
