-
Notifications
You must be signed in to change notification settings - Fork 0
/
laporan.php
71 lines (66 loc) · 1.99 KB
/
laporan.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
require_once 'template/header.php';
require_once 'fungsi.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>PT SCB - Home</title>
<style type="text/css">
p a{
text-decoration: none;
color: black;
}
p a:hover{
color: #01C388;
}
</style>
<!-- Load CSS dan javascript dari folder asset/css -->
<link rel="stylesheet" type="text/css" href="asset/css/bootstrap.min.css">
<script src="asset/js/jquery.min.js"></script>
<script src="asset/js/bootstrap.min.js" ></script>
</head>
<body>
<div class="container">
<h1 style="padding-top: 30px; text-align: center;">Laporan</h1>
Disini akan ditampilkan daftar order yang sudah diselesaikan
<hr>
<div class="col-md-6 col-md-offset-3">
<table class='table-bordered' style='width: 100%'>
<tr style='font-weight: bold; text-align: center; Height:30px;' bgcolor='#01C388'>
<td>No</td>
<td>Code OP</td>
<td>Lihat Laporan</td>
</tr>
<?php
$no=0;
$a=1000;
$query = ("SELECT estimasicgl.idcgl, estimasicgl.tebal, estimasicgl.lebar, estimasicgl.berat, estimasicgl.panjang, estimasicgl.sumber, estimasicgl.mpm, estimasicgl.menit, estimasicgl.jam, spec.namaspec, coat.namacoat, orders.namaorder, finished,estimasicgl.berattarget,tgl_produksi,tgl_selesai, code_sap, estimasicgl.keterangan
FROM estimasicgl
INNER JOIN spec ON estimasicgl.idspec=spec.idspec
INNER JOIN coat ON estimasicgl.idcoat=coat.idcoat
INNER JOIN orders ON estimasicgl.idorder=orders.idorder
WHERE selesai=1
group by code_sap");
$tampil = mysqli_query($con,$query);
foreach ($tampil as $data) {
$no++;
echo "
<tr class='text-center'>
<td>$no</td>
<td>$data[code_sap]</td>
<td>
<a href='detail_laporan.php?code=$data[code_sap]'><button class='btn btn-primary btn-xs'>Detail</button></a>";
echo "</td>
</tr>
";
}
echo "</table>";
?>
</div>
</div>
</body>
</html>
<?php
require_once 'template/footer.php';
?>