forked from divyanshukapoor/Quiz-Portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_test.php
102 lines (94 loc) · 4.12 KB
/
create_test.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
<?php
session_start();
if($_SESSION["teacher_email"]==true)
{
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Teacher</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!--===============================================================================================-->
<!--link rel="icon" type="image/png" href="images/icons/favicon.ico"/-->
<!--===============================================================================================-->
<!--link rel="stylesheet" type="text/css" href="vendor/bootstrap/css/bootstrap.min.css"-->
<!--===============================================================================================-->
<!--===============================================================================================-->
</head>
<body style="background-color:#eeeeee">
<div class="container">
<div class="jumbotron">
<div class="row">
<div class="col-xs-12 well" style="background:white;margin-top:-20px">
<h2 class="text-center" style="font-family:Monospace"><strong>Create New Quiz<strong> </h2>
<hr>
<form method="post" action="http://localhost/quiz/php/dashEntry.php">
<div class="input-group">
<span class="input-group-addon">  Subject Code  </span>
<input type="text" class="form-control" name="Subject_code">
</div>
<br>
<div class="input-group">
<span class="input-group-addon">Question Count </span>
<input type="number" min="0" class="form-control" name="No_ques" >
</div>
<br>
<div class="input-group">
<span class="input-group-addon">      Test Key       </span>
<input type="password" class="form-control" name="Test_key" >
</div>
<br>
<div class="input-group">
<span class="input-group-addon">Confirm Test Key</span>
<input name="cTest_key" type="password" class="form-control" >
</div>
<br>
<div class="row">
<div class="col-xs-6">
<div class="input-group">
<span class="input-group-addon">          Hour         </span>
<input type="number" min="0" class="form-control" name="Hours" >
</div>
</div>
<div class="col-xs-6">
<div class="input-group">
<span class="input-group-addon">          Minutes         </span>
<input type="number" min="0" class="form-control" name="Minutes" >
</div>
</div>
</div>
<br>
<div class="form-group">
<label >Select Branch:</label>
<select class="form-control" name="Branch" >
<option value="Information Technology">Information Technology</option>
<option value="Mechanical Engineering">Mechanical Engineering</option>
<option value="Electronics and Communication">Electronics and Communication</option>
<option value="Electrical Engineering">Electrical Engineering</option>
<option value="Chemical Engineering">Chemical Engineering</option>
<option value="Civil Engineering">Civil Engineering</option>
<option value="Production Engineering">Production Engineering</option>
<option value="BioTechnology Engineering">BioTechnology Engineering</option>
<option value="Computer Science And Engineering">Computer Science And Engineering</option>
</select>
</div>
<br>
<center><button class="btn btn-success input-group-text" style="float:center;">Submit</button>
</center> </form>
</div>
</div>
</div>
</div>
</body>
</html>
<?php
}
else
{
header('location:./teacher.html');
}
?>