-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit.php
59 lines (43 loc) · 1.17 KB
/
edit.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
<?php
// Array ( [menu] => modify [data] => gedung [id] => RK-3 )
if($_GET['data']=='gedung'){
require("./lib/class.gedung.inc.php");
$gd = new gedung();
$tbl = 'gedung';
$key = $_GET['id'];
$gedung = $gd->pickup('*',$tbl,'kodeGedung',array($key));
include("./forms/gedung.php");
}
if($_GET['data']=='kamar'){
require("./lib/class.kamar.inc.php");
$km = new kamar();
$tbl = 'kamar';
$key = $_GET['id'];
$kamar = $km->pickup('*',$tbl,'kodeKamar',array($key));
include("./forms/kamar.php");
}
if($_GET['data']=='tarif'){
require("./lib/class.tarif.inc.php");
$trf = new tarif();
$tbl = 'kelasTarif';
$key = $_GET['id'];
$tarif = $trf->pickup('*',$tbl,'id',array($key));
include("./forms/kelasTarif.php");
}
if($_GET['data']=='penghuni'){
require("./lib/class.penghuni.inc.php");
$kos = new penghuni();
$tbl = 'penghuni';
$key = $_GET['id'];
$tamu = $kos->pickup('*',$tbl,'nomorKTP',array($key));
include("./forms/penghuni.php");
}
if($_GET['data']=='bayar'){
require("./lib/class.bayar.inc.php");
$byr = new payment();
$tbl = 'payment';
$key = $_GET['id'];
$byr->pickup('*',$tbl,'idPayment',array($key));
include("./forms/bayar.php");
}
?>