This repository has been archived by the owner on Feb 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
outbox.php
76 lines (68 loc) · 2.75 KB
/
outbox.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
72
73
74
75
76
<?php
//cek status login
include "include/auth.php";
//file configurasi
include "include/config.php";
$sql = "SELECT * from outbox";
$query = mysql_query ($sql,$connect);
//title page
$titlepage = "Surat Keluar";
//header aplikasi
include "include/header.php";
?>
<div class="wrapper">
<div class="container">
<div class="row">
<?php include "include/menu.php";?>
<div class="span9">
<div class="content">
<div class="module">
<div class="module-head">
<a href="proses/input_outbox.php" class="btn btn-module pull-right"><i class="icon-plus"></i> Tambah Data</a>
<h2><?php echo $titlepage;?> </h2>
</div>
<div class="module-body table">
<table cellpadding="0" cellspacing="0" border="0" class="datatable-1 table table-striped display"
width="100%">
<thead>
<tr>
<th>No Surat</th>
<th>Jenis</th>
<th>Perihal</th>
<th>Tujuan</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
<?php
while($data = mysql_fetch_array ($query)){ ?>
<tr>
<td><?php echo $data['no_surat'];?></td>
<td><?php echo $data['jenis'];?></td>
<td><?php echo $data['perihal'];?></td>
<td><?php echo $data['tujuan'];?></td>
<td>
<div class="btn-group">
<a href="proses/detail_outbox.php?id=<?php echo $data['id_surat'];?>" class="btn btn-small">Detail</a>
<?php if($aksesusr != 2){ ?>
<a type="button" class="btn dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="proses/edit_outbox.php?id=<?php echo $data['id_surat'];?>">Edit</a></li>
</ul>
<?php } ?>
</div>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include "include/footer.php";?>