Changeset 485 for trunk/phpbms/index.php
- Timestamp:
- 04/07/09 11:44:18 (3 years ago)
- Files:
-
- 1 modified
-
trunk/phpbms/index.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/index.php
r308 r485 1 <?php 1 <?php 2 2 /* 3 3 $Rev$ | $LastChangedBy$ … … 39 39 require_once("include/session.php"); 40 40 require_once("include/login_include.php"); 41 42 $pageTitle = APPLICATION_NAME." Log in"; 43 41 42 43 if(isset($_POST["name"]) && isset($_POST["password"])){ 44 45 $login = new login($db); 46 $failed = $login->verify($_POST["name"], $_POST["password"]); 47 48 } else { 49 50 $failed = ""; 51 $_POST["name"] = ""; 52 53 }//endif 54 55 $pageTitle = formatVariable(APPLICATION_NAME)." Log in"; 56 44 57 $phpbms->cssIncludes[] = "pages/login.css"; 45 58 $phpbms->jsIncludes[] = "common/javascript/login.js"; 46 59 47 60 $phpbms->showMenu = false; 48 $phpbms->showFooter = false; 49 61 $phpbms->showFooter = false; 62 50 63 include("header.php"); 51 64 ?> 52 65 53 66 <div id="loginbox" class="bodyline" > 67 54 68 <h1><span><?php echo APPLICATION_NAME;?></span></h1> 55 69 <?php if ($failed) {?><div class="standout" id="failed"><?php echo $failed?></div><?php } ?> 70 56 71 <noscript> 57 72 <p class="standout" align="center">JavaScript is disabled.</p> 58 73 <p> Please check browser requirements.</p> 59 74 </noscript> 60 75 61 76 <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"/> 77 78 <p> 79 <label for="username">name</label><br /> 80 <input name="name" type="text" id="username" size="25" maxlength="64" value="<?php echo htmlQuotes($_POST["name"])?>" disabled="disabled"/> 81 </p> 82 83 <p> 84 <label for="password">password</label><br /> 85 <input name="password" type="password" id="password" size="25" maxlength="24" disabled="disabled"/> 86 </p> 87 88 89 <p id="moreinfoButtonP"><button id="moreinfoButton" type="button" class="graphicButtons buttonInfo"><span>more info</span></button></p> 90 <p id="buttonP"><button class="Buttons" type="submit" id="loginButton" disabled="disabled">Log In</button></p> 91 92 </form> 93 94 95 <div id="moreinfo" > 96 97 <div class="box"> 98 99 <h2><a href="http://www.phpbms.org" title="phpBMS"><span class="alt">phpBMS</span></a></h2> 100 101 <h3>Business Management Web Application</h3> 102 103 <p class="tiny"> 104 <a href="requirements.php">browser requirements</a> | 105 <a href="info.php">about phpBMS</a> 67 106 </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> 107 86 108 </div> 87 109 </div> 88 110 </div> 89 111 90 112 91 113 <?php if(DEMO_ENABLED=="true"){?> 114 92 115 <div id="demobox" class="bodyline"> 116 93 117 <h2>Demonstration Mode</h2> 118 94 119 <p> 95 Use the following user credentials to log into phpBMS. Each user 120 Use the following user credentials to log into phpBMS. Each user 96 121 highlights a different security access level. 97 122 </p> 123 98 124 <dl> 99 125 <dt>Shipping Personnel</dt> … … 101 127 username: shipping<br /> 102 128 password: shipping 103 </dd> 129 </dd> 130 104 131 <dt>Sales Personnel</dt> 105 <dd>username: sales<br /> 106 password: sales</dd> 132 <dd> 133 username: sales<br /> 134 password: sales 135 </dd> 136 107 137 <dt>Sales Manager</dt> 108 <dd>username: salesmanager<br /> 138 <dd> 139 username: salesmanager<br /> 109 140 password: salesmanager 110 </dd>141 </dd> 111 142 </dl> 112 143 </div> 144 113 145 <?php } include("footer.php")?>