Quick and simple PHP gift registry
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

102 lines
3.1 KiB

{*
This program is free software; you can redistribute it and/or modify
t under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*}
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gift Registry - Login</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/giftreg.js"></script>
<script language="JavaScript" type="text/javascript">
$(document).ready(function() {
$("#loginform").validate({
highlight: validate_highlight,
success: validate_success,
rules: {
username: {
required: true
},
password: {
required: true
}
},
messages: {
username: {
required: "Username is required."
},
password: {
required: "Password is required."
}
}
});
});
</script>
</head>
<body>
<div class="container" style="padding-top: 30px;">
<div class="row">
<div class="span8 offset2">
<h1>Gift Registry</h1>
<form name="loginform" id="loginform" method="post" action="login.php" class="well form-horizontal">
<fieldset>
{if isset($username)}
<div class="alert alert-error">Bad login.</div>
{/if}
<div class="control-group">
<label class="control-label" for="username">Username</label>
<div class="controls">
<input id="username" name="username" type="text" class="input-xlarge" placeholder="username" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="password">Password</label>
<div class="controls">
<input id="password" name="password" type="password" class="input-xlarge" placeholder="password" />
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Login</button>
</div>
</fieldset>
</form>
</div>
</div>
<div class="row">
<div class="span4 offset2">
<div class="well">
<a href="signup.php">Need an account?</a>
</div>
</div>
<div class="span4">
<div class="well">
<a href="forgot.php">Forgot your password?</a>
</div>
</div>
</div>
<div class="row">
<div class="span8 offset2" style="text-align: right;">
<a href="http://sourceforge.net/projects/phpgiftreg">PHP Gift Registry version 2.1.2</a>
</div>
</div>
</div>
</body>
</html>