<?cs include:"super_util.cs" ?>

<?cs def:print_content() ?>
 <fieldset>
 <legend>
       <?cs var:lang.super_purge_postoffice_confirm.page_title ?>
 </legend>
  <div>
   <form method="post" action="super_purge_postoffice" onsubmit="return validate_pass()" >
   <div>
    <input type="hidden" name="id" value="<?cs var:id ?>" />
   </div>
    <div class="instruction">
       <?cs var:lang.super_purge_postoffice_confirm.final_step ?>
    </div>

    <table cellspacing="0" cellpadding="8">
     <tr>
      <th> <?cs var:lang.super_purge_postoffice_confirm.course_id ?>
      </th> 
      <th><?cs var:lang.super_purge_postoffice_confirm.course_info ?></th> 
    </tr>
    <?cs each:this = course_list ?>
    <tr>
      <td><?cs var:this.id ?>
       <input type="hidden" name="course_list" value="<?cs var:this.id ?>:<?cs var:this.info ?>" />
      </td>
      <td><?cs var:this.info ?></td>
    </tr>
    <?cs /each ?> 
    <tr>
     <th colspan="2" >
        <?cs var:lang.super_purge_postoffice_confirm.password ?> <input type="password" name="password" id="password" title="<?cs var:lang.super_purge_postoffice_confirm.password_help ?>" />
     </th>
     </tr>
    <tr>
     <td colspan="2" align="center">
      <input type="submit" value="<?cs var:lang.super_purge_postoffice_confirm.delete_button ?>" title="<?cs var:lang.super_purge_postoffice_confirm.delete_help ?>" />
     </td>
    </tr> 
    </table>     
  </form>
  </div>
 </fieldset> 
<?cs /def ?>

<?cs call:html_header() ?>
   <head>
      <title><?cs var:lang.super_purge_postoffice_confirm.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"  />
   <script type="text/javascript" src="<?cs var:image_path ?>form_validation.js"></script>
   <?cs call:addDoIMenu()  ?> 
   <script type="text/javascript">
    function validate_pass()
    {
        var value = document.getElementById('password').value;
        if(is_whitespace(value))
        {
           window.alert('<?cs var:lang.super_purge_postoffice_confirm.provide_password ?>');
           return false;
        }
        return window.confirm('<?cs var:lang.super_purge_postoffice_confirm.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() ?>
