-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
98 lines (79 loc) · 1.9 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body{
background-color: LIGH;
}
#selection {
position: absolute;
width: 40%;
left: 50%;
padding: 50px 0;
text-align: center;
background-color: lightblue;
margin-top: 20px;
margin-left:50px;
border: 1px solid black;
}
#selectiont {
width: 40%;
padding: 50px 0;
text-align: center;
background-color: lightblue;
margin-top: 43px;
margin-left: 70px;
border: 1px solid black;
}
#login {
display: none;
width: 100%;
padding: 50px 0;
text-align: center;
background-color: lightblue;
margin-top: 20px;
}
h1{
color: darkblue;
}
</style>
</head>
<body>
<center><h1>Login as </h1></center>
<div id="selection">
<div><a href="#" onclick="myFunctions()"><img src="user.jpg" alt="Teacher" width="20%" height="20%"><h1>Student</h1></a></div>
</div>
<div id="selectiont">
<div><a href="#" onclick="myFunctiont()"><img src="user.jpg" alt="Teacher" width="20%" height="20%"><h1>Teacher</h1></a></div>
</div>
<div>
<center><p style="font-size:21px">New to Start? <a href="signup.php" >Sign Up</a></p></center>
</div>
<div id="login">
<form action="process_login.php" method="POST">
Username :<input type="name" placeholder="Username" name="usernm"> <br> <br>
Password :<input type="password" placeholder="Password" name="pwd"> <br><br>
<input type="submit" >
</form>
</div>
<script>
function myFunctions() {
var x = document.getElementById("login");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
function myFunctiont() {
var x = document.getElementById("login");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
</script>
</body>
</html>