-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
262 lines (207 loc) · 11.3 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
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<?php
session_start();
error_reporting(0);
if($_SESSION['lid']==true)
{
header('location:lp.php');
}
else
{
if($_SESSION['stu_id']==true)
{
header('location:sp.php');
}
}
?>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale="0">
<meta http-equiv="x-UA-compatible" content="ie=edge">
<link href="https://fonts.googleapis.com/css?family=poppins:400,500&display=swap" rel="stylesheet">
<style>
body{
background-color:#e6f7ff;
}
#table {
border:1px solid black;
border-radius:5px;
padding:10px;
width:100%;
}
#sign {
padding:10px;
width:100%;
border-radius:5px;
background-color:green;
}
.vertical-center {
margin: 0;
position: absolute;
top: 50%;
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
* {box-sizing: border-box;}
body {font-family: Verdana, sans-serif;}
.mySlides {display: none;}
img {vertical-align: middle;}
.slideshow-container {
position: relative;
margin: auto;
width:800px;
}
.text {
color: #f2f2f2;
font-size: 15px;
padding: 8px 12px;
position: absolute;
bottom: 8px;
width: 100%;
text-align: center;
}
.numbertext {
color: #f2f2f2;
font-size: 12px;
padding: 8px 12px;
position: absolute;
top: 0;
}
.dot {
height: 15px;
width: 15px;
margin: 0 2px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
transition: background-color 0.1s ease;
}
.active {
background-color: #717171;
}
.fade {
-webkit-animation-name: fade;
-webkit-animation-duration: 1.5s;
animation-name: fade;
animation-duration: 1.5s;
}
@-webkit-keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
@keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
@media only screen and (max-width: 1024px)
{
.text {font-size: 11px}
}
.c{
background-color:gray;
height:100%;
width:33%;
}
</style>
</head>
<body>
<div style="height:81px;width:100%;background-color:#668aff;">
<div style="height:100%;width:50%;float:left;">
</div>
<div style="height:100%;width:50%;float:right;">
<form action="studentlogin.php" method="post">
<table style="padding-left:50px;">
<tr>
<td style="color:white"><b>Email:</b></td>
<td style="color:white"><b>Password:</b></td>
</tr>
<tr>
<td><input type="email" name="email" required="required"></td>
<td><input type="Password" name="password" required="required"></td>
<td><input type="submit" name="submit" style="background-color:#6666ff" value="Login"></td>
</tr>
<tr>
<td colspan="3" style="text-align:center"><a href="#">Forgotten Password</a></td>
</tr>
</table>
</form>
</div>
</div>
<div style="height:90%;width:100%;">
<div style="height:100%;width:50%;background-color:#e6f7ff;float:left;">
<div class="slideshow-container" style="padding-top:100px;" >
<div class="mySlides fade">
<div class="numbertext" ></div>
<img src="https://i2.wp.com/jgu.edu.in/wp-content/uploads/2019/03/global-library-main_0_0-1.jpg?fit=680%2C409&ssl=1" style="width:90%;height:470px;" >
<div class="text"></div>
</div>
<div class="mySlides fade">
<div class="numbertext" ></div>
<img src="https://www.waterburypubliclibrary.com/wp-content/uploads/2018/01/2nd-Floor-Waterbury-Public-Library-July-2016-web.jpg" style="width:90%;height:470px;" >
<div class="text"></div>
</div>
<div class="mySlides fade">
<div class="numbertext"></div>
<img src="https://ak1.picdn.net/shutterstock/videos/14706451/thumb/1.jpg" style="width:90%;height:470px;" >
<div class="text"></div>
</div>
</div>
<br>
<div style="text-align:center">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
</div>
<div style="height:100%;width:50%;background-color:#e6f7ff;float:right;margin-top:10px;">
<h2 style="margin-top:20px;text-align:center;">Create New Account</h2><br>
<center>
<div style="width:80%;border:2px solid gray;background-color:#fff;">
<div style="padding:40px;background-color:#eee;">
<div style="height:40px;width:30%;text-align:center;float:left;font-size:18px;background-color:white;margin-left:20%;cursor:pointer;" onclick="formT()" id="2" >Teacher</div>
<div style="height:40px;width:30%;text-align:center;float:left;font-size:18px;background-color:#eee;cursor:pointer;" onclick="formS()" id="3">Student</div>
</div>
<div style="background-color:#fff;" id="1">
<form action="insert1.php" method="post"><table style='padding:20px'><tr><td><input type='text' name='fname' placeholder='First name' id='table' required></td><td><input type='text' name='lname' placeholder='Last name' id='table' required></td></tr><tr><td colspan='2'><select id='table' style='color:gray;' name="college" required><option value='none' selected disabled hidden>College name</option><option value='Other College'>Other College</option><option value='INDIAN INSTITUTE OF INFORMATION TECHNOLOGY,NAGPUR'>INDIAN INSTITUTE OF INFORMATION TECHNOLOGY,NAGPUR</option><option value='VISVESVARAYA NATIONAL INSTITUTE OF TECHNOLOGY,NAGPUR'>VISVESVARAYA NATIONAL INSTITUTE OF TECHNOLOGY,NAGPUR</option><option value='SHRI RAMDEOBABA COLLEGE OF ENGINEERING AND MANAGEMENT,NAGPUR'>SHRI RAMDEOBABA COLLEGE OF ENGINEERING AND MANAGEMENT,NAGPUR</option><option value='ITM COLLEGE OF ENGINEERING,NAGPUR'>ITM COLLEGE OF ENGINEERING,NAGPUR</option></select></td></tr> <tr><td colspan='2'><input type='email' name='email' placeholder='Email address' id='table' required></td></tr><tr><td colspan='2'><input type='password' name='password1' placeholder='Password' id='table' required></td></tr><tr><td colspan='2'><input type='password' name='password2' placeholder='Comfirm password' id='table' required></td></tr> <tr><td style='color:gray;'>Birthday:</td></tr> <tr><td colspan='2'><input style='color:gray;' type='date' name='dob' id='table' required></td></tr> <tr><td style='color:gray;'>Gender:</td></tr><tr><td><input type='radio' name='gender' value='female' required>Female<input type='radio' name='gender' value='male' required>Male</td></tr><tr><td colspan='2'><input style='background-color:green;color:#fff;' type='submit' id='table' value='Submit' ></td></tr></table></form>
</div>
</div>
</center>
</div>
</div>
<script>
var slideIndex = 0;
showSlides();
function showSlides() {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("dot");
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slideIndex++;
if (slideIndex > slides.length) {slideIndex = 1}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
setTimeout(showSlides, 3000);
}
</script>
<script type="text/javascript" >
function formT() {
var form="<form action='insert1.php' method='post'><table style='padding:20px'><tr><td><input type='text' name='fname' placeholder='First name' id='table' required></td><td><input type='text' name='lname' placeholder='Last name' id='table' required></td></tr><tr><td colspan='2'><select id='table' name='college' style='color:gray;' required><option value='none' selected disabled hidden>College name</option><option value='Other College'>Other College</option><option value='INDIAN INSTITUTE OF INFORMATION TECHNOLOGY,NAGPUR'>INDIAN INSTITUTE OF INFORMATION TECHNOLOGY,NAGPUR</option><option value='VISVESVARAYA NATIONAL INSTITUTE OF TECHNOLOGY,NAGPUR'>VISVESVARAYA NATIONAL INSTITUTE OF TECHNOLOGY,NAGPUR</option><option value='SHRI RAMDEOBABA COLLEGE OF ENGINEERING AND MANAGEMENT,NAGPUR'>SHRI RAMDEOBABA COLLEGE OF ENGINEERING AND MANAGEMENT,NAGPUR</option><option value='ITM COLLEGE OF ENGINEERING,NAGPUR'>ITM COLLEGE OF ENGINEERING,NAGPUR</option></select></td></tr> <tr><td colspan='2'><input type='email' name='email' placeholder='Email address' id='table' required></td></tr> <tr><td colspan='2'><input type='password' name='password1' placeholder='Password' id='table' required></td></tr> <tr><td colspan='2'><input type='password' name='password2' placeholder='Comfirm password' id='table' required></td></tr> <tr><td style='color:gray;'>Birthday:</td></tr> <tr><td colspan='2'><input style='color:gray;' type='date' name='dob' id='table' required></td></tr> <tr><td style='color:gray;'>Gender:</td></tr><tr><td><input type='radio' name='gender' value='female' required>Female<input type='radio' name='gender' value='male' required>Male</td></tr><tr><td colspan='2'><input style='background-color:green;color:#fff;' type='submit' id='table' value='Submit' ></td></tr></table></form>";
document.getElementById('1').innerHTML=form;
document.getElementById('3').style.backgroundColor='#eee';
document.getElementById('2').style.backgroundColor='white';
}
function formS() {
var data="<form action='insert2.php' method='post'><table style='padding:20px'><tr><td><input type='text' name='fname' placeholder='First name' id='table' required></td><td><input type='text' name='lname' placeholder='Last name' id='table' required></td></tr><tr><td colspan='2'><select id='table' style='color:gray;' name='college' required><option value='none' selected disabled hidden>College name</option><option value='Other College'>Other College</option><option value='INDIAN INSTITUTE OF INFORMATION TECHNOLOGY,NAGPUR'>INDIAN INSTITUTE OF INFORMATION TECHNOLOGY,NAGPUR</option><option value='VISVESVARAYA NATIONAL INSTITUTE OF TECHNOLOGY,NAGPUR'>VISVESVARAYA NATIONAL INSTITUTE OF TECHNOLOGY,NAGPUR</option><option value='SHRI RAMDEOBABA COLLEGE OF ENGINEERING AND MANAGEMENT,NAGPUR'>SHRI RAMDEOBABA COLLEGE OF ENGINEERING AND MANAGEMENT,NAGPUR</option><option value='ITM COLLEGE OF ENGINEERING,NAGPUR'>ITM COLLEGE OF ENGINEERING,NAGPUR</option></select></td></tr><tr><td colspan='2'><input type='text' name='rollno' placeholder='Enrollment Number' id='table' required></td><td><tr><td colspan='2'><input type='email' name='email' placeholder='Email address' id='table' required></td></tr><tr><td colspan='2'><input type='password' name='password1' placeholder='Password' id='table' required></td></tr><tr><td colspan='2'><input type='password' name='password2' placeholder='Comfirm password' id='table' required></td></tr> <tr><td style='color:gray;'>Birthday:</td></tr> <tr><td colspan='2'><input style='color:gray;' type='date' name='dob' id='table' required></td></tr> <tr><td style='color:gray;'>Gender:</td></tr><tr><td><input type='radio' name='gender' value='female' required>Female<input type='radio' name='gender' value='male' required>Male</td></tr> <tr><td colspan='2'><input type='number' name='uid' placeholder='Librarian UID' id='table' required></td></tr> <tr><td colspan='2'><input style='background-color:green;color:#fff;' type='submit' id='table' value='Submit' ></td></tr></table></form>";
document.getElementById('1').innerHTML=data;
document.getElementById('2').style.backgroundColor='#eee';
document.getElementById('3').style.backgroundColor='white';
}
</script>
<p></p>
</body>
</html>