-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSingleStudentAct.php
More file actions
196 lines (162 loc) · 5.61 KB
/
SingleStudentAct.php
File metadata and controls
196 lines (162 loc) · 5.61 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
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
<!-- This is the home page for Host/Organizations -->
<?php
session_start();
$student=$_GET['id'];
// for header files
require 'config/connection.php';
include 'include/header.php';
$log=$_GET['id'];
$sql1="SELECT * FROM logbook,activity,attachment_request,allocation
WHERE activity.logbook=logbook.log_id
AND logbook.student=allocation.alloc_id
AND allocation.attachment=attachment_request.att_id
AND logbook.log_id='$log'
ORDER BY activity.act_id ASC";
$qry=mysqli_query($conn,$sql1);
?>
<div class="wrapper">
<?php
if ($_SESSION['position']=='HOD') {
include 'include/hodnav.php';
}
if ($_SESSION['position']=='Dean') {
include 'include/dnav.php';
}
if ($_SESSION['position']=='Coordinator') {
include 'include/Coordinatornav.php';
}
// for admin
if ($_SESSION['role']=='1') {
include 'include/anav.php';
}
if ($_SESSION['role']=='6') {
include 'include/hsnav.php';
}
if ($_SESSION['position']=='staff') {
include 'include/staffNav.php';
}
?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h4 class="m-0"><i class="fa fa-book text-orange text-bold"></i> Log Books</h4>
</div><!-- /.col -->
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item "><a href="admin.html" class="text-orange">Home</a></li>
<li class="breadcrumb-item ">Dashboard </li>
</ol>
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container-fluid -->
</div>
<!-- /.content-header -->
<!-- start of logbook form -->
<div class="row">
<div class="col-md-11 mx-1 P-2 mx-auto">
<div class="card">
<div class="card-header bg-dark"></div>
<div class="card-body">
<div class="form">
<div class="col-md-3 mx-auto text-center ">
<img src="logo.jpg" style="width:100%;height: 80px;">
<small class="text-center">MZUMBE UNIVERSITY</small>
</div>
<table class="table table-bordered table-striped">
<thead>
<tr>
<td>Date: <?php echo date('Y'.'/'.'m'.'/'.'d'); ?></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Day</td>
<td>Description of Activities performed</td>
<td>Hours</td>
</tr>
</thead>
<tbody>
<form action="config/logbooks.php" method="post">
<?php if (mysqli_num_rows($qry)> 0){
for ($i=1; $i<=mysqli_num_rows($qry); $i++){
$row=mysqli_fetch_array($qry);
?>
<tr>
<td> <?php echo $row['day']; ?></td>
<td> <?php echo $row['description']; ?> </td>
<td>
<?php echo $row['hours']; ?>
</td>
</tr>
<?php }}
?>
</tbody>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<footer class="main-footer bg-dark text-center">
<br>
<strong>Copyright © 2021/2022 <a href="" class="text-orange">TazarChriss </a>.</strong>
All rights reserved.
<div class="mt-4">
<h1></h1>
</div>
</footer>
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
<!-- Control sidebar content goes here -->
</aside>
<!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->
<script src="plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- DataTables & Plugins -->
<script src="plugins/datatables/jquery.dataTables.min.js"></script>
<script src="plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
<script src="plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
<script src="plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
<script src="plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
<script src="plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script>
<script src="plugins/jszip/jszip.min.js"></script>
<script src="plugins/pdfmake/pdfmake.min.js"></script>
<script src="plugins/pdfmake/vfs_fonts.js"></script>
<script src="plugins/datatables-buttons/js/buttons.html5.min.js"></script>
<script src="plugins/datatables-buttons/js/buttons.print.min.js"></script>
<script src="plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="dist/js/demo.js"></script>
<!-- Page specific script -->
<script>
$(function () {
$("#example1").DataTable({
"responsive": true, "lengthChange": false, "autoWidth": false,
"buttons": ["pdf"]
}).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)');
$('#example2').DataTable({
"paging": true,
"lengthChange": false,
"searching": false,
"ordering": true,
"info": true,
"autoWidth": false,
"responsive": true,
});
});
</script>
</body>
</html>