<?php
include "../config/koneksi.php";
include "../config/library.php";
include "../config/fungsi_indotgl.php";
include "../config/fungsi_combobox.php";
include "../config/class_paging.php";
include "../config/fungsi_rupiah.php";
$r_staff = mysql_fetch_array(mysql_query("SELECT * FROM staff WHERE username = '$_SESSION[namauser_staf]' "));
$id_staf = $r_staff['id_staff']; //$id_staf = 2;
//echo $id_staf;
//echo "SELECT * FROM staff WHERE username = '$_SESSION[namauser_staf]'";
// Bagian Home
//echo "$_SESSION[namauser]<br>$_SESSION[leveluser]<br>$_GET[module]";
if ($_GET['module']=='home'){
//echo $_SESSION['leveluser_staf'];
if ($_SESSION['leveluser_staf']=='staff'){
include "modul/mod_member/members.php";
}
elseif ($_SESSION['leveluser_staf']=='user'){
?>
<script type="text/javascript">
window.location = '../' ;
</script>
<?php
}
}
elseif($_GET['module'] == 'member')
{
include "modul/mod_member/members.php";
}
// Apabila modul tidak ditemukan
else{
echo "<p><b>MODUL BELUM ADA ATAU BELUM LENGKAP</b></p>";
}
?>