-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathattendance_page.php
executable file
·82 lines (77 loc) · 3.56 KB
/
attendance_page.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
<?php
require_once 'core/init.php';
if(!loggedIn() || privilege()==NULL || privilege()=='admin'){
die();
}
?>
<section class="content-header">
<h1>
Attendance System
<small>Import attendance</small>
</h1>
<ol class="breadcrumb">
<li><a href="home.php"><i class="fa fa-dashboard"></i> Home</a></li>
<li><a href="#">Attendance System</a></li>
<li class="active">Import attendance</li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-md-6">
<div id="update"></div>
<form id="attendance">
<div class="box box-info">
<div class="box-header">
<h3 class="box-title">Import CSV/Excel file</h3>
</div>
<div class="box-body">
<div class="form-group">
<label for="course">Select course with respective department</label>
<select name="course_id" class="form-control">
<option value="" >Select your Course</option>
<?php
$i=0;
$c = new Course();
$courses = $c->getAppointed(Session::get('teacher_id'));
while(!empty($courses) && $course = $courses->fetch_object()){
?>
<option value="<?php echo $course -> course_code . ',' . $course -> course_dep; ?>"> <?php echo $course -> course_code.'-'; $ccn = new Course(); $ccn->getInfobyId($course->course_code); echo $ccn->getCourseName(); unset($ccn); ?> in <?php $d = new Department();
$d -> getInfo($course -> course_dep);
echo $d -> getDepName();
?></option>
<br />
<?php
}
?>
</select>
</div>
<div class="form-group">
<div class="btn btn-success btn-file">
<i class="fa fa-paperclip"></i> Select File
<input type="file" name="file">
</div>
<p class="help-block">Max. 4MB</p>
</div>
</div>
<div class="box-footer">
<button type="submit" class="btn btn-primary" name='submit'>Import</button>
</div>
</div>
</form>
</div>
<div class="col-md-6">
</div>
</div>
</section>
<!-- jQuery 2.0.2 -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<!-- AJAX FORM -->
<script type="text/javascript" src="js/jquery.form.js"></script>
<!-- Bootstrap -->
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<!-- AdminLTE App -->
<script src="js/AdminLTE/app.js" type="text/javascript"></script>
<!-- Page Script -->
<script src="js/import_attendance.js"></script>