-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview_task.php
More file actions
33 lines (33 loc) · 918 Bytes
/
view_task.php
File metadata and controls
33 lines (33 loc) · 918 Bytes
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
<?php
include 'db_connect.php';
if(isset($_GET['id'])){
$qry = $conn->query("SELECT * FROM task_list where id = ".$_GET['id'])->fetch_array();
foreach($qry as $k => $v){
$$k = $v;
}
}
?>
<div class="container-fluid">
<dl>
<dt><b class="border-bottom border-primary">Task</b></dt>
<dd><?php echo ucwords($task) ?></dd>
</dl>
<dl>
<dt><b class="border-bottom border-primary">Status</b></dt>
<dd>
<?php
if($status == 1){
echo "<span class='badge badge-secondary'>Pending</span>";
}elseif($status == 2){
echo "<span class='badge badge-primary'>On-Progress</span>";
}elseif($status == 3){
echo "<span class='badge badge-success'>Done</span>";
}
?>
</dd>
</dl>
<dl>
<dt><b class="border-bottom border-primary">Description</b></dt>
<dd><?php echo html_entity_decode($description) ?></dd>
</dl>
</div>