-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprint.php
More file actions
69 lines (57 loc) · 1.44 KB
/
print.php
File metadata and controls
69 lines (57 loc) · 1.44 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<style>
@media print
{
#print, #back
{
visibility: hidden;
}
}
</style>
<title>Print</title>
</head>
<body>
<?php
include 'connection.php';
$id = $_GET['id'];
$q = 'select * from task where id='.$id;
$item = mysqli_query($conn, $q) or die("No Information available!");
if(mysqli_num_rows($item)>0)
{
foreach($item as $note)
{
?>
<div class="container d-flex justify-content-center">
<div class="row mt-5 col-md-4 rounded d-flex align-middle" class="height:100%">
<table class="table-borderless">
<tr>
<th>Note Date:</th>
<td><?php echo $note['created_at'] ?></td>
</tr>
<tr>
<th>Note Reminder:</th>
<td><?php echo $note['reminder'] ?></td>
</tr>
<tr>
<th>Title:</th>
<td><?php echo $note['title'] ?></td>
</tr>
<tr>
<th>To Do Note:</th>
<td><?php echo $note['note'] ?></td>
</tr>
</table>
<button id="print" class=" mt-3 btn btn-outline-primary" onclick="window.print(); remove()">PRINT</button>
<a id="back" href="./" class=" mt-3 btn btn-outline-primary">Back</a>
</div>
</div>
<?php }} ?>
<script src="js/jquery.js"></script>
<script src="js/popper.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>