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

<?cs def:print_radio(name_msg, name, label) ?>
 <th align="right"><?cs var:name_msg ?></th>
 <td>
 <?cs set:value= #0 ?>
 <?cs each:this = label ?>
     <?cs if:value == #0 ?>
     <input type="radio" name="<?cs var:name ?>" value="<?cs var:value ?>" checked="checked"  title="<?cs var:this.help ?>" /><?cs var:this.msg ?>
     <?cs else ?>
     <input type="radio" name="<?cs var:name ?>" value="<?cs var:value ?>"  title="<?cs var:this.help ?>" /><?cs var:this.msg ?>
     <?cs /if ?>
     <?cs set:value= value + #1 ?>
 <?cs /each ?> 
  </td>
<?cs /def ?>

<?cs def:print_report(name_msg, name, label) ?>
 <th align="right"><?cs var:name_msg ?></th>
 <td>
 <?cs set:value= #0 ?>
 <?cs each:this = label ?>
     <?cs if:value == #0 ?>
     <input type="radio" name="<?cs var:name ?>" value="1" checked="checked"  title="<?cs var:this.help ?>" /><?cs var:this.msg ?>
     <?cs else ?>
     <input type="radio" name="<?cs var:name ?>" value="0"  title="<?cs var:this.help ?>" /><?cs var:this.msg ?>
     <?cs /if ?>
     <?cs set:value= value + #1 ?>
 <?cs /each ?> 
  </td>
<?cs /def ?>
<?cs def:print_content() ?>
<fieldset>
<legend><?cs var:lang.super_info_form.page_title ?></legend>
<table width="100%">
<tr><td align="center">
    <div>
     <form method="post" action="super_info" onsubmit="return myBar()" >
     <div>
      <input type="hidden" name="id" value="<?cs var:Query.id ?>" />
     </div> 
    <table cellspacing="0" cellpadding="4" >
     <tr>
       <th><?cs var:lang.super_info_form.search_msg ?></th>
       <td> <input type="text" name="search" size="12" id="search" maxlength="<?cs var:max_length ?>"  title="<?cs var:lang.super_info_form.search_help ?>" />
       <input  type="submit" value="<?cs var:lang.super_info_form.search_button ?>"  title="<?cs var:lang.super_info_form.search_button_help ?>" /></td>
    </tr>
    <tr>
      <?cs call:print_radio(lang.super_info_form.field_msg, "field", lang.super_info_form.field) ?>
    </tr> 
    <tr>
      <?cs call:print_radio(lang.super_info_form.include_msg, "users", lang.super_info_form.include) ?>
    </tr> 
    <tr>
     <?cs call:print_report(lang.super_info_form.report_msg, "results", lang.super_info_form.report) ?>
    </tr> 
    <tr>
      <?cs call:print_radio(lang.super_info_form.case_msg, "sensitive", lang.super_info_form.case) ?>
    </tr> 
    <tr>
      <?cs call:print_radio(lang.super_info_form.sort_msg, "sort", lang.super_info_form.sort) ?>
    </tr> 
    <tr>
      <?cs call:print_radio(lang.super_info_form.match_msg, "where", lang.super_info_form.match) ?>
    </tr> 
    </table>
  </form>
  <script type="text/javascript"> document.forms[0].search.focus(); </script>
  </div> 
  <div>
   <br />
   <a href="<?cs var:delete_url ?>" title="<?cs var:lang.super_info_form.delete_msg ?>" class="normal"><?cs var:lang.super_info_form.delete_msg ?></a>
 </div>
 </td></tr>
</table> 
</fieldset>
<?cs /def ?>

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

   <script type="text/javascript" src="<?cs var:image_path ?>xp_progress.js"></script>
   <?cs call:addDoIMenu() ?> 
   <script type="text/javascript">
    function myBar()
    {
         bar1.showBar();
         scroll(0,0);
         return true;

    }
   </script>
  </head>
<?cs call:define_super_onload_onunload_body() ?>

<div id="container">
  <?cs call:top_container() ?>
  <?cs call:doIMenu() ?>
  <div id="content">
   <?cs call:print_content() ?>
  </div>
</div>
<script type="text/javascript">
     var bar1 = createBar( 'white', 1, 'black', 'blue', 85, 7, 3, "");
</script>

</body>
</html>
<?cs call:runtime() ?>
