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

<?cs def:print_info_heading(label, value) ?>
  <tr>
    <td class="table_heading"><?cs var:label ?></td>
    <td><?cs var:value ?></td>
  </tr>
<?cs /def ?>


<?cs def:print_info() ?>
<?cs with:lang = lang.survey_info ?>
 <table width="100%">
 <tr><td align="center">
  <table cellspacing="0" cellpadding="4" border="4">
    <?cs call:print_info_heading(lang.subject_label, subject) ?>
    <?cs call:print_info_heading(lang.posted_by_label, sender) ?>
    <?cs call:print_info_heading(lang.date_posted_label, send_time) ?>
    <?cs call:print_info_heading(lang.results_available_label, release_time) ?>

    <?cs if:review_result ?>
       <?cs call:print_info_heading(lang.students_see_results_label, lang.yes) ?>
    <?cs else ?>
       <?cs call:print_info_heading(lang.students_see_results_label, lang.no) ?>
    <?cs /if ?>


    <?cs if:review_survey ?>
       <?cs call:print_info_heading(lang.students_can_review_label, lang.yes) ?>
    <?cs else ?>
       <?cs call:print_info_heading(lang.students_can_review_label, lang.no) ?>
    <?cs /if ?>

    <?cs if:answer_required ?>
       <?cs call:print_info_heading(lang.student_answer_required_label, lang.yes) ?>
    <?cs else ?>
       <?cs call:print_info_heading(lang.student_answer_required_label, lang.no) ?>
    <?cs /if ?>


  <?cs if:total ?>  
     <?cs call:print_info_heading(lang.respondents_label, total) ?>
  <?cs /if ?>

  </table>
  <br />
  <br />
  <table cellspacing="0" cellpadding="4" border="4">
   <?cs if:graph_url ?>
    <tr>
        <td><a href="<?cs var:graph_url ?>" title="<?cs var:lang.view_bar_graphs_help ?>" class="normal"><?cs var:lang.view_bar_graphs ?></a></td>
        <td><a href="<?cs var:table_url ?>" title="<?cs var:lang.view_table_help ?>" class="normal"><?cs var:lang.view_table ?></a></td>
        <td><a href="<?cs var:csv_url ?>" title="<?cs var:lang.download_csv_file_help ?>" class="normal"><?cs var:lang.download_csv_file ?></a></td>
    </tr>
   <?cs elif:show_results ?>
     <?cs call:print_info_heading(lang.results_avail_after, result_time) ?>
   <?cs /if ?>
  </table>
  
 </td></tr>
 </table>
<?cs /with ?>
<?cs /def ?> 


<?cs call:html_heading() ?>
   <head>
      <title><?cs var:course_no ?> <?cs var:lang.survey_info.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_info.goback) ?>
 <div class="center_msg">
  <span class="alert_color"><?cs var:lang.survey_info.title ?> </span>
 </div>
<?cs call:print_info() ?>
</body>
</html>
<?cs call:runtime() ?>
