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

<?cs def:print_form() ?>
<?cs with:lang=lang.hotpot_exam_verify ?>
<?cs if:!capture_url ?>
  <div><form method="post" action="hotpot_exam_present">
  <div>
   <input type="hidden" name="crs" value="<?cs var:crs ?>" />
   <input type="hidden" name="id" value="<?cs var:id ?>" />
   <input type="hidden" name="sender" value="<?cs var:sender ?>" />
   <input type="hidden" name="inf" value="<?cs var:inf ?>" />
   <input type="hidden" name="loc" value="<?cs var:loc ?>" />
  </div>
  <div class="center_msg">
      <input type="submit" value="<?cs var:lang.show_button ?>" title="<?cs var:lang.show_button_help ?>" onclick="return window.confirm('<?cs var:lang.javascript_view_warning ?>')" />
      <input type="button" value="<?cs var:lang.cancel_button ?>" title="<?cs var:lang.cancel_button_help ?>" onclick="history.back()" />
  </div>
  </form></div>
  <?cs else ?>
      <div class="center_msg">
      <a href="<?cs var:capture_url ?>" title="<?cs var:lang.show_button_help ?>" ><?cs var:lang.show_button ?></a><br />
      <a href="javascript:history.back()" title="<?cs var:lang.cancel_button_help ?>" ><?cs var:lang.cancel_button ?></a>
      </div>
  <?cs /if ?> 
<?cs /with ?>
<?cs /def ?>

<?cs call:html_heading() ?>
   <head>
      <title><?cs var:course_no ?> <?cs var:lang.hotpot_exam_verify.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"  />
      <link rel="StyleSheet" href="<?cs var:image_path ?>manhattan.css" type="text/css"  />
   </head>
<?cs call:define_body() ?>
 <?cs call:print_course_heading("javascript:history.back()", lang.hotpot_exam_verify.back_button_title) ?>
 <?cs if:already_read_time ?>
   <table width="100%" border="0">
   <tr><td align="center">
   <table border="0">
   <tr><td><img src="<?cs var:image_path ?>error_lock.gif" width="245" height="184" alt=" " /></td>
   <td valign="middle" align="center">
       <span class="regheading"><?cs var:lang.hotpot_exam_verify.already_viewed ?> <?cs var:already_read_time ?></span>
       <br /><?cs var:lang.hotpot_exam_verify.notify_your_teacher ?>
       <br /><form action=""><div><input type="button" value="<?cs var:lang.hotpot_exam_verify.back_button ?>" title="<?cs var:lang.hotpot_exam_verify.back_button_title ?>" onclick="history.back()" /></div></form>
   </td>
   </tr>
   </table>
   </td></tr>
  </table>
 <?cs else ?>
   <table width="100%" border="0">
   <tr><td align="center">
   <table border="0">
   <tr><td><img src="<?cs var:image_path ?>error_checklist.gif" width="285" height="284" alt=" " /></td>
   <td valign="middle" align="center">
       <span class="regheading"><?cs var:lang.hotpot_exam_verify.can_only_view_once ?></span><br />
       <?cs call:print_form() ?>
   </td>
   </tr>
   </table>
   </td></tr>
  </table>

  <?cs if:is_faculty ?>
   <div>
   <img src="<?cs var:image_path ?>warn.gif" width="16" height="16" alt=" " /> <span style="color:red"><?cs var:lang.hotpot_exam_verify.teacher_notes ?></span>
   </div>
  <?cs /if ?>
 <?cs /if ?> 
</body>
</html>
<?cs call:runtime() ?>
