-
Notifications
You must be signed in to change notification settings - Fork 0
/
searchfilter.php
161 lines (157 loc) · 5.15 KB
/
searchfilter.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
<html
<head>
<style>
button:hover {opacity: 1}
button {
background-color: #001a33 ;
border: none;
color: white;
padding: 10px 20px;
text-align: center;
font-size: 18px;
margin: 5px 10px;
opacity: 0.6;
transition: 0.3s;
display: inline-block;
text-decoration: none;
cursor: pointer;
}
.innerpara{
display: none;
bottom: 0;
right: 15px;
z-index: 9;
padding:10px;
font-size: 25px;
background-color: rgb(204, 204, 255);
margin:20px
}
body{
background-image: linear-gradient(to bottom, rgba(4,3,255,0), rgba(179, 179, 255,1));
}
</style>
</head>
<body>
<font size="6" face="Hectiva" color="navy" style=" text-shadow: 1px 1px;"><b> Filter</b></font><img src="filter.png" height="25px" width="25px"/><br/>
<?php session_start();
?>
<script>
function showdept(){
var x = document.getElementById("depts");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
function showcourse(){
var x = document.getElementById("courses");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
function showstatus(){
var x = document.getElementById("stat");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
function showyr_passing(){
var x = document.getElementById("yr_passing");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
function showusername(){
var x = document.getElementById("usernames");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
function showfname(){
var x = document.getElementById("fnames");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
function showlname(){
var x = document.getElementById("lnames");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
</script>
<form method="post" action="searchresult.php" target="result">
<button type="button" onclick="showdept()">Department</button>
<ul>
<div id="depts" style="display:none" class="innerpara">
<input type="radio" name="dept" value="CS">Computer science<br>
<input type="radio" name="dept" value="IT">Information and technology<br>
<input type="radio" name="dept" value="ELEC">Electronics<br>
<input type="radio" name="dept" value="EXTC">Electronics and telecommunication<br>
<input type="radio" name="dept" value="MECH">Mechanical<br>
<input type="radio" name="dept" value="CIVIL">Civil<br>
<input type="radio" name="dept" value="PROD">Production<br>
<input type="radio" name="dept" value="TEXT">Textile<br>
<button type="submit">GO</button>
</div>
</form>
</ul>
<form method="post" action="searchresult.php" target="result" >
<button type="button" onclick="showcourse()">Courses</button>
<ul>
<div id="courses" style="display:none" class="innerpara">
<input type="radio" name="course" value="Diploma">Diploma
<br><input type="radio" name="course" value="B. Tech">B.tech
<br><input type="radio" name="course" value="M. Tech">M.tech
<br><input type="radio" name="course" value="MCA">MCA<br>
<button type="submit">GO</button>
</form>
</div>
</ul>
<form method="post" action="searchresult.php" target="result" >
<button type="button" name="Year of Passing" onclick="showyr_passing()">Year of Passing</button>
<div id="yr_passing" style="display:none" class="innerpara">
Enter Year of passing: <input type="number" name="yr_passing" value="">
<button type="submit">GO</button>
</form>
</div>
<form method="post" action="searchresult.php" target="result" >
<button type="button" onclick="showstatus()">Status</button>
<div id="stat" style="display:none" class="innerpara">
<br><input type="radio" name="status" value="emp">Emplyeed
<br><input type="radio" name="status" value="self">Self-Employeed
<br><input type="radio" name="status" value="other">Other<br>
<button type="submit">GO</button>
</form>
</div>
<form method="post" action="searchresult.php" target="result" >
<button type="button" onclick="showusername()">Username</button>
<div id="usernames" style="display:none" class="innerpara">
Enter User Name: <input type="number" name="username" value=""><button type="submit">Go</button></form>
</div>
<form method="post" action="searchresult.php" target="result" >
<button type="button" onclick="showfname()">First Name</button>
<div id="fnames" style="display:none" class="innerpara">
Enter First Name: <input type="text" name="fname" value=""> <button type="submit">GO</button></form>
<form method="post" action="searchresult.php" target="result" >
</div>
<button type="button" onclick="showlname()">Last Name</button><div id="lnames" style="display:none" class="innerpara">
Enter Last Name: <input type="text" name="lname" value=""> <button type="submit">GO</button>
</form>
</div>
</form>
</body>
</html>