-
Notifications
You must be signed in to change notification settings - Fork 0
/
keluar.php
58 lines (55 loc) · 2.31 KB
/
keluar.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
<?php
include 'koneksi.php';
if (isset($_GET['hapus'])) {
hapus($con, 'tbl_keluar', 'id_keluar', $_GET['hapus']);
}
?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1 align="center"><strong>
SURAT KELUAR</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=tambahkeluar'><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_keluar.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>Nomor Surat</th>
<th>Tanggal</th>
<th>Perihal</th>
<th>Tujuan Surat</th>
<th>Lampiran</th>
<th>Aksi</th>
</thead>
<tbody>
<?php
$adit = showdata($con, "SELECT * FROM tbl_keluar");
foreach ($adit as $row) :
?>
<tr>
<?php foreach ($row as $value) : ?>
<td><?= $value; ?></td>
<?php endforeach;?>
<td><a href='?page=editkeluar&id=<?=$row['id_keluar']; ?> '><button class="glyphicon glyphicon-pencil"></button></a>
<a href='?page=keluar&hapus=<?=$row['id_keluar']; ?> '><button class="glyphicon glyphicon-trash" onclick="return confirm('yakin menghapus data ini?')"></button></a> <a href="cetak_keluar.php?id=<?php echo $row['id_keluar'];?>" target="_blank"><button class="glyphicon glyphicon-print"></button></a></td>
</tr>
<?php endforeach ?>
</tbody>
</table>
</div>
</div>
</div>
</section>
<!-- /.content -->
</div>