-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
73 lines (70 loc) · 2.45 KB
/
index.php
1
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php include('init.php');?>
<html>
<head>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link href='css/google-fonts.css' rel='stylesheet' type='text/css'>
<link href='css/index-style.css' rel='stylesheet' type='text/css'>
<script src="js/jquery-1.10.2.js"></script>
</head>
<body>
<div class='jumbotron'>
<span id='title'>goalkeeper</span>
</div>
<p id='subtitle' class='lead'><i>behind every winning team is a kick-ass goalie.</i></p>
<div id="loginpane">
<h3>Login to Goalkeeper</h3>
<form action="Login.php" method="post">
<table>
<tr>
<tr><td>Username</td><td><input type="text" name="loginname"></td></tr>
<tr><td>Password</td><td><input type="password" name="loginpass"></td></tr>
<table><tr>
<td><input type="checkbox" name="rememberMe" id="rememberMe" value="1"></td>
<td><label for="rememberMe" class="checkLabel">Remember me</label></td>
</tr></table>
<td><input type="submit" name="loginsubmit" value="Submit"></td>
</tr>
</table>
</form>
</div>
<!--need to add some kind of divider-->
<div id="registerpane">
<h3>Not a member? Sign up!</h3>
<form action="Registration.php" method="post">
<table>
<tr><td>Email</td><td><input type="text" name="email"></td></tr>
<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>Re-enter Password</td><td><input type="password" name="password2"</td></tr>
<table><tr>
<td><input type="checkbox" name="terms-policy" id="t-pcheckbox" value="agree"></td>
<td><label for="t-p checkbox" class="checkLabel">Do you agree to our non-existent terms and policies?</label></td>
</tr></table>
<tr><td><input type="submit" name="rsubmit" /></td></tr>
</table>
</form>
<!--This displays any error messages from login or registration-->
</div>
<footer>
<ul>
<li>ABOUT</li>
<li>FEATURES</li>
<li>CONTACT</li>
</ul>
</footer>
<?php if (isset($_SESSION['errors'])): ?>
<div id="form-errors">
<?php foreach($_SESSION['errors'] as $error): ?>
<p class="error-message"><?php echo $error ?></p>
<?php endforeach; $_SESSION['errors'] = array();?>
</div>
<?php endif;?>
<script type="text/javascript">
$('.jumbotron').css('padding-top', '0px').css('opacity', '0')
.animate({
'padding-top': '8',
'opacity': '1'
});
</script>
</body>
</html>