-
Notifications
You must be signed in to change notification settings - Fork 0
/
teacher_list.php
78 lines (75 loc) · 2.81 KB
/
teacher_list.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
<?php include('include/header.php') ?>
<?php include('include/sidebar.php'); ?>
<!-- top navigation -->
<?php include('include/topnav.php'); ?>
<!-- /top navigation -->
<!-- Content Wrapper. Contains page content -->
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Teachers</h3>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12 col-sm-12 ">
<div class="x_panel">
<div class="x_title">
<h2>Teachers List </h2>
<a href="teacher_create.php" class="btn btn-primary float-right">Add New</a>
<div class="clearfix"></div>
</div>
<div class="x_content">
<div class="row">
<div class="col-sm-12">
<div class="card-box table-responsive">
<?php include('message.php') ?>
<table id="datatable-buttons" class="table table-striped table-bordered" style="width:100%">
<thead>
<tr>
<th>#SL</th>
<th>Name</th>
<th>Gender</th>
<th>Designation</th>
<th>DOB</th>
<th>Subject</th>
<th>Contact</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$where['status']=1;
$result=$mysqli->common_select("teacher","*",$where);
if(!$result['error']){
foreach($result['selectdata'] as $i=>$teacher){
?>
<tr>
<td><?= ++$i; ?></td>
<td><?= $teacher->teacherName ?></td>
<td><?= $teacher->gender ?></td>
<td><?= $teacher->designation ?></td>
<td><?= date('d-m-Y',strtotime($teacher->birthDate)) ?></td>
<td><?= $teacher->subject ?></td>
<td><?= $teacher->contactNo ?></td>
<td>
<a href="teacher_edit.php?id=<?= $teacher->id ?>" class="btn btn-xs btn-info" title="Update"><i class="fa fa-edit"></i></a>
<a onclick="return confirm('Are you sure to delete?')" href="teacher_delete.php?id=<?= $teacher->id ?>" class="btn btn-xs btn-danger" title="Delete"><i class="fa fa-trash"></i></a>
</td>
</tr>
<?php }
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include('include/footer.php'); ?>