<?cs include:"util.cs" ?>
 
<?cs ############################################
     # macro that prints one entry 
?>

<?cs def:print_one_entry(value) ?>
 <div class="instructions">
   <span><?cs var:value.heading ?></span>
   <ul>
    <?cs each:list =value.list ?>
       <li><?cs var:list ?></li>
    <?cs /each ?>
   </ul>
</div>
<?cs /def ?> 




<?cs def:print_notes() ?>
 <div class="instructions">
    <?cs var:lang.gradequick_upload_form.desc ?> <br /><br />
 </div>
  <?cs each:value = lang.gradequick_upload_form.entry ?>
        <?cs call:print_one_entry(value) ?>
   <?cs /each ?>
<?cs /def ?>

    
  
<?cs def:print_upload_form() ?>
 <div>
   <form  enctype="multipart/form-data" method="post" action="gradequick_parser"> 
   <div><input type="hidden" name="crs" value="<?cs var:Query.crs ?>" />
   <input type="hidden" name="id" value="<?cs var:Query.id ?>" />
   </div>
   <table width="100%">
   <tr><td align="center">
   <table>
    <tr><td  class="grades_desc"><?cs var:lang.gradequick_upload_form.filename_prompt ?></td>
        <td><input type="file" name="grades_file" /></td>
    </tr>
    <tr><td colspan="2" align="center">
      <input type="submit" name="oper" value="<?cs var:lang.gradequick_upload_form.submit ?>"/>
    </td></tr>
    </table>
   </td></tr>
   </table>
   </form>
</div>
<?cs /def ?>







<?cs call:html_heading() ?>
<head>
   <title><?cs var:course_title ?> <?cs var:lang.gradequick_upload_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" />
  </head>
<?cs call:define_body() ?>
  <?cs call:print_course_heading(back_url, lang.gradequick_upload_form.back_button_title) ?>
<br />  
<table width="100%">
  <tr><td align="center">
  <fieldset style="width:75%">
  <legend class="fieldset_legend"><?cs var:lang.gradequick_upload_form.page_title ?></legend>
  <table>
  <tr><td>
    <?cs call:print_upload_form() ?>
    <?cs call:print_notes() ?>
  </td></tr>
  </table>
  </fieldset>
 </td></tr>
</table>
</body>
</html>
<?cs call:runtime() ?>
