71 lines
2.4 KiB
PHP
71 lines
2.4 KiB
PHP
<?php
|
|
//-------------ID user login = 19
|
|
|
|
class Ps_dataresume extends CI_Controller {
|
|
|
|
//-----------start variables for check action access----------//
|
|
public $vartambah = null;
|
|
public $varedit = null;
|
|
public $vardelete = null;
|
|
public $varview = null;
|
|
//-----------start variables for check action access----------//
|
|
|
|
function __construct(){
|
|
parent::__construct();
|
|
$this->check_isvalidated();
|
|
$this->load->helper(array('form', 'date'));
|
|
}
|
|
private function check_isvalidated(){
|
|
if(! $this->session->userdata('validated_rssapintar')){
|
|
redirect('index.php/login');
|
|
}
|
|
|
|
//--------------start check access this form page-------------//
|
|
$this->db->where('mum_tipeuser_id', $this->session->userdata('s_FK_TipeUser_rssapintar'));
|
|
$this->db->where('mum_menu_id', '19');
|
|
$cekMenu = $this->db->get('master_user_menu');
|
|
$rowcount = $cekMenu->num_rows();
|
|
if($rowcount==0){
|
|
redirect('index.php');
|
|
}else{
|
|
foreach ($cekMenu->result() as $cm)
|
|
{
|
|
$this->vartambah=$cm->mum_tambah;
|
|
$this->varedit=$cm->mum_ubah;
|
|
$this->vardelete=$cm->mum_hapus;
|
|
$this->varview=$cm->mum_lihat;
|
|
}
|
|
}
|
|
//--------------end check access this form page-------------//
|
|
}
|
|
|
|
public function index($error = NULL) {
|
|
$data['title'] = 'Data Resume';
|
|
$data['main_content'] = 'dataresume/v_dataresume';
|
|
$data['error']=$error;
|
|
|
|
$this->load->model('m_dataresume');
|
|
$dataresume = $this->m_dataresume->index();
|
|
$this->load->vars('dr', $dataresume);
|
|
|
|
$this->load->model('m_dokter');
|
|
$dokter = $this->m_dokter->index();
|
|
$this->load->vars('dk', $dokter);
|
|
|
|
$this->load->model('m_ruangan');
|
|
$ruang = $this->m_ruangan->index();
|
|
$this->load->vars('ru', $ruang);
|
|
|
|
$this->load->model('m_spesialis');
|
|
$spesialis = $this->m_spesialis->index();
|
|
$this->load->vars('sp', $spesialis);
|
|
|
|
$this->load->model('m_dokter');
|
|
$dpjp = $this->m_dokter->index();
|
|
$this->load->vars('dpjp', $dpjp);
|
|
|
|
$this->load->view('includes/template', $data);
|
|
}
|
|
}
|
|
|
|
?>
|