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

<?cs def:print_sis() ?>
<div>
  <form method="post" action="<?cs var:sis_action ?>" onsubmit="return passwd()">
  <div>
   <input type="hidden" name="id" value="<?cs var:id ?>" />
   <input type="hidden" name="msname" value="<?cs var:sis_back_url ?>" />
  </div>
  <table>
  <tr>
  <th>Password:</th>
  <td><input id="sispasswd" type="password" size="15" name="sspids" maxlength="20" title="<?cs var:label.help ?>"  />
  <input type="submit"  value="Login to SIS" title="Login to SIS"  />
  </td>
 </tr>
 </table> 
 </form>
 <script type="text/javascript"> document.forms[0].sispasswd.focus(); </script>
</div>  
<?cs /def ?>


<?cs def:print_alternative() ?>
  <fieldset>
  <legend>Connect to WNEC SIS</legend>
     <?cs call:print_sis() ?>
  </fieldset>
<?cs /def ?>



<?cs call:html_header() ?>
   <head>
      <title>Connect to the Student Information System</title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <link rel="StyleSheet" href="<?cs var:image_path ?>super_template.css" type="text/css"  />
   <script type="text/javascript" src="<?cs var:image_path ?>form_validation.js"></script> 
    <?cs call:addDoIMenu() ?> 
	<script type="text/javascript">
       function passwd()
       {
            var value = document.getElementById('sispasswd').value;
            if(is_whitespace(value))
            {
                window.alert("You must enter the password for this procedure.");
                     return false;
            }
           return true; 
                 
       }
   </script>
  </head>
<body>
<div id="container">
 <?cs call:top_container() ?>
 <?cs call:doIMenu() ?>
 <div id="content">
   <?cs call:print_alternative() ?>
 </div>
</div>
</body>
</html>
<?cs call:runtime() ?>
