
<!DOCTYPE html>

<head>

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

<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>Tlhomeso Timbers</title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
<link href="css/navigation.css" rel="stylesheet" type="text/css">

</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>Company Management System</b> </div>
<div class="openings_frame" >


<div class="log_in_frame"  >
<form method="POST" action="include/loginproc.php">
<table width="570" cellpadding="10" id="navigation_table">
            
              <tr>
                <td colspan="4" align="center"><img src="images/logo_KC_Roofing.png" width="299" height="84"><br>
               </td>
              </tr>
              <tr>
                <td colspan="4">Enter name and password to log in.</td>
              </tr>
              <tr>
                <td width="62"><label class="std">User name</label></td>
                <td width="-7">:</td>
                <td width="319"><input type="text" name="user_name_text" maxlength="30" onKeyUp="nospaces(this); ToLower(this);"  autofocus> </td>
                <td width="104">&nbsp;</td>
              </tr>
              <tr>
                <td><label class="std">Password</label></td>
                <td>:</td>
                <td><input type="password" name="password_text" maxlength="30" onKeyUp="nospaces(this); ToLower(this);"   > </td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td height="36" colspan="4" align="left">
                    <input type="submit" class="imagebutton" value="Login">
                    <input type="hidden" name="sublogin" value="1">
                </td>
              </tr>
              <tr>
                <td height="73" colspan="4" align="center">
                <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>
    <img src="images/logo_Mzansi_Roofing.png" width="293" height="73"></td>
        </tr>
</table>              
</form>
          

 
</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>