This repository has been archived by the owner on Nov 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadminlg.php
135 lines (119 loc) · 2.83 KB
/
adminlg.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
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
<?php
session_start();
if(isset($_SESSION['adminlogin'])){
header("location: basic.php");
}
if(isset($_SESSION['userlogin'])){
header("location: hpage.php");
}
?>
<html>
<head>
<title> Admin Login</title>
<style type="text/css">
.overlay {
width: 50%;
height: 20%;
left: 25%;
top: 1%;
position: absolute;
font-size: 20px;
font-weight: bold;
text-align: center;
padding-top: 3px;
box-sizing: border-box;
}
#bg {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: url(74.jpg) no-repeat center center fixed;
background-size:cover ;
-webkit-filter: blur(7px);
}
.button {
background-color: #04223a;
border: none;
color: #497694;
padding: 5px 10px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 2px 2px;
cursor: pointer;
}
form {
position: relative;
width: 250px;
margin: 0 auto;
background: rgba(130,130,130,.3);
padding: 20px 20px;
border: 1px solid;
border-top-color: rgba(255,255,255,.4);
border-left-color: rgba(255,255,255,.4);
border-bottom-color: rgba(60,60,60,.4);
border-right-color: rgba(60,60,60,.4);
}
form input, form button {
width: 248px;
border: 1px solid;
border-bottom-color: rgba(255,255,255,.5);
border-right-color: rgba(60,60,60,.35);
border-top-color: rgba(60,60,60,.35);
border-left-color: rgba(80,80,80,.45);
background-color: rgba(0,0,0,.2);
background-repeat: no-repeat;
padding: 8px 24px 8px 10px;
font: bold .875em/1.25em "Lucida Sans", sans-serif;
letter-spacing: .075em;
color: #fff;
text-shadow: 0 1px 0 rgba(0,0,0,.1);
margin-bottom: 19px;
}
form input:focus { background-color: rgba(0,0,0,.4); }
form input.username {
background-position: 220px 10px;
}
form input.password {
background-position: 220px 10px
}
form button[type=submit] {
width: 248px;
margin-bottom: 0;
color: #497694;
letter-spacing: .05em;
text-shadow: 0 1px 0 #133d3e;
text-transform: uppercase;
background: #04223a;
border-top-color: #9fb5b5;
border-left-color: #608586;
border-bottom-color: #1b4849;
border-right-color: #1e4d4e;
cursor: pointer;
}
</style>
</head>
<body>
<div id="bg"></div>
<div class= "overlay">
<div style="text-align: center">
<img src=72.png float="left" alt="Space News Centre" width="500" height="180" style="padding-top:20;padding-bottom:20">
<form method="post" action="admlog.php">
<h2 style ="color:#04223a;"> Admin Login</h2>
<br>
<div>
<input type="text" placeholder="Username" name="username" id="username" required>
<br>
</div>
<input type ="password" placeholder="Password" name="password" id="password" required>
<br>
<a href="admlog.php"><button type="submit"> Login</button></a>
</form>
<br>
<h5 style="color:white;">Go back to Student Login?!<a href="index.php" class="button">Student</a></h5>
</div>
</body>
</html>