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

<?cs call:html_heading() ?>
   <head>
      <title> <?cs var:lang.bio_view.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"  />
   <style type="text/css">
   .icap { font-size: large; color: #663333; font-weight: bold }
  </style>
</head>

<body style="background-color: #FFFF99">
<div>
  <form action="">
   <?cs if:Query.edit == #1 ?>
   <div><input type="button" value="<?cs var:lang.bio_view.closewindow ?>" title="<?cs var:lang.bio_view.closewindow_help ?>" onclick="opener.parent.location.reload(); window.close()" /></div>
   <?cs else ?>
   <div><input type="button" value="<?cs var:lang.bio_view.closewindow ?>" title="<?cs var:lang.bio_view.closewindow_help ?>" onclick="window.close()" /></div>
   <?cs /if ?>
  </form>
</div>
<table width="100%">
<tr><td align="center">
<?cs if:no_bio == 1 ?>
     <div class="regheading"><span class="alert_color"><?cs var:lang.bio_view.no_bio_available ?></span></div>
<?cs else ?>
<table style="background-color: #FFFFCC" border="5">
<tr><td align="center">
    <table>
     <caption><br /><br />
        <span class="center_msg"><?cs var:target_realname ?></span><br /><br />
     </caption>
     <tr><td valign="top">
        <table cellspacing="0" cellpadding="1">
          <?cs if:email ?>
          <tr>
            <td class="regheading" align="right"><?cs var:lang.bio_view.email ?></td>
            <td><a href="mailto:<?cs var:email ?>" title="<?cs var:lang.bio_view.email_help ?>"><?cs var:email ?></a></td>
          </tr>
         <?cs /if ?>
         <?cs if:website ?>
          <tr>
            <td class="regheading" align="right"><?cs var:lang.bio_view.website ?></td>
            <td><a href="<?cs var:website ?>" title="<?cs var:lang.bio_view.website_help ?>"><?cs var:website ?></a></td>
            </tr>
         <?cs /if ?>
          <?cs each:this = custom ?>
          <tr>
            <td class="regheading" align="right"><?cs if:this.label ?><?cs var:this.label ?>:<?cs /if ?></td>
            <td><?cs var:this.content ?></td>
          </tr>
          <?cs /each ?>
        </table>
       </td>
          <td><img src="<?cs var:photo_url ?>" alt="" /></td>
       </tr>
       <tr>
        <td colspan="2" align="center"><hr/></td>
       </tr>
      </table>
  <table><tr><td>
    <?cs set:first = #0 ?>
    <?cs each:dd = line ?>
    <?cs if:dd.cap ?>
    <?cs if:first > #1 ?></div><?cs /if ?>
    <div>
    <span style="font-size: large; color: #663333; font-weight: bold "><?cs var:dd.cap ?></span><?cs var:dd.content ?>
   <?cs set:first = #0 ?>
   <?cs else ?> 
   <?cs var:dd.content ?>
   <?cs set:first = first + #1 ?>
  <?cs /if ?>
 <?cs /each ?>
  </div>
  </td></tr></table> 
</td></tr>
</table>
<?cs /if ?> 
<?cs if:edit_button ?>
   <div><br /><br /><form method="post" action="bio_edit_form">
      <div>
          <input type="hidden" name="id" value="<?cs var:id ?>" />
          <input type="hidden" name="user" value="<?cs var:user ?>" />
          <?cs if:crs ?><input type="hidden" name="crs" value="<?cs var:crs ?>" /><?cs /if ?>
          <?cs if:admin ?><input type="hidden" name="admin" value="<?cs var:admin ?>" /><?cs /if ?>
         <input type="submit"  value="<?cs var:lang.bio_view.edit ?>" title="<?cs var:lang.bio_view.edit_help ?>" />
      </div>
   </form></div>
<?cs /if ?>
</td></tr>
</table>
</body>
</html>
<?cs call:runtime() ?> 
