-
Notifications
You must be signed in to change notification settings - Fork 0
/
kehilangan.php
61 lines (58 loc) · 2.46 KB
/
kehilangan.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
<?php
include 'koneksi.php';
if (isset($_GET['hapus'])) {
hapus($con, 'tbl_kehilangan', 'id_kehilangan', $_GET['hapus']);
}
?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1 align="center"><strong>
LAPORAN KEHILANGAN</strong>
<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=tambahkehilangan'><button class="breadcrumb btn btn-flat btn-success btn-xs">Tambah</button></a>
<a href="" class="breadcrumb btn btn-xs"><span class="glyphicon glyphicon-refresh"></span></a>
<a class="pull-right" href='print_kehilangan.php' target="_blank"><button class="breadcrumb btn btn-flat btn-success btn-xs">Cetak</button></a>
</div>
<table id="myTable" class="table table-bordered table-striped">
<thead style="background-color: lightgreen;">
<th>No</th>
<th>Nama</th>
<th>Jenis Kelamin</th>
<th>Tempat Lahir</th>
<th>Tanggal Lahir</th>
<th>Pekerjaan</th>
<th>Agama</th>
<th>Keterangan</th>
<th>Alamat</th>
<th>Aksi</th>
</thead>
<tbody>
<?php
$adit = showdata($con, "SELECT * FROM tbl_kehilangan");
foreach ($adit as $row) :
?>
<tr>
<?php foreach ($row as $value) : ?>
<td><?= $value; ?></td>
<?php endforeach;?>
<td><a href='?page=editkehilangan&id=<?=$row['id_kehilangan']; ?> '><button class="glyphicon glyphicon-pencil"></button></a>
<a href='?page=kehilangan&hapus=<?=$row['id_kehilangan']; ?> '><button class="glyphicon glyphicon-trash" onclick="return confirm('yakin menghapus data ini?')"></button></a><a href="cetak_kehilangan.php?id=<?php echo $row['id_kehilangan']; ?>" target="_blank"><button class="glyphicon glyphicon-print"></button></a></td>
</tr>
<?php endforeach ?>
</tbody>
</table>
</div>
</div>
</div>
</section>
<!-- /.content -->
</div>