-
Notifications
You must be signed in to change notification settings - Fork 0
/
theory_form.php
243 lines (214 loc) · 7.22 KB
/
theory_form.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
<html>
<head>
<title>VIT REview SYstem</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/vegas.min.css">
<link href='https://fonts.googleapis.com/css?family=Rajdhani:400,500,700' rel='stylesheet' type='text/css'>
<!-- //the basic background slideshow -->
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "users";
$flag=0;
$conn = mysqli_connect($servername, $username, $password, $dbname);
if (!$conn)
{
echo '<script>alert("'.mysqli_connect_error().'")</script>';
die();
}
if(isset($_POST['1']) and isset($_POST['2']) and isset($_POST['3']) and isset($_POST['4']) and isset($_POST['5']))
{
$a=$_POST['1'];
$b=$_POST['2'];
$c=$_POST['3'];
$d=$_POST['4'];
$e=$_POST['5'];
session_start();
$sql="insert into records_theory values('".$_SESSION["teacher"]."','".$_SESSION["reg"]."','".$_SESSION["slot"]."',".$a.",".$b.",".$c.",".$d.",".$e.");";
if(mysqli_query($conn,$sql))
{
echo '<script>alert('."Feedback successfully recorded".');</script>';
}
else
{
echo '<script>alert('.mysqli_error().');</script>';
}
header("Location:student_list.php");
unset($a);
unset($b);
unset($c);
unset($d);
unset($e);
unset($_SESSION["teacher"]);
unset($_SESSION["slot"]);
unset($_SESSION["nature"]);
mysqli_close($conn);
}
?>
<style type="text/css">
body
{
background: #ffffff;
font-family: 'Rajdhani', sans-serif;
font-weight: 400;
}
html,body
{
width: 100%;
overflow-x: hidden;
}
html
{
font-size: 100%;
}
#slideshow {
top: 0;
left: 0;
z-index: -10;
width: 100vw;
backface-visibility: hidden;
}
</style>
<!-- main css -->
<style type="text/css">
h1,h2,h3,h4,h5,h6
{
margin:0;
}
p{
margin:0;
}
ul{
margin:0;
padding:0;
}
label{
margin:0;
}
.wrap {
width: 34%;
margin: 2em auto 0;
}
/*--profile start here--*/
h1 {
font-size: 3em;
color: #ffffff;
text-align: center;
font-weight: 300;
text-transform: uppercase;
}
::-webkit-input-placeholder{
color:#FFFFFF !important;
}
.w3ls-subscribe{
background-size: cover;
}
.agileits-border{
border: solid 15px rgba(1, 1, 1, 0.37);
padding: 3em;
}
.agileits-border1{
min-height: 484px;
}
.w3ls-subscribe h3{
color: #FFFFFF;
font-size: 2em;
margin: 0 0 1em 0;
text-transform: uppercase;
font-weight: 700;
letter-spacing: 2px;
}
.w3ls-subscribe input[type="email"],.w3ls-subscribe input[type="text"],.w3ls-subscribe input[type="password"] {
outline: none;
padding: 1em;
background: none;
border: none;
border-bottom: 1px solid #ffffff;
color: #FFFFFF;
font-size: .9em;
margin: 0 0 1.5em 0;
width: 93%;
}
.w3ls-subscribe input[type="submit"] {
color: #000000;
font-size: .9em;
text-decoration: none;
padding: 1em 2em;
cursor: pointer;
background: #FFFFFF;
text-transform: uppercase;
font-weight: 600;
text-align: center;
border: solid 1px #ffffff;
transition: 0.5s all;
-webkit-transition: 0.5s all;
-o-transition: 0.5s all;
-moz-transition: 0.5s all;
-ms-transition: 0.5s all;
}
.w3ls-subscribe input[type="submit"]:hover{
background: #0d8cc6;
border: solid 1px #0d8cc6;
color: #ffffff;
}
form
{
color: white;
}
/* .hover-class:hover
{
font-weight: bold;
padding: 25px;
background-color: rgba)_;
color:black;
}
*/
</style>
</head>
<body>
<div class="wthree-dot">
<h1>Student Feedback Form</h1>
<div class="profile">
<div class="wrap">
<div class="w3layouts-top-grids">
<div class="callbacks_container">
<div class="w3ls-subscribe">
<div class="agileits-border">
<form action="theory_form.php" method="POST">
<div class="hover-class">
<br>
Subject knowledge of the teacher.
<input type="range" value="10" min="0" max="10" name="1" required>
<br>
Communication skills of the teacher.
<input type="range" value="10" min="0" max="10" name="2" required>
<br>
Use of right mix of board, OHP, LCD, etc. creatively by the teacher to make the class
interesting and effective.
<input type="range" value="10" min="0" max="10" name="3" required>
<br>
Use of relevant practical/industrial examples in the class.
<input type="range" value="10" min="0" max="10" name="4" required>
<br>
What is your satisfaction level on the infrastructural
facilities at VIT?
<input type="range" value="10" min="0" max="10" name="5" required>
<input type="submit" value="Submit">
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/vegas.min.js"></script>
<script src="js/wow.min.js"></script>
<script src="js/custom.js"></script>
</body>
</html>