-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshowdogs.php
More file actions
69 lines (69 loc) · 3.55 KB
/
showdogs.php
File metadata and controls
69 lines (69 loc) · 3.55 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
65
66
67
68
69
<!-- Begin showtask -->
<div class="card border-primary" style="width: 50%">
<div class="card-header">
<div class="row">
<div class="col-sm">
Due By:
<?php if ($task["dueDate"] != '') {
echo date('n/j/Y',strtotime($task["dueDate"]));
} else {
echo "Not specified";
} ?> <!-- else -->
</div>
<div class="col-sm">
<?php
switch($task["priority"]) {
case 'Normal': ?>
<span class="badge float-right badge-warning">Priority: Normal</span> <?php
break;
case 'High': ?>
<span class="badge float-right badge-danger">Priority: High</span> <?php
break;
case 'Low': ?>
<span class="badge float-right badge-success">Priority: Low</span> <?php
break;
} ?>
</div>
</div> <!-- Row #1 -->
</div> <!-- Header -->
<div class="card-body">
<h5 class ="card-title"><?php echo $task["summary"]; ?></h5>
<p class="card-text"><?php echo $task["details"]; ?></p>
</div> <!-- Body -->
<div class="card-footer">
<div class = "row">
<div class = "col-sm">
<?php if ($task["isComplete"] == 'false') { ?>
<h4><span class="badge badge-secondary">Incomplete</span></h4>
<?php } else { ?>
<h4><span class="badge badge-secondary">Complete</span></h4>
<?php } ?>
</div>
<div class = "col-sm">
<ul class="nav justify-content-end nav-pills card-header-pills">
<?php if ($task["isComplete"] == 'false') { ?>
<li class="nav-item">
<a class="nav-link" href="/edittask.php?id=<?php echo $task["id"] ?>"> <i class="fas fa-edit"></i></a>
</li>
<?php } ?>
<li class="nav-item">
<a class="nav-link" href="/deletetask.php?id=<?php echo $task["id"] ?>"> <i class="fas fa-trash-alt"></i></a>
</li>
<li class="nav-item">
<form method="post" action="/completetask.php?id=<?php echo $task["id"] ?>">
<button type="submit" class="btn btn-link">
<?php if ($task["isComplete"] == 'false') { ?>
<i class="fas fa-check"></i>
<?php } else { ?>
<i class="fas fa-redo-alt"></i>
<?php } ?>
</button>
</form>
</li>
</ul>
</div>
</div>
</div>
</div> <!-- Card -->
<p>
<!-- End showtask -->