<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<?php
$e= $_GET['e'];
?>

<script type="text/javascript" src="jscript/jquery.1.4.2.js"></script>
<script language="JavaScript" src="jscript/md5.min.js"  type="text/javascript"></script> 
<script type="text/javascript">
function nospaces(t){
if(t.value.match(/\s/g)){
t.value=t.value.replace(/\s/g,'');
}
}
</script> 

<script language="javascript">
<!-- make each letter  in textbox lowercase
    function ToLower(ctrl)
    {  
    var t = ctrl.value;
    ctrl.value = t.toLowerCase();
    }
//-->
</script>




<title>Manase</title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
<link href="css/navigation.css" rel="stylesheet" type="text/css">
<style type="text/css">
input.text100 {    background:#FFF;
    border: 1px solid #E6E6E6;
    padding: 2px;
    width:100px;
	height:20px;
	color:#000;
}
</style>
</head>

<body  onload="<?php if ($e==1) { ?> document.getElementById('warning_1').style.display = 'block'; <?php } else { ?> document.getElementById('warning_1').style.display = 'none'; <?php }                     if ($e==2) { ?> document.getElementById('warning_2').style.display = 'block'; <?php } else { ?> document.getElementById('warning_2').style.display = 'none'; <?php } ?>" >

<br>
<br>
<div class="top_frame">
<b>MANASE COMPANY MANAGEMENT SYSTEM</b> </div>
<div class="openings_frame" >


<div class="log_in_frame"  >
<form name="usradm" id="usradm" method="POST" action="include/loginproc.php" autocomplete="off">
<table width="264" cellpadding="10" id="navigation_table">
            
              <tr>
                <td colspan="3">Enter name and password to log in.</td>
              </tr>
              <tr>
                <td><label class="std">User name</label></td>
                <td>:</td>
                <td><input type="text" name="username" id="username" maxlength="30" onKeyUp="nospaces(this); ToLower(this);"  autofocus autocomplete="off" onFocus=" document.getElementById('username').value = ''; document.getElementById('password_text').value = '';" onBlur="document.getElementById('password_text').value = ''; " onChange="document.getElementById('password_text').value = '';" onKeyPress="document.getElementById('password_text').value = ''; document.getElementById('password_text').disabled = false;" > </td>
              </tr>
              <tr>
                <td><label class="std">Password</label></td>
                <td>:</td>
                <td>
                  <input name="password_text" id="password_text" type="password" value='' autofocus  onfocus="document.getElementById('password_text').value='';"  autocomplete="off" onblur="encrypt_pass = document.getElementById('password_text').value; document.getElementById('password').value = md5(encrypt_pass); document.getElementById('password_text').value = '';"  onkeydown="return (event.keyCode!=13);" />
                </td>
              </tr>
              <tr>
                <td height="36" colspan="3" align="left">
                    <input type="hidden" name="password" id="password"  value="" />
                    <input type="submit" class="imagebutton" value="Login">
                    
                </td>
              </tr>
</table>              
</form>
          
<div class="warning_frame" id="warning_1">
    <img src="images/error.png" width="16" height="16">
        <label class="label_std">You entered the wrong username and/or password</label>
    </div>
    <div class="warning_frame" id="warning_2">
    <img src="images/error.png" width="16" height="16">
        <label class="label_std">Your log-in is correct, but there is no home page set for you. Contact the system administrator.</label>
    </div>
 
</div>

</div>
<div class="bottom_frame" >
Application developed by <a href="http://www.customized.co.bw" target="_blank">Customized Software</a></div>
<br>
<br>

</body>
</html>