-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.php
83 lines (66 loc) · 2.07 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
// Bagian Home
if ($_GET['halamane']=='home'){
include "halaman/hal_home/home.html";
?>
<?php
}
// Bagian Daftar Member
elseif ($_GET['halamane']=='member'){
if ($_SESSION['level']=='admin'){
include "halaman/hal_member/member.php";
} else{ include "halaman/hal_blank/blank.php";}
}
// Bagian Daftar Member
elseif ($_GET['halamane']=='update-data-member'){
if ($_SESSION['level']=='user'){
include "halaman/hal_member/update_member.php";
} else{ include "halaman/hal_blank/blank.php";}
}
// Bagian Daftar lapangan
elseif ($_GET['halamane']=='lapangan'){
if ($_SESSION['level']=='admin'){
include "halaman/hal_lapangan/lapangan.php";
} else{ include "halaman/hal_blank/blank.php";}
}
// Bagian Daftar jadwal
elseif ($_GET['halamane']=='jadwal'){
if ($_SESSION['level']=='admin'){
include "halaman/hal_jadwal/jadwal.php";
} else{ include "halaman/hal_blank/blank.php";}
}
// Bagian pilih jadwal
elseif ($_GET['halamane']=='pilih-jadwal'){
if ($_SESSION['level']=='admin' || $_SESSION['level']=='user'){
include "halaman/hal_jadwal/pilih_jadwal.php";
} else{ include "halaman/hal_blank/blank.php";}
}
// Bagian Daftar konfirmasi
elseif ($_GET['halamane']=='konfirmasi'){
if ($_SESSION['level']=='admin' || $_SESSION['level']=='user'){
include "halaman/hal_konfirmasi/konfirmasi.php";
} else{ include "halaman/hal_blank/blank.php";}
}
// Bagian Daftar transaksi
elseif ($_GET['halamane']=='transaksi'){
if ($_SESSION['level']=='admin' || $_SESSION['level']=='user'){
include "halaman/hal_transaksi/transaksi.php";
} else{ include "halaman/hal_blank/blank.php";}
}
// Bagian Daftar identitas
elseif ($_GET['halamane']=='identitas'){
if ($_SESSION['level']=='admin'){
include "halaman/hal_identitas/identitas.php";
} else{ include "halaman/hal_blank/blank.php";}
}
// Bagian Daftar identitas
elseif ($_GET['halamane']=='laptrans'){
if ($_SESSION['level']=='admin'){
include "laptrans.php";
} else{ include "halaman/hal_blank/blank.php";}
}
// Apabila halaman tidak ditemukan
else{
include "halaman/hal_blank/blank.php";
}
?>