forked from services/mlmmj-light-web-ecg
60 lines
2.2 KiB
Smarty
60 lines
2.2 KiB
Smarty
<html>
|
|
<head>
|
|
<link rel="stylesheet" type="text/css" href="style.css">
|
|
<script>
|
|
function validate_form()
|
|
{
|
|
var username = document.getElementById('username_input').value;
|
|
var password = document.getElementById('password_input').value;
|
|
|
|
if (username == "")
|
|
{
|
|
alert("Please enter your username.");
|
|
return false;
|
|
}
|
|
|
|
if (password == "")
|
|
{
|
|
alert("Please enter your password.");
|
|
return false;
|
|
}
|
|
if (username.match(/[^A-Za-z\-\.]/))
|
|
{
|
|
alert("The username may only contain english letters, dots and hyphens.");
|
|
return false;
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="header">{$headline}</div>
|
|
<div id="login">
|
|
<div id="login_form">
|
|
<p>Please enter the credentials of your ECG account (<strong>without</strong> @ecogood.org).</p>
|
|
<form method="post" action="login.php" onsubmit="return validate_form()">
|
|
<div id="username">
|
|
<div id="username_left">
|
|
Username:
|
|
</div>
|
|
<div id="username_right">
|
|
<input type="text" name="login_username" id="username_input">
|
|
</div>
|
|
</div>
|
|
<div id="password">
|
|
<div id="password_left">
|
|
Password:
|
|
</div>
|
|
<div id="password_right">
|
|
<input type="password" name="login_pass" id="password_input">
|
|
</div>
|
|
</div>
|
|
<a href="https://wiki.ecogood.org/display/PUBLIC/IT-Support" target="_blank"><p>Forgot your password?</p></a>
|
|
<div id="enter">
|
|
<input type="submit" name="submit" value="Login">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|