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

<?cs set:color.0 = "#000000" ?>
<?cs set:color.1 = "#660066" ?>
<?cs set:color.2 = "#00CCCC" ?>
<?cs set:color.3 = "#006600" ?>
<?cs set:color.4 = "#996600" ?>
<?cs set:color.5 = "#FF0000" ?>






<?cs def:print_message(data) ?>
<table border="0">
<tr style="background-color:#FFFFCC"> 
 <td colspan="2"><div><span class="regheading"><?cs var:data.sender_label ?></span> <?cs var:msg.author_realname ?></div>
     <div><span class="regheading"><?cs var:data.date_label ?></span> <?cs var:msg.sent_time ?></div>
     <div><span class="regheading"><?cs var:data.subject_label ?></span> <?cs var:msg.subject ?></div>
</td>
</tr>
</table>
<?cs if:msg.has_attachments ?>
 <div style="margin-top:2em">
 <b><?cs var:data.attachments_label ?></b>
 <?cs each:file = attachment ?>
     <a href="<?cs var:file.url ?>" ><?cs var:file.filename ?></a>&nbsp;
     <?cs /each ?>
  </div>
<?cs elif:view_website_url ?>
 <div style="margin-top:2em">
    <form method="post" action="<?cs var:view_website_url ?>">
     <div><input type="submit" value="<?cs var:data.view_website_button ?>" title="<?cs var:data.view_website_button_help ?>" /></div>
    </form>
  </div>
<?cs /if ?>
  

<div style="text-indent:4em; margin-top:2em">
<?cs each:this = line ?>
   <div style="color:<?cs var:color[this.reply_level] ?>"><?cs var:this.content ?></div>
<?cs /each ?>
</div>
<hr style="width:300px" />
<table width="100%">
<tr><td align="center">
  <table cellspacing="0" cellpadding="6">
   <tr>
    <td>
       <div><form method="post" action="clipboard_delete">
         <div>
          <input type="hidden" name="crs" value="<?cs var:Query.crs ?>" />
          <input type="hidden" name="id" value="<?cs var:Query.id ?>" />
          <input type="hidden" name="validate" value="1" />
         </div>
      <div><input type="submit" value="<?cs var:data.delete_button ?>" title="<?cs var:data.delete_button_help ?>" onclick="return window.confirm('<?cs var:data.delete_warning ?>')" /></div> 
      </form></div>
   </td>
  </tr>
  </table>
</td></tr>
</table> 
<?cs /def ?>


<?cs call:html_heading() ?>
   <head>
   <title><?cs var:course_no ?> <?cs var:lang.clipboard_view.title ?> <?cs var:team ?></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(back_url, lang.clipbord_view.goback) ?>
 <?cs call:print_message(lang.clipboard_view) ?>

</body>
</html>
<?cs call:runtime() ?> 
