librenms/html/pages/logon.inc
2010-02-28 13:04:07 +00:00

50 lines
1.7 KiB
PHP

<?php print_optionbar_start(190,435); ?>
<div style="margin: auto; width:350px; padding:5px;">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="128"><img src="images/password.png" alt="Login required" /></td>
<td>
<form action="<?php echo $_SERVER['REQUEST_URI'] ?>" method="post" name="logonform">
<h3>Please log in:</h3>
<div style="height: 0px;"></div>
<table border="0" align="left">
<tr>
<td>Username</td>
<td><input type="text" name="username" /></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td colspan="2" align="right"><input type="checkbox" name="remember" />
<font size="2">Remember Me</font></td>
</tr>
<tr>
<td colspan="2" align="right"><input class="submit" name="submit" type="submit" value="Login" /></td>
</tr>
<?php
if(isset($auth_message)) {
echo('<tr><td colspan="2" style="font-weight: bold; color: #cc0000;">' . $auth_message . '</td></tr>');
}
?>
</table>
</form>
</td>
</tr>
</table>
</div>
<?php
print_optionbar_end();
if(isset($config['login_message'])) {
echo('<div style="margin: auto; margin-top: 10px;text-align: center; font-weight: bold; color: #cc0000; width: 470px;">'.$config['login_message'].'</div>');
}
?>
<script type="text/javascript">
<!--
document.logonform.username.focus();
// -->
</script>