-
Notifications
You must be signed in to change notification settings - Fork 0
/
fsalary.php
59 lines (57 loc) · 1.29 KB
/
fsalary.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
<?php
ob_start();
require("config.php");
include("sidebar.php");
?>
<!-- page content on right side -->
<div class="container">
<div class="row mb-1 mx-0">
<div class="col-sm-4 col-md-5">
<h2>Faculty Salary:-</h2>
</div>
</div>
<div class="table-responsive">
<table class="table display" id="datatable">
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Amount</th>
<th>Comment</th>
<th>DOP</th>
</tr>
</thead>
<?php
$string = "SELECT * FROM `fsalary` WHERE D_flag=0 ORDER BY FS_DOP DESC ";
$temp = $sql->query($string);
$i=1;
while($demo = $temp->fetch_row()){
?>
<tbody>
<tr>
<td><?php echo $i; ?></td>
<td><?php $string1="SELECT `F_fname`, `F_lname` FROM `faculty` WHERE `F_ID`=$demo[1] AND D_flag=0";
$temp1 = $sql->query($string1);
if($demo1 = $temp1->fetch_row()){
echo $demo1[0]." ".$demo1[1]; } ?></td>
<td><?php echo $demo[2]; ?></td>
<td><?php echo $demo[3]; ?></td>
<td><?php echo $demo[4]; ?></td>
</tr>
</tbody>
<?php
$i++;
} ?>
</table>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(e){
$('#facultysalary , #dfaculty').addClass('active');
$('#datatable').DataTable();
});
</script>
</body>
</html>