-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview_timetable.php
70 lines (57 loc) · 2.51 KB
/
view_timetable.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
<?php include'header.php'; ?>
<style>
</style>
<div class="pcoded-content">
<div class="pcoded-inner-content">
<div class="main-body">
<div class="row">
<div class="col-sm-12">
<div class="card">
<div class="card-block">
<div class="dt-responsive table-responsive">
<table id="basic-btnnn" class="table table-hover table-bordered nowrap" style="font-size: 60%; text-align:center;">
<thead>
<th>Days</th>
<th>Level</th>
<th>Department</th>
<th>8-9</th>
<th>9-10</th>
<th>10-11</th>
<th>11-12</th>
<th>12-1</th>
<th>1-2</th>
<th>2-3</th>
<th>3-4</th>
<th>4-5</th>
<th>5-6</th>
</thead>
<tbody id='tbody'>
</tbody>
</table>
<a class="btn btn-primary" id="printLink" href="print_tt_general.php">Print Timetable</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include'footer_view.php'; ?>
<script type="text/javascript">
$(function(e){
lects=[];
<?php include'show_days.php'; ?>
sendData('pull_timetable.php', {}).then(resp=>{
<?php include'resp.php'; ?>
days.map(dy=>{
//alert(JSON.stringify())
resp['dept'].map(dept=>{
<?php include'lects_day.php'; ?>
})
// alert(JSON.stringify(resp));
})
})
</script>