-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.jsp
160 lines (126 loc) · 5.72 KB
/
index.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
<%@ page import="com.util.*"%>
<%@ page import="java.net.*"%>
<html>
<head>
<%
//int no=Utility.parse(request.getParameter("no"));
%>
<link href="<%=request.getContextPath()%>/Files/CSS/style.css"
rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/Files/CSS/message.css"
rel="stylesheet" type="text/css" />
<link rel="stylesheet"
href="<%=request.getContextPath()%>/Files/CSS/login.css"
type="text/css" />
<script type="text/javascript"
src="<%=request.getContextPath()%>/Files/JS/style.js"></script>
<link href="<%=request.getContextPath()%>/Files/CSS/styles.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/Files/CSS/logins.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/Files/CSS/popup.css" rel="stylesheet" type="text/css" />
<script src="<%=request.getContextPath()%>/Files/JS/jquery-1.6.4.min.js" type="text/javascript"></script>
<%InetAddress thisIp = InetAddress.getLocalHost();
String ip=thisIp.getHostAddress();
%>
</head>
<body onload="startTimer()" >
<div style="position: centre; left: -10px;" >
<img src="<%=request.getContextPath()%>/Files/Images/cooltext11.png" width=100%></img>
<div class="TabMenu" id="label" style="position: absolute; right: 0px;" >
<a href="#overlay" id="button1"><span style="position: absolute; top: 110px; height:120; width:120">
<img src="<%=request.getContextPath() %>/Files/Images/admin1.png" align="center" height="120" width="120" />
</a>
</span>
<a href="#overlay_signup" id="button1"><span style="position: absolute; top: 210px; height:120; width:120">
<br/>
<img src="<%=request.getContextPath() %>/Files/Images/user1.png" height="120" width="120" />
<br/>
</span>
</div>
<!-- Admin Login Pop Up -->
<div id="overlay">
<div id="popup">
<a href=""> <img class="close_button" src="<%=request.getContextPath() %>/Files/Images/c.png"height="30"
width="30" onmouseover="this.src='../Files/Images/c1.png';" onmouseout="this.src='../Files/Images/c.png';" /></a>
<form class="login" action="<%=request.getContextPath()%>/AdminLogin"
method="post">
<center>
<label><font
style="font-family: Monotype Corsiva; font-size: 35px; color: blue;">ADMIN LOGIN</font></label>
</center>
<br> <label><font style="color: brown;">AdminID</font></label> <input type="text" tabindex="1" class="input"
placeholder="Admin Id" name="name" required><br> <br>
<label><font style="color: BROWN;">Password</font></label> <input
type="password" class="input" tabindex="2" name="pass"
placeholder="Password" required><br> <br>
<input type="image" id=""
value="submit" src="<%=request.getContextPath() %>/Files/Images/login2.png"alt="submit Button"
class="gradientbuttons"
width="120" height="80">
</form>
</div>
</div>
<!-- User Login Pop Up -->
<div id="overlay_signup">
<div id="popup">
<a href=""><img class="close_button" src="<%=request.getContextPath() %>/Files/Images/c.jpg"height="30"
width="30" /></a>
<form class="login" action="<%=request.getContextPath()%>/UserLogin"
method="post">
<input type="hidden" name="clientip" value="<%=ip%>">
<input type="hidden" name="ip" value=<%=ip%>>
<%session.setAttribute("ipadd",ip); %>
<center>
<label><font
style="font-family: Monotype Corsiva; font-size: 35px; color: blue;">USER LOGIN</font></label>
</center>
<br> <label><font style="color: brown;">UserID</font></label> <input type="text"
tabindex="1" class="input" name="name" placeholder="User Id"
required><br> <br> <label><font
style="color: BROWN;">Password</font></label><input type="password"
class="input" tabindex="2" name="pass" placeholder="Password"
required><br> <br> <br>
<input type="image" id=""
value="submit" src="<%=request.getContextPath() %>/Files/Images/login2.png" alt="submit Button"
class="gradientbuttons"
width="120" height="80">
</form>
</div>
</div>
<!-- Tpa Login Pop Up -->
<!-- <div id="overlay-tpa">
<div id="popup">
<a href=""> <img class="close_button" src="<%=request.getContextPath() %>/Files/Images/close.png" height="50"
width="50"/></a>
<form class="login" action="<%=request.getContextPath()%>/AuditorLogin"
method="post">
<center>
<label><font
style="font-family: Monotype Corsiva; font-size: 35px; color: #DAA520;">Auditor's
Login</font></label>
</center>
<br> <label><font style="color: #336633;">Auditor's Id</font></label>
<input type="text" tabindex="1" class="input" placeholder="Tpa Id"
name="name" required><br> <br> <label><font
style="color: #336633;">Password</font></label> <input type="password"
class="input" tabindex="2" name="pass" placeholder="Password"
required><br> <br>
<input type="image" id=""
value="submit" src="<%=request.getContextPath() %>/Files/Images/login2.png" alt="submit Button"
class="gradientbuttons"
width="120" height="80">
</form>
</div></div>-->
<%
int noo=Utility.parse(request.getParameter("no"));
if(noo==1)
{
%>
<div class="error" id="message" style="height: 65; width: 250px; top:180" >
<p>Opp's,your Id or password is wrong ..!</p>
</div>
<%
}
%>
</body>
</html>