-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.jsp
48 lines (48 loc) · 2.21 KB
/
admin.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
<html>
<head>
<link rel="icon" type="image/x-icon" href="Images/admin1.png"/>
<!--link rel="stylesheet" type="text/css" href="external.css"/-->
<style>
@import url(ad_external.css);
</style>
<title>Online Railway Reservation Admin Portal</title>
<script src="JvScript.js" type="text/javascript" language="javascript"></script>
</head>
<body bgcolor="whitesmoke">
<div class="header">
<img src="Images/logoad.png">
<h1>Online Railway Enquiry & Reservation System</h1>
<h4>India Grows, where Railway Goes.</h4>
<input type="button" onclick="location.href='index.jsp';" value="Home Page" class="home_btn">
<%
String a = (String)session.getAttribute("admin");
if (a!=null) {
%>
<input type="button" onclick="location.href='ad_logout.jsp';" value="Log Out" class="home_btn" style="margin-top:-2.2%; margin-left:5%; float:left;">
<% } %>
<img src="Images/homebtn.png" class="home" onclick="location.href='admin.jsp'">
</div>
<div class="main">
<%
if (a!=null) {
%>
<div class="action">
<div class="insert" value="1" onclick="location.href='adminupdate.jsp';">Update Database</div>
<div class="insert" value="2" onclick="location.href='adminuserinfo.jsp';">User Information</div>
<div class="insert" onclick="location.href='adminfeedback.jsp';">Check Feedbacks</div>
</div>
<% } else { %>
<div class="ad_log">
<form method="post" action="admin_loginprocess.jsp">
<label for="user">Username</label>
<input type="text" placeholder="Enter your username" name="usn" id="user">
<label for="pswd">Password</label>
<input type="password" placeholder="Enter your password" name="psd" id="pswd">
<input type="submit" value="Log In" class="login_btn">
</form>
</div>
<% } %>
</div>
<div class="footer"></div>
</body>
</html>