login($_POST['nohp'],$_POST['password']); if($loginf['notif']=='login sukses'){ header('location: index.php');exit(); } else{ header('location: index.php?p=login');exit(); } } else if($_POST['form']=='logout'){ if($main->logout()==true){ header('location: index.php');exit(); } else {} } else if($_POST['form']=='register'){ $mainRegister = $main->register( strip_tags($_POST['nama']), $_POST['nohp'], $_POST['noktp'], $_POST['password'], $_POST['repassword'], $_POST['form'] ); if($mainRegister['registerStatus']=="register berhasil"){ $main->login($mainRegister['registerNohp'],$mainRegister['registerPass']); header('location: index.php');exit(); } } else if($_POST['form']=='kaduan'){ $ex_kaduan = $main->buatKaduan($_POST); if($ex_kaduan !='gagal insert kaduan'){ header('location: index.php'); } } } if($main->pageType=='index'){ $get_page = 1; $get_id = false; $sortir = false; if(isset($_GET['page'])){ if(is_numeric($_GET['page'])){ $get_page = $_GET['page']; }} if(isset($_GET['id'])){ if(is_numeric($_GET['id'])){ //echo ; $get_id = $_GET['id']; if(isset($_POST['submit'])){ if($main->handleAct($_GET['id'],$_POST['submit'])!=false){ header('location: '.$_SERVER['REQUEST_URI']);exit(); } }// unset($_POST); }} if(isset($_GET['status'])){ if($_GET['status']=='onprogress'||$_GET['status']=='unread'||$_GET['status']=='finish'){ $sortir = $_GET['status']; }} $getlistkaduan = $main->getListKaduan($get_page,$get_id,$sortir); } ?>
getSessionNotif('registerStatus') ;?>
Detail Kaduan
Jenis | : | |
Tuntutan | : |
Data User
Nama | : | |
No. HP | : | |
No. KTP | : |
Tindakan Admin
Diterima | : | |
Diproses | : | |
Selesai | : |
getSessionNotif('registerStatus') ;?>