<?php
/* $Revision: 1.23 $ */
// Display demo user name and password within login form if $allow_demo_mode is true
include ('LanguageSetup.php');

if ($allow_demo_mode == True AND !isset($demo_text)) {
	$demo_text = _('login as user') .': <i>' . _('admin') . '</i><BR>' ._('with password') . ': <i>' . _('weberp') . '</i>';
} elseif (!isset($demo_text)) {
	$demo_text = _('Please login here');
}
?>

<html>
<head>
    <title>MX-ERP Login screen</title>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo _('ISO-8859-1'); ?>" />
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
	<link rel="stylesheet" href="css/<?php echo $theme;?>/template.css" type="text/css" />
</head>

<body>

<?php
/*if (get_magic_quotes_gpc()){
	echo '<p style="background:white">';
	echo _('Your webserver is configured to enable Magic Quotes. This may cause problems if you use punctuation (such as quotes) when doing data entry. You should contact your webmaster to disable Magic Quotes');
	echo '</p>';
}*/
?>
<div>
    <div class="moduletable">
      <center>
        <div id="main">
          <table class="border" width="80%" align="center" border="0" 
cellpadding="0" cellspacing="0">
            <tbody>
              <tr>
                <td height="87" background="images/bg.gif" class="top-text">MX-ERP</td>
              </tr>
              <tr>
                <td align="center">&nbsp;</td>
              </tr>
              <tr>
                <td align="center">
				<form action="<?php echo $_SERVER['PHP_SELF'];?>" name="loginform" method="post">
	<?php
			echo '<input type="hidden" name="CompanyNameField"  value="armtech" />';
	?>				
                    <table style="border-collapse: collapse; border: 2px dotted rgb(221, 
221, 221);" width="100%" align="center" border="1" bordercolor="#9d2e0d"
 cellpadding="0" cellspacing="0">
                      <tbody>
                        <tr>
                          <td><table width="100%" align="center" border="0" cellpadding="0" 
cellspacing="0">
                              <tbody>
                                <tr>
                                  <td><div class="loginareabgim">
                                      <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                        <tbody>
                                          <tr>
                                            <td width="100%" height="30" colspan="3" align="center" class="text_red"><h2 
class="componentheading">Admin Control Panel </h2></td>
                                          </tr>
										   <tr>
                                            <td colspan="3" align="center">&nbsp;</td>
                                          </tr>
                                          <tr>
                                            <td colspan="3" align="center"><div id="demo_text"><?php echo $demo_text;?></div></td>
                                          </tr>
										   <tr>
                                            <td colspan="3" align="center">&nbsp;</td>
                                          </tr>
										  
										   <tr>
                                            <td colspan="3" align="center">&nbsp;</td>
                                          </tr>
										  
										  
										  
                                          <tr>
                                            <td colspan="3" style="padding: 0pt 5px 0pt 3px;" align="center"><label class="text" for="label"><?php echo _('User name'); ?></label>
                                              <input type="TEXT" name="UserNameEntryField"/>                                            </td>
                                          </tr>
                                          <tr>
                                            <td colspan="3" height="5"></td>
                                          </tr>
                                          <tr>
                                            <td colspan="3" style="padding: 0pt 5px 0pt 3px;" align="center"><label class="text" for="label"><?php echo _('Password'); ?></label>
                                              <input type="PASSWORD" name="Password"></td>
                                          </tr>
                                          <tr>
                                            <td colspan="3" height="5"></td>
                                          </tr>
										  <tr>
                                            <td colspan="3" style="padding: 0pt 5px 0pt 3px;" align="center"><label class="text" for="label"><?php echo _('Select Language'); ?></label>
                                              <select name="language">
											  	<option value="en_US">US</option>
												<option value="en_GB">GB</option>
												<option value="fr_FR">FR</option>
											  </select></td>
                                          </tr>
                                          <tr>
                                            <td colspan="3" height="5"></td>
                                          </tr>
                                          <tr>
                                            <td colspan="3" align="center"><input name="Submit" class="button" value="Log In" type="submit">                                            </td>
                                          </tr>
                                          <tr>
                                            <td colspan="3" height="100" align="center">&nbsp;</td>
                                          </tr>
                                        </tbody>
                                      </table>
                                    </div></td>
                                </tr>
                              </tbody>
                            </table></td>
                        </tr>
                      </tbody>
                    </table>
                  </form></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
            </tbody>
          </table>
        </div>
      </center>
    </div>
  </div>





<script language="JavaScript" type="text/javascript">
//<![CDATA[
		<!--
			  document.loginform.UserNameEntryField.focus();
		//-->
//]]>
</script>
</body>
</html>
