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

<?cs def:print_logout() ?>
  <table width="100%" >
  <tr><td align="center">
    <table cellspacing="0" cellpadding="5">
    <tr>
      <td><img src="<?cs var:image_path ?>manhattan.gif" width="254" height="65" alt="" /><td>
    </tr>
    <tr><td><?cs var:lang.doorstep.copyright ?></td></tr>
    <tr><td align="center"><img src="<?cs var:image_path ?>logout.gif" width="128" height="113"><td></tr>
   </table>
   <?cs each:this = line ?>
    <div><?cs var:line ?></div>
   <?cs /each ?>
    <div><a href=http://manhattan.sf.net>http://manhattan.sf.net</a>
    </div>
  </td></tr>
  </table>
<?cs /def ?>

<?cs call:html_heading() ?>
<head>
<title>
    <?cs if:super_display ?>
       <?cs var:lang.doorstep.super_login ?>
    <?cs else ?>
     <?cs alt:class ?><?cs var:lang.doorstep.mymanhattan ?><?cs /alt ?>
    <?cs /if ?>
   </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"  />
<script type="text/javascript" src="<?cs var:server_name ?><?cs var:image_path ?>form_validation.js"></script>
<script type="text/javascript">
  function check_field()
  {
       var username = document.getElementById('username').value;
       var password = document.getElementById('password').value;
       if(is_whitespace(username) == true || is_whitespace(password) == true)
       {
            window.alert('<?cs var:lang.doorstep.warn_msg ?>');
            return false;
       }
       else
          return true;
     
  }
</script>
<style type="text/css">

.prompt {
          font-size: 12px;
          color: #0000ff;
         }

p.copyright {
		font-size: 11px;
		font-style: italic;
		color: #000;

	      }
           

.course_no {
             font-size: 24px; 
             color: #0000ff; 
             font-weight: bold;
           }

</style>


</head>

<?cs call:define_onload_body("username") ?>
<?cs if:standalone_logout ?>
  <?cs call:print_logout() ?>
<?cs else ?>
<table width="100%"><tr><td align="center">
<table border="0" cellpadding="10">
<tr>
<td>
<?cs if:super_display ?>
    <div><span class="course_no"><?cs var:lang.doorstep.super_login ?></span></div>
<?cs elif:class ?>
    <div> <span class="course_no"><?cs var:course_no ?></span><br />
     <b><?cs var:semester ?><br />
       <?cs var:instructor ?></b></div>
<?cs else ?>
    <div><span class="course_no"><?cs var:lang.doorstep.mymanhattan ?></span></div>
<?cs /if ?>

<p><img src="<?cs var:image_path ?>manhattan.gif" width="254" height="65" alt="" /></p>

<p class="copyright"><?cs var:lang.doorstep.copyright ?></p>

<p class="copyright"><?cs var:manhattan_version ?></p>
</td>

<td>
<?cs if:super_display ?>
<form method="post" action="<?cs var:super_action ?>" onsubmit="return check_field()">
<?cs else ?>
<form method="post" action="<?cs var:action ?>" onsubmit="return check_field()">
<?cs /if ?>

<?cs if:!super_display ?>
<div>
<?cs if:class ?><input type="hidden" name="class" value="<?cs var:class ?>" /><?cs /if ?>
</div>
<?cs /if ?>

<table cellspacing="0" cellpadding="0"  border="0" width="275">
<tr>
<td align="right"><span class="prompt"><?cs var:lang.doorstep.username_prompt ?></span></td>
<td><input type="text" name="username" size="15" maxlength="<?cs var:max_username ?>" id="username" title="<?cs var:lang.doorstep.username_prompt_help ?>" /></td>
</tr>
<tr>
<td align="right"><span class="prompt"><?cs var:lang.doorstep.password_prompt ?></span></td>
<td><input type="password" name="password" id="password" size="15" maxlength="<?cs var:max_password ?>" title="<?cs var:lang.doorstep.password_prompt_help ?>" /></td>
</tr>
<tr>
<td colspan="2" align="center">
  <?cs if:super_display ?>
   <input type="submit" name="submit_button" value="<?cs var:lang.doorstep.super_submit ?>" title="<?cs var:lang.doorstep.super_submit_help ?>" />
  <?cs else ?>
   <input type="submit" name="submit_button" value="<?cs var:lang.doorstep.submit_button ?>" title="<?cs var:lang.doorstep.submit_button_help ?>" />
  <?cs /if ?>
</td>
</tr>
</table>

</form>
</td>
</tr>
</table>
</td></tr></table>
<?cs /if ?>

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