-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.php
60 lines (55 loc) · 1.39 KB
/
content.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
<?php
include "inc/inc.koneksi.php";
include "inc/library.php";
include "inc/fungsi_indotgl.php";
include "inc/fungsi_combobox.php";
include "inc/class_paging.php";
include "inc/fungsi_rupiah.php";
include "inc/fungsi_tanggal.php";
include "inc/fungsi_hdt.php";
$mod = $_GET['module'];
// Bagian Home
if ($mod=='home'){
echo "<h2>Selamat Datang</h2>";
echo "Selamat datang <b>$_SESSION[namalengkap] </b>, di Aplikasi Persediaan Barang.";
echo "<p>Aplikasi ini adalah <span class='cls_hdt'>Demo</span><br>";
echo "<p>By: Ganjar Setia M</p>";
echo"<p> </p>
<p align=right>Login : $hari_ini, ";
echo tgl_indo(date("Y m d"));
echo " | ";
echo date("H:i:s");
echo " WIB</p>";
}
//users
elseif ($mod=='pengguna'){
include "modul/users/users.php";
}
elseif ($mod=='barang'){
include "modul/barang/barang.php";
}
//supplier
elseif ($mod=='supplier'){
include "modul/supplier/supplier.php";
}
elseif ($mod=='pembelian'){
include "modul/pembelian/pembelian.php";
}
elseif ($mod=='penjualan'){
include "modul/penjualan/penjualan.php";
}
elseif ($mod=='retur_beli'){
include "modul/retur_beli/retur_beli.php";
}
//lap_barang
elseif ($mod=='lap_barang'){
include "modul/lap_barang/lap_barang.php";
}
elseif ($mod=='lap_stok'){
include "modul/lap_stok/lap_stok.php";
}
// Apabila modul tidak ditemukan
else{
echo "<b>MODUL BELUM ADA ATAU BELUM LENGKAP</b>";
}
?>