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



<?cs def:print_time_row(label, value) ?>
  <div>
   <span class="regheading"><?cs var:label ?></span> <?cs var:value ?>
  </div>
<?cs /def ?>




<?cs def:print_notes() ?>
<?cs with:lang=lang.survey_take_verify ?>
 <ul>

  <li>
  <?cs if:result_available ?>
     <?cs var:lang.teacher_can_view ?>
  <?cs else ?>
     <?cs var:lang.teacher_cannot_view ?>
  <?cs /if ?>
  </li>

  <li><?cs var:lang.survey_is_anonymous ?></li>

  <li><?cs var:lang.only_take_once ?></li>

  <?cs if:student_view_results ?>
      <li><?cs var:lang.student_view_results  ?></li>
  <?cs /if ?>

   <?cs if:student_view_again ?>
   <li><?cs var:lang.student_review_survey ?></li>
   <?cs /if ?>

   <?cs if:student_answer_required ?>
   <li><span style="color:#f00; font-weight:bold"><?cs var:lang.student_answer_required ?></span></li>
   <?cs /if ?>
 </ul>
<?cs /with ?>
<?cs /def ?>





<?cs def:print_submit_form() ?>
<?cs with:lang=lang.survey_take_verify ?>
 <?cs if:is_faculty || (!survey_already_taken && !is_read_only) || (student_view_again && !is_read_only) ?>  
  <?cs if:!capture_mode ?>
    <div>
     <form method="post" action="survey_display_frameset">
     <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 ?>" /> 
       <input type="hidden" name="action" value="<?cs var:action ?>" /> 
     </div>
      <div class="center_msg">
        <input type="submit" value="<?cs var:lang.take_survey_button ?>" title="<?cs var:lang.take_survey_button_help ?>" />
        <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:take_survey_url ?>" title="<?cs var:lang.take_survey_button_help ?>" ><?cs var:lang.take_survey_button ?></a>&nbsp;&nbsp;&nbsp;&nbsp;
   <a href="javascript:history.back()" title="<?cs var:lang.cancel_button_help ?>" ><?cs var:lang.cancel_button ?></a>
  </div>
 <?cs /if ?> 
<?cs elif:survey_already_taken ?>
   <div class="center_msg">
       <?cs var:lang.already_taken ?>
   </div>
<?cs elif:is_read_only ?>
   <div class="center_msg">
       <?cs var:lang.read_only ?>
   </div>
<?cs /if ?>
<?cs /with ?>
<?cs /def ?>







<?cs call:html_heading() ?>
<head>
   <title><?cs var:course_no ?> <?cs var:lang.survey_take_verify.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("javascript:history.back()", lang.survey_take_verify.back_button_title) ?>
<div class="center_msg">
  <span class="instruction_heading"><?cs var:lang.survey_take_verify.survey_instructions_heading ?></span>
</div>
<table width="100%">
<tr><td align="center">
<table width="75%">
<tr><td>
  <?cs call:print_time_row(lang.survey_take_verify.current_time_label, current_time) ?>
  <?cs call:print_time_row(lang.survey_take_verify.results_hidden_label, release_time) ?>
  <?cs call:print_notes() ?>
  <?cs call:print_submit_form() ?>
  <?cs if:is_faculty ?>
   <?cs var:lang.survey_take_verify.faculty_note ?> 
  <?cs /if ?>
 </td></tr>
 </table>
</td></tr>
</table> 
</body>
</html>
<?cs call:runtime() ?>
