-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcetak-laporan-jenis-menu.php
46 lines (43 loc) · 1.54 KB
/
cetak-laporan-jenis-menu.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<title>Cetak Rekapitulasi Jenis Menu</title>
<link rel="shorcut icon" type="text/css" href="photo/logo1.png">
<link rel="stylesheet" href="css/bootstrap-4_4_1.min.css"/>
<style>
.box-header{margin-left: 30px; margin-top: 20px; margin-bottom: 5px;}
tr>th{text-align: center; height: 35px; border: 2px solid;}
tr>td{padding-left: 5px; vertical-align: middle!important;}
tr>td>img{margin-top: 3px; margin-bottom: 3px;}
#cetak{margin-left: 30px; margin-right: 30px;}
</style>
</head>
<body onload="window.print(); window.onafterprint = window.close; ">
<span style="margin-left: 0px; font-size: 24px;">REKAPITULASI DAFTAR MENU</span>
<table class="table table-bordered" style="width:50%">
<thead>
<tr class="text-center">
<th>No.</th>
<th>Jenis Menu</th>
</tr>
</thead>
<tbody>
<?php
include "koneksi.php";
$no = 1;
$sql = "SELECT * FROM tbl_jenis_menu ORDER BY jenis_menu";
$query = mysqli_query($koneksi, $sql);
while ($data = mysqli_fetch_array($query)) { ?>
<tr>
<td align="center" width="5%"><?= $no++; ?>.</td>
<td><?= $data['jenis_menu']; ?></td>
</tr>
<?php
} ?>
</tbody>
</table>
</body>
</html>