-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstructorresult.php
130 lines (91 loc) · 3.05 KB
/
instructorresult.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
<div role="tabpanel" class="tab-pane" id="enterstudentresult">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#enterresult" aria-controls="enterresult" role="tab" data-toggle="tab">Enter Students' Result</a></li>
<li role="presentation"><a href="#viewresults" aria-controls="viewresults" role="tab" data-toggle="tab">View Students' Result</a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="enterresult">
<div class="enterresult">
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="box">
<div class="box-header">
<h2 class="box-title">Enter Students' scores</h2>
</div>
<!-- /.box-header -->
<form role="form" class="form-inline" id="create" method="POST">
<div class="box-body">
<div class="form-group">
<label>Result type</label>
<select name='resulttype' required value="<?php echo !empty($resulttype)?$resulttype:'';?>">
<option value="Assignment">Assignment</option>
<option value="Test">Test</option>
<option value="Exam">Exam</option>
</select>
<input type="hidden" name="Instructorid" value="">
</div>
<button type="submit" name="getresultform">Go</button>
</div>
</form>
<?php
?>
<div class="box-body no-padding">
<table class="table span12 table-stripped">
<thead>
<tr>
<th>s/n</th>
<th>Student Name</th>
<th>score</th>
</tr>
</thead>
<tbody>
<?php $Instructor->addscore();?>
<?php $Instructor->processscore();?>
</tbody>
</table>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
</div>
</section>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="viewresults">
<div class="viewresults">
<section class="content">
<div class="row">
<div class="box box-info blue-border" style="border:0px;">
<div class="box-header" >
<h2 class="box-title">Assignment Submissions</h2>
</div>
<!-- /.box-header -->
<div class="box-body no-padding">
<table class="table span12 table-stripped">
<thead>
<tr>
<th>Student name</th>
<th>Assignment Score</th>
<th>Test Score</th>
<th>Exam Score</th>
<th>Total</th>
<th>Grade</th>
<th>Update</th>
</tr>
</thead>
<tbody>
<?php $Instructor->viewresult();
$Instructor->updatestudentscore();
?>
</tbody>
</table>
</div>
</div>
</div>
</section>
</div>
</div>
</div>
</div>