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

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

<?cs def:print_comment(value) ?>
  <li><?cs var:value ?></li>
<?cs /def ?>

<?cs call:html_header() ?>
   <head>
      <title><?cs var:lang.super_modify_profile_form.page_title ?></title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <link rel="StyleSheet" href="<?cs var:image_path ?>common.css" type="text/css"  />
   <?cs if:show_result ?>
   <script language="javascript">
   function dothis()
   {
      opener.parent.location.reload();
          window.close();
   }
   </script>
   <?cs /if ?>
  </head>
<body onload="document.getElementById('realname').focus()">
<table width="100%">
<tr><td align="center">
    <div class="center_msg"><?cs var:lang.super_modify_profile_form.page_title ?></div>
    <br />
   <?cs if:show_result ?>
     <table>
      <?cs call:print_row(lang.super_modify_profile_form.label[0], username) ?>
      <?cs call:print_row(lang.super_modify_profile_form.label[1], id_number) ?>
      <?cs call:print_row(lang.super_modify_profile_form.label[2], realname) ?>
      <tr><td colspan="2">
        <div><form action ="">
        <div><input  type="button" value="<?cs var:lang.super_modify_profile_form.closewin ?>" onclick="dothis()" title="<?cs var:lang.modify_profile_form.closewin ?>" /> 
        </div>
        </form></div>
      </td></tr>
     </table>
   <?cs else ?>
    <div>
       <form method="post" action="super_modify_profile">
       <div>
       <input type="hidden" name="id" value="<?cs var:Query.id ?>" />
       <input type="hidden" name="id_number" value="<?cs var:id_number ?>" />
       <input type="hidden" name="username" value="<?cs var:username ?>" />
      </div> 
    <table  cellspacing="0" cellpadding="4">
      <?cs call:print_row(lang.super_modify_profile_form.label[0], username) ?>
      <?cs call:print_row(lang.super_modify_profile_form.label[1], id_number) ?>
      <?cs call:print_row(lang.super_modify_profile_form.label[2], realname) ?>
      <tr>
       <th align="right"><?cs var:lang.super_modify_profile_form.label[3] ?></th>
       <td><input type="text" class="super_color_text" name="realname" id="realname" size="20" maxlength="<?cs var:maxlength ?>" value="<?cs var:realname ?>" />
       </td>
      </tr>
      <tr><td colspan="2" align="center">
        <input  type="submit" value="<?cs var:lang.super_modify_profile_form.label[4] ?>" />
        <input  type="button" value="<?cs var:lang.super_modify_profile_form.label[5] ?>" onclick="window.close()" />
     </td></tr> 
   </table>
   </form></div>
   <br />
   <table>
   <tr><td>
    <ul>
    <?cs each:this = lang.super_modify_profile_form.comment ?>
      <?cs call:print_comment(this) ?>
    <?cs /each ?>
  </ul> 
  </td></tr>
  </table>
  <?cs /if ?>
</td></tr>
</table>
</body>
</html>
<?cs call:runtime() ?>
