<?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');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo _('ISO-8859-1'); ?>" />
<title>MX-ERP Login screen</title>
<link href="css/style_login.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="40%" height="530" align="center" valign="middle"><img src="images/1307425350_Junior_Icon_52_2.png" width="256" height="256" /></td>
    <td width="60%">
	<form id="form1" name="form1" method="post" action="">
			<?php
			echo '<input type="hidden" name="CompanyNameField"  value="armtech" />';
			?>
      <table width="507" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td valign="top" class="login_bg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="10" colspan="3"></td>
              </tr>
              <tr>
                <td width="3%">&nbsp;</td>
                <td width="94%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td align="center" class="heading">MX-ERP</td>
                    </tr>
                    <tr>
                      <td height="1" align="center" bgcolor="#8c9194" class="heading1"></td>
                    </tr>
					
                    <tr>
                      <td height="25" align="center" class="heading1">Admin Control Panel </td>
                    </tr>
					 <?php 
					  if($_REQUEST['mod'] == 'logout')
					  {									  
					   ?>
					 <tr>
                      <td height="25" align="center" class="heading2"><?php echo 'Thank you for using MX-ERP'; ?> </td>
                    </tr>	
					 <?php } else{ ?>
                    <tr>
                      <td height="30" align="center" class="heading2">Please login here</td>
                    </tr>
					 <?php } ?>
                    <tr>
                      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="20%" align="left" valign="top" class="user"><?php echo _('User name'); ?> </td>
                            <td width="80%" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td valign="top" class="text_bg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td height="27"><label> <input type="TEXT" name="UserNameEntryField" style="background-color:#8c9194; border:none; width:360px ; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#353a40"/> 
                                          </label>
                                        </td>
                                      </tr>
                                  </table></td>
                                </tr>
                            </table></td>
                          </tr>
                          <tr>
                            <td height="5" colspan="2" align="left" valign="top"></td>
                          </tr>
                          <tr>
                            <td align="left" valign="top" class="user"><?php echo _('Password'); ?> </td>
                            <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td valign="top" class="text_bg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td height="27"><label><input type="PASSWORD" name="Password" size="30" style=" background-color:#8c9194; border:none; width:360px ;
								font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#353a40">
                                         
                                          </label>
                                        </td>
                                      </tr>
                                  </table></td>
                                </tr>
                            </table></td>
                          </tr>
                          <tr>
                            <td height="5" colspan="2" align="left" valign="top"></td>
                          </tr>
                          <tr>
                            <td align="left" valign="top">&nbsp;</td>
                            <td align="left" valign="top"><input name="Submit" class="Image" value="Log In" type="submit" src="images/login_button.gif"></td>
                          </tr>
                      </table></td>
                    </tr>
                </table></td>
                <td width="3%">&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td height="2"></td>
        </tr>
        <tr>
          <td align="center">&nbsp;</td>
        </tr>
      </table>
        </form>
    </td>
  </tr>
</table>
</body>
</html>
<script language="JavaScript" type="text/javascript">
//<![CDATA[
		<!--
			  document.loginform.UserNameEntryField.focus();
		//-->
//]]>
</script>
