-
Notifications
You must be signed in to change notification settings - Fork 0
/
stnk.php
62 lines (58 loc) · 2.08 KB
/
stnk.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
<?php
include 'koneksi.php';
if (isset($_GET['hapus'])) {
hapus($con, 'tbl_stnk', 'id_stnkk', $_GET['hapus']);
}
?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1 align="center">
DATA STNK
<small></small>
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row" style="overflow-x: scroll;">
<div class="col-xs-12">
<div class="box box-primary">
<div style="background-color: #4c8ffc;" class="box-header with-border">
<a href='?page=tambahstnk'><button class="breadcrumb btn btn-flat btn-success btn-xs">Tambah</button></a>
</div>
<table id="stnk" class="table table-bordered table-striped">
<thead style="background-color: lightgreen;"">
<th>No</th>
<th>No Regis</th>
<th>Nama</th>
<th>Alamat</th>
<th>Merk</th>
<th>Type</th>
<th>Jenis</th>
<th>Model</th>
<th>Tahun</th>
<th>Isi Silinder</th>
<th>Warna</th>
<th>Keterangan</th>
<th>Masa</th>
<th>Aksi</th>
</thead>
<?php
$adit = showdata($con, "SELECT * FROM tbl_stnk");
foreach ($adit as $row) :
?>
<tr>
<?php foreach ($row as $value) : ?>
<td><?= $value; ?></td>
<?php endforeach;?>
<td><a href='?page=editstnk&id=<?=$row['id_stnk']; ?> '><button class="breadcrumb btn btn-flat btn-primary btn-xs">Edit</button></a>
<a href='?page=stnk&hapus=<?=$row['id_stnk']; ?> '><button class="breadcrumb btn btn-flat btn-danger btn-xs" onclick="return confirm('yakin menghapus data ini?')">Hapus</button></a></td>
</tr>
<?php endforeach ?>
</table>
</div>
</div>
</div>
</section>
<!-- /.content -->
</div>