-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutbox.php
More file actions
64 lines (53 loc) · 1.66 KB
/
outbox.php
File metadata and controls
64 lines (53 loc) · 1.66 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
<?php include('template/header.php');?>
<?php
include('class/view.php');
$display = new display();
$tab_name = "message_box";
$cndtn = "msg_from=".$_SESSION['login_emp_id'];
$result = $display->display_table_cndtn($tab_name, $cndtn);
?>
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link" href="inbox.php">Inbox</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="outbox.php">Outbox</a>
</li>
<li class="nav-item">
<a class="nav-link" href="create_message.php">Create Message</a>
</li>
</ul>
<div class="card mb-3">
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered table-hover" width="100%" id="dataTable" cellspacing="0">
<thead>
<tr>
<th>Message to</th>
<th>Title</th>
<th>Date</th>
<th>Status</th>
<th>Open</th>
</tr>
</thead>
<tbody>
<?php while($row=mysqli_fetch_assoc($result)){ ?>
<tr>
<td>
<?php $result2 = $display->display_table_cndtn('employee',"emp_id={$row['msg_to']}");
$emp_name = mysqli_fetch_assoc($result2);
echo $emp_name['emp_name'];
?>
</td>
<td><?php echo $row['msg_title'] ?></td>
<td><?php echo $row['msg_date'] ?></td>
<td><?php echo $row['msg_status'] ?></td>
<td><a href='view_message.php?msg_id=<?php echo $row['msg_id']; ?>'><button type='button' class='btn btn-primary btn-sm col-sm-10'>Open</button></a></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
<?php include('template/footer.php');?>