
<?cs include:"util.cs" ?>
<?cs def:print_close_window() ?>
<?cs call:course_info() ?>
<div>
 <?cs if:success_delete ?>
 <a href="javascript:dothis()" title="<?cs var:lang.grade_book.closewindow ?>" ><img src="<?cs var:image_path ?>close.gif" alt="" /></a>
 <?cs else ?>
 <a href="javascript:window.close()" title="<?cs var:lang.grade_book.closewindow ?>" ><img src="<?cs var:image_path ?>close.gif" alt="" /></a>
 <?cs /if ?>
 </div>
 <?cs /def ?>

 
<?cs ###########################
     # HTML starts here
     ###########################
?>
<?cs call:html_heading() ?>
   <head>
      <title><?cs var:course_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"  />
   <script type="text/javascript">
   function check()
   {
     if(document.getElementById('val').checked)
     {
        return window.confirm('<?cs var:lang.grades_delete_form.javascript_verify ?>');
     }
     else
     {
         window.alert('<?cs var:lang.grades_delete_form.verification_not_checked ?>');
         return false;
         
     }
   }
   <?cs if:success_delete ?>
   function dothis()
   {
      opener.parent.location.reload();
      window.close();
   }

   <?cs /if ?>
   </script>    
  </head>

<?cs call:define_body() ?> 
<?cs if:back_url ?>
<?cs call:print_course_heading(back_url, lang.grades_delete_form.goback) ?>
<?cs else ?>
<?cs call:print_close_window() ?>
<?cs /if ?>
<table width="100%">
<tr><td align="center">
<br /><br />
<fieldset style="width: 50%">
  <?cs if:success_delete ?>
 <legend class="fieldset_legend"><?cs var:lang.grades_delete_form.delete_success ?></legend>
   <div>
   &nbsp;<br />
   &nbsp;<br />
   &nbsp;<br />
   </div>
  <?cs else ?>
 <legend class="fieldset_legend"><?cs var:lang.grades_delete_form.permanently_delete_grades ?></legend>
<div>
<form method="post" action="grades_delete">
  <div>
     <input type="hidden" name="crs" value="<?cs var:Query.crs ?>" />
     <input type="hidden" name="id" value="<?cs var:Query.id ?>" />
  </div>
    <table>
   <tr>
    <td align="center">
    <input type="submit" name="oper" value="<?cs var:lang.grades_delete_form.submit_button ?>" title="<?cs var:lang.grades_delete_form.submit_button_help ?>" onclick="return check()" /> <input type="checkbox" name="val" id="val" value="val" /> <?cs var:lang.grades_delete_form.submit_confirm ?><br />
    </td>
   </tr>
   </table>
</form>
</div>
<?cs /if ?>
</fieldset>
</td></tr>
</table>
</body>
</html>
<?cs call:runtime() ?>
