-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_group.php
More file actions
91 lines (87 loc) · 3.62 KB
/
add_group.php
File metadata and controls
91 lines (87 loc) · 3.62 KB
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
<?php
include 'lib/Session.php';
Session::checkadminSession();
include('includes/header1.php');
include('includes/menu.php');
$aid = Session::get('aid');
$adminId = Session::get('adminId');
?>
<?php
if(($_SERVER['REQUEST_METHOD']=='POST')){
$msg = $gp->insertgroup($_POST,$aid,$adminId);
}
?>
<div class="container bg-light-gray">
<div class="main-content">
<div class="featured-content">
<section>
<div class="row-fluid">
<div class="span8 offset3">
<h2 style="margin-bottom: 5px;">Some Rules:</h2>
<p><strong>1. </strong>All field Must Be Filled Up.</p>
<p><strong>2. </strong>You Can Set Total Question & You Have Option To Show Limited Question For An Exam.</p>
<p><strong>3. </strong>You Can Set Up Exam Running time.(e.g Students must take exams within 2 hours)</p>
<p><strong>4. </strong>Exam Running Time & Time Per Question Count Minutes & Seconds Time Format Respectively.</p>
<p><strong>5. </strong>Starting Time Format Must Be [YYYY-MM-DD hh:mm:ss] & Time Is in 24 Hour Format</p>
</div>
</div>
</section>
<div style="margin-bottom: 30px;" class="ruler"></div>
<div class="row-fluid">
<div class="span8 offset3">
<form action="" method="POST">
<div class="form-group">
<label style="margin-right: 66px;">Group Name: </label>
<input type="text" class="form-control adgrfs" name="groupName" required="1">
</div>
<div class="form-group hgad">
<label style="margin-right: 72px;">Exam Name: </label>
<input type="text" class="form-control adgrfs" name="examName" required="1">
</div>
<div class="form-group hgad">
<label style="margin-right: 42px;">Total Questions: </label>
<input type="number" class="form-control adgrfs" name="totalQuestion" placeholder="Only Number" required="1">
</div>
<div class="form-group hgad">
<label style="margin-right: 10px;">Questions For Exam: </label>
<input type="number" class="form-control adgrfs" name="totalExamShowQues" placeholder="Only Number" required="1">
</div>
<div class="form-group hgad">
<label style="margin-right: 14px;">Exam Running Time: </label>
<input type="number" class="form-control adgrfs" name="examRunningTime" placeholder="Minutes For Exam Running Time" required="1">
</div>
<div class="form-group hgad">
<label style="margin-right: 22px;">Time Per Question: </label>
<input type="number" class="form-control adgrfs" name="eachQuestionTime" placeholder="Seconds For Per Time Question" required="1">
</div>
<div class="form-group hgad">
<label style="margin-right: 58px;">Starting Time: </label>
<input type="text" class="form-control adgrfs" name="startingTime" placeholder="Format: 2017-01-27 07:18:01 [Time:24 Hour Format]" required="1">
</div>
<button type="submit" class="btn" style="background-color: purple;color: white">Add Group</button>
</form>
</div>
</div>
<section>
<?php
if(isset($msg)) { ?>
<div style="text-align: center;background:#4CAF50;padding: 10px; width: 400px;margin-left: 480px;border-radius: 7px;color:#fff;">
<?php
$len = strlen($msg);
if($len !=24)
echo '<h4><i>'.$msg.'</i><h4>';
else
echo "<script>
alert('Group Added Successfully');
window.location='admindashboard.php'
</script>"
?>
</div>
<?php } ?>
</section>
</div>
</div>
</div>
<?php
include('includes/footer.php');
?>