| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
require_once("include/session.php"); |
|---|
| 40 |
require_once("include/login_include.php"); |
|---|
| 41 |
|
|---|
| 42 |
$pageTitle = APPLICATION_NAME." Log in"; |
|---|
| 43 |
|
|---|
| 44 |
$phpbms->cssIncludes[] = "pages/login.css"; |
|---|
| 45 |
$phpbms->jsIncludes[] = "common/javascript/login.js"; |
|---|
| 46 |
|
|---|
| 47 |
$phpbms->showMenu = false; |
|---|
| 48 |
$phpbms->showFooter = false; |
|---|
| 49 |
|
|---|
| 50 |
include("header.php"); |
|---|
| 51 |
?> |
|---|
| 52 |
|
|---|
| 53 |
<div id="loginbox" class="bodyline" > |
|---|
| 54 |
<h1><span><?php echo APPLICATION_NAME;?></span></h1> |
|---|
| 55 |
<?php if ($failed) {?><div class="standout" id="failed"><?php echo $failed?></div><?php } ?> |
|---|
| 56 |
<noscript> |
|---|
| 57 |
<p class="standout" align="center">JavaScript is disabled.</p> |
|---|
| 58 |
<p> Please check browser requirements.</p> |
|---|
| 59 |
</noscript> |
|---|
| 60 |
|
|---|
| 61 |
<form name="form1" method="post" action="<?php echo $_SERVER["PHP_SELF"]?>"> |
|---|
| 62 |
<fieldset> |
|---|
| 63 |
<legend>Log In</legend> |
|---|
| 64 |
<p> |
|---|
| 65 |
<label for="username">name</label><br /> |
|---|
| 66 |
<input name="name" type="text" id="username" size="25" maxlength="64" value="<?php echo htmlQuotes($_POST["name"])?>" disabled="disabled"/> |
|---|
| 67 |
</p> |
|---|
| 68 |
|
|---|
| 69 |
<p> |
|---|
| 70 |
<label for="password">password</label><br /> |
|---|
| 71 |
<input name="password" type="password" id="password" size="25" maxlength="24" disabled="disabled"/> |
|---|
| 72 |
</p> |
|---|
| 73 |
|
|---|
| 74 |
</fieldset> |
|---|
| 75 |
<p id="buttonP"><button class="Buttons" type="submit" id="loginButton" disabled="disabled">Log In</button></p> |
|---|
| 76 |
</form> |
|---|
| 77 |
<p id="moreinfoButtonP"><button id="moreinfoButton" type="button" class="graphicButtons buttonInfo"><span>more info</span></button></p> |
|---|
| 78 |
<div id="moreinfo" > |
|---|
| 79 |
<div class="box"> |
|---|
| 80 |
<h2><a href="http://www.phpbms.org" title="phpBMS"><span class="alt">phpBMS</span></a></h2> |
|---|
| 81 |
<h3>Business Management Web Application</h3> |
|---|
| 82 |
<p class="tiny"> |
|---|
| 83 |
<a href="requirements.php">browser requirements</a> | |
|---|
| 84 |
<a href="info.php">program info</a> |
|---|
| 85 |
</p> |
|---|
| 86 |
</div> |
|---|
| 87 |
</div> |
|---|
| 88 |
</div> |
|---|
| 89 |
|
|---|
| 90 |
|
|---|
| 91 |
<?php if(DEMO_ENABLED=="true"){?> |
|---|
| 92 |
<div id="demobox" class="bodyline"> |
|---|
| 93 |
<h2>Demonstration Mode</h2> |
|---|
| 94 |
<p> |
|---|
| 95 |
Use the following user credentials to log into phpBMS. Each user |
|---|
| 96 |
highlights a different security access level. |
|---|
| 97 |
</p> |
|---|
| 98 |
<dl> |
|---|
| 99 |
<dt>Shipping Personnel</dt> |
|---|
| 100 |
<dd> |
|---|
| 101 |
username: shipping<br /> |
|---|
| 102 |
password: shipping |
|---|
| 103 |
</dd> |
|---|
| 104 |
<dt>Sales Personnel</dt> |
|---|
| 105 |
<dd>username: sales<br /> |
|---|
| 106 |
password: sales</dd> |
|---|
| 107 |
<dt>Sales Manager</dt> |
|---|
| 108 |
<dd>username: salesmanager<br /> |
|---|
| 109 |
password: salesmanager |
|---|
| 110 |
</dd> |
|---|
| 111 |
</dl> |
|---|
| 112 |
</div> |
|---|
| 113 |
<?php } include("footer.php")?> |
|---|
| 114 |
|
|---|