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


<?cs def:print_hidden_elements() ?>
<input type="hidden" name="grp" value="<?cs var:grp ?>" />
<input type="hidden" name="crs" value="<?cs var:crs ?>" />
<input type="hidden" name="id" value="<?cs var:id ?>" />
<input type="hidden" name="loc" value="<?cs var:loc ?>" />
<?cs if:team ?>
   <input type="hidden" name="team" value="<?cs var:team ?>" />
<?cs /if ?>
<?cs /def ?>




<?cs def:print_cancel_button() ?>
<td>
 <form method="post" action="news_read">
 <?cs call:print_hidden_elements() ?>
 <input type="submit" value="<?cs var:lang.news_unlock.cancel_button ?>" title="<?cs var:lang.news_unlock.cancel_button_title ?>" />
 </form>
</td>
<?cs /def ?>



<?cs def:print_unlock_button() ?>
<?cs with:lang=lang.news_unlock ?>
<td>
 <form method="post" action="news_unlock">
 <?cs call:print_hidden_elements() ?>
 <input type="hidden" name="unlock" value="1" />
 <input type="submit" value="<?cs var:lang.unlock_button ?>" title="<?cs var:lang.unlock_button_title ?>" onclick="return window.confirm('<?cs var:lang.unlock_confirm ?>')" />
 </form>
</td>
<?cs /with ?>
<?cs /def ?>



<?cs def:print_buttons() ?>
<table width="100%">
<tr><td align="center">
   <table>
    <tr>
      <?cs call:print_cancel_button() ?>
      <?cs call:print_unlock_button() ?>
    </tr>
   </table>
</td></tr>
</table>
<?cs /def ?>



<?cs def:print_notes() ?>
<?cs with:lang=lang.news_unlock ?>
<div class="news_new_memo">
  <p class="regheading"><?cs var:lang.attachments_label ?></p> <p style="text-indent:6em"><?cs if:website_was_attached ?><?cs var:lang.attached_website ?><?cs else ?><?cs var:filelist ?><?cs /if ?></p><?cs var:lang.note[0].msg ?> <br />
</div>
<div class="news_new_memo">
 <?cs var:lang.note[1].msg ?><br />
</div>
<div class="news_new_memo">
 <?cs var:lang.note[2].msg ?>
  <ul>
      <?cs each:this = lang.note[2].child ?>
      <li><?cs var:this ?></li>
      <?cs /each ?>
  </ul>
</div>
<div class="news_new_memo">
 <?cs var:lang.note[3].msg ?><br />
</div>

<?cs /with ?>
<?cs /def ?>




<?cs call:html_heading() ?>
   <head>
      <title><?cs var:course_no ?> <?cs var:lang.news_unlock.grp[grp].msg ?> <?cs var:lang.news_unlock.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.news_unlock.back_button_title) ?>
<div class="center_msg">
  <span class="alert_color"><?cs var:lang.news_unlock.grp[grp].msg ?> <?cs var:lang.news_unlock.title ?></span>
</div>
 <?cs call:print_notes() ?>
 <?cs call:print_buttons() ?>
</body>
</html>
<?cs call:runtime() ?>
