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

<?cs def:print_data(data) ?>
 <table cellspacing="0" cellpadding="2" border="1">
   <tr>
    <td>&nbsp;</td>
    <?cs each:this = lang.super_manwho.heading ?>
     <th><?cs var:this ?></th>
    <?cs /each ?>
  </tr>
  <?cs each:one = data ?>
   <tr>
    <?cs set:index = name(one) +#1 ?>
    <td><?cs var:index ?></td>
    <td><?cs var:one.course ?></td>
    <td><?cs var:one.realname ?></td>
    <td align="right"><?cs var:one.minutes ?></td>
   </tr>
  <?cs /each ?>
 </table>
<?cs /def ?>




<?cs def:print_row(name, value) ?>
  <tr>
      <th align="right"><?cs var:name ?></th>  
      <td><?cs var:value ?></td>  
  </tr>
<?cs /def ?>




<?cs def:print_ctr_summary() ?>
  <table cellspacing="0" cellpadding="2" >
    <?cs call:print_row(lang.super_manwho.ctr_msg[0], ctr_course_num) ?>
    <?cs call:print_row(lang.super_manwho.ctr_msg[1], ctr_course_inuse) ?>
    <?cs call:print_row(lang.super_manwho.ctr_msg[2], ctr_delete_key) ?>
    <?cs call:print_row(lang.super_manwho.ctr_msg[3], ctr_session_key) ?>
</table>
<?cs /def ?>




<?cs def:print_std_summary() ?>
  <table cellspacing="0" cellpadding="2" >
    <?cs call:print_row(lang.super_manwho.std_msg[0], std_course_num) ?>
    <?cs call:print_row(lang.super_manwho.std_msg[1], std_course_inuse) ?>
    <?cs call:print_row(lang.super_manwho.std_msg[2], std_delete_key) ?>
</table>
<?cs /def ?>




<?cs def:print_content() ?>
<fieldset>
  <legend><?cs var:lang.super_manwho.page_title ?></legend>
<table width="100%">
<tr><td align="center">
  <h4><?cs var:lang.super_manwho.ctr_login ?> <i><?cs var:current_time ?></i></h4>
  <?cs call:print_ctr_summary() ?><br /><br />
  <?cs call:print_data(ctr) ?><br /><br />
  <h4><?cs var:lang.super_manwho.std_login ?> <i> <?cs var:current_time ?></i></h4>
  <?cs call:print_std_summary() ?><br /><br />
  <?cs call:print_data(std) ?><br /><br />
</td></tr>
</table>
</fieldset> 
<?cs /def ?>




<?cs call:html_header() ?> 
   <head>
      <title><?cs var:lang.super_manwho.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()  ?>
  </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() ?>

