-
Notifications
You must be signed in to change notification settings - Fork 0
/
Login.jsp
162 lines (146 loc) · 5.71 KB
/
Login.jsp
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<%
String msg = request.getParameter("msg");
try
{
if(msg.contains("fail")){
out.println("failure: Username/Email already taken or Invalid Username/Password combination.");
}
} catch(Exception e){
//out.println(e);
}
%>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Sign in · Twitter Bootstrap</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link rel="stylesheet" href="css/gordy_bootstrap.min.css">
<style type="text/css">
body {
padding-top: 40px;
padding-bottom: 40px;
background-color: #f5f5f5;
}
.form-signin {
max-width: 300px;
padding: 19px 29px 29px;
margin: 0 auto 20px;
background-color: #fff;
border: 1px solid #e5e5e5;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.form-signin .form-signin-heading,
.form-signin .checkbox {
margin-bottom: 10px;
}
.form-signin input[type="text"],
.form-signin input[type="password"] {
font-size: 16px;
height: auto;
margin-bottom: 30px;
padding: 7px 9px;
}
</style>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
<link rel="shortcut icon" href="../assets/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
</head>
<body class="twitter-signin">
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<i class="nav-home"></i> <a href="#" class="brand">!Twitter</a>
<div class="nav-collapse collapse">
<p class="navbar-text pull-right">Logged in as <a href="#" class="navbar-link">Username</a>
</p>
<ul class="nav">
<li><a href="index.html">Home</a></li>
<li><a href="queries.html">Test Queries</a></li>
<li class="active"><a href="twitter-signin.html">Main sign-in</a></li>
</ul>
</div><!--/ .nav-collapse -->
</div>
</div>
</div>
<div class="front-bg">
<img class="front-image" src="images/[email protected]">
</div>
<div class="front-card">
<div class="front-welcome">
<div class="front-welcome-text">
<h1>Welcome to Twitter</h1>
<p>Find out what's happening now, the the people and organizations you care about.</p>
</div>
</div>
<div class="front-signin">
<form action="checkLogin.jsp" class="signin" method="get">
<div class="placeholding-input username hasome">
<input type="text" class="text-input email-input" name="username" title="username" autocomplete="on" tabindex="1" placeholder="Username">
</div>
<table class="flex-table password-signin">
<tbody>
<tr>
<td class="flex-table-primary">
<div class="placeholding-input password flex hasome">
<input type="password" name="password" id="signin-password" class="text-input flext-table-input" title="password" tabindex="2" placeholder="Password">
</div>
</td>
<td class="flex-table-secondary">
<button type="submit" class="submit btn btn-primary flex-table-btn">Sign-in</button>
</td>
</tr>
</tbody>
</table>
<div class="remember-forgot">
<label class="remember">
<input type="checkbox" name="remember_me" tabindex="3">
<span>Remember me</span>
</label>
<span class="separator">.</span>
<a href="#" class="forgot">Forgot password?</a>
</div>
</form>
</div>
<div class="front-signup">
<h2><strong>New to Twitter?</strong> Sign up</h2>
<form action="newUser.jsp" class="signup" method="get">
<div class="Fullname">
<input type="text" id="signup-full-name" autocomplete="off" maxlength="20" name="fullname" placeholder="Full Name">
</div>
<div class="Username">
<input type="text" id="signup-user-name" autocomplete="off" maxlength="20" name="username" placeholder="Username">
</div>
<div class="email">
<input type="text" id="signup-user-email" autocomplete="off" maxlength="20" name="email" placeholder="Email">
</div>
<div class="password">
<input type="password" id="signup-user-password" autocomplete="off" maxlength="20" name="password" placeholder="Password">
</div>
<button type="submit" class="btn btn-signup">
Sign up for Twitter
</button>
</form>
</div>
</div>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="js/main-ck.js"></script>
</body>
</html>