Update report untuk akses di sidebar
This commit is contained in:
@@ -0,0 +1,124 @@
|
||||
<?php
|
||||
|
||||
class Lp_pasien extends CI_Controller {
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
public $vartambah = null;
|
||||
public $varedit = null;
|
||||
public $vardelete = null;
|
||||
public $varview = null;
|
||||
|
||||
public $parent = 'SIMRS';
|
||||
public $title = 'REPORT';
|
||||
public $link = 'Lp_pasien';
|
||||
public $index = 'index.php/Lp_pasien';
|
||||
public $maincontent = 'simrs/report/';
|
||||
public $idmenu = '29';
|
||||
|
||||
//-----------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')){
|
||||
redirect('index.php/ps_login');
|
||||
}
|
||||
//--------------start check access this form page-------------//
|
||||
$this->db->where('am_fk_rolegroup_id', $this->session->userdata('s_IDRoleGroup'));
|
||||
$this->db->where('am_fk_menu_id', $this->idmenu);
|
||||
$this->db->where('am_access', 1);
|
||||
$cekMenu = $this->db->get('access_menu');
|
||||
$rowcount = $cekMenu->num_rows();
|
||||
if($rowcount==0){
|
||||
redirect('index.php');
|
||||
}else{
|
||||
foreach ($cekMenu->result() as $cm)
|
||||
{
|
||||
$this->vartambah= $cm->am_create;
|
||||
$this->varedit = $cm->am_edit;
|
||||
$this->vardelete= $cm->am_delete;
|
||||
$this->varview = $cm->am_view;
|
||||
}
|
||||
}
|
||||
//--------------end check access this form page-------------//
|
||||
}
|
||||
|
||||
public function pasienpenunjang(){
|
||||
$data['title'] = "SIMRS - DATA HASIL PENUNJANG PASIEN";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/pasienpenunjang/v_pasienpenunjang";
|
||||
if(isset($_POST['tanggal'])) {
|
||||
$dateall = $this->input->post('tanggal');
|
||||
$pisah = explode ("-", $dateall);
|
||||
$awal = date("Y-m-d", strtotime($pisah[0]));
|
||||
$akhir = date("Y-m-d", strtotime($pisah[1]));
|
||||
}else{
|
||||
$awal = date("Y-m-d");
|
||||
$akhir = date("Y-m-d");
|
||||
}
|
||||
$data['awal'] = $awal;
|
||||
$data['akhir'] = $akhir;
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$datapen = $this->m_simrs_report_lp->pasienpenunjang();
|
||||
$this->load->vars('datapen', $datapen);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function viewpasienpenunjang($idxdaftar,$nomr){
|
||||
$data['title'] = "SIMRS - VIEW DATA HASIL PENUNJANG PASIEN";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/pasienpenunjang/form_pasienpenunjang";
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$datapas = $this->m_simrs_report_lp->viewpasien($idxdaftar);
|
||||
$this->load->vars('datapas', $datapas);
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$dataro = $this->m_simrs_report_lp->dataradiologi($nomr);
|
||||
$this->load->vars('dataro', $dataro);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
|
||||
public function pencarianpasien(){
|
||||
$data['title'] = "SIMRS - PENCARIAN HASIL PENUNJANG PASIEN";
|
||||
$data['parent'] = $this->parent;
|
||||
$data['link'] = $this->link;
|
||||
$data['main_content'] = $this->maincontent."/pasienpenunjang/v_pencarianpasien";
|
||||
|
||||
if(isset($_POST['norekamedik'])){
|
||||
$norekamedik = $this->input->post('norekamedik');
|
||||
}else{ $norekamedik = ""; }
|
||||
|
||||
if(isset($_POST['namapasien'])){
|
||||
$namapasien = $this->input->post('namapasien');
|
||||
}else{ $namapasien = ""; }
|
||||
|
||||
if(isset($_POST['dokterdpjp'])){
|
||||
$dokterdpjp = $this->input->post('dokterdpjp');
|
||||
}else{ $dokterdpjp = ""; }
|
||||
|
||||
$data['norekamedik']= $norekamedik;
|
||||
$data['namapasien'] = $namapasien;
|
||||
$data['dokter'] = $dokterdpjp;
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$datapen = $this->m_simrs_report_lp->pencarianpasienpenunjang();
|
||||
$this->load->vars('datapen', $datapen);
|
||||
|
||||
$this->load->model('m_simrs_report_lp');
|
||||
$dokterdpjp = $this->m_simrs_report_lp->dokterdpjp();
|
||||
$this->load->vars('dokterdpjp', $dokterdpjp);
|
||||
|
||||
$this->load->view('includes/template', $data);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -13,7 +13,7 @@ class Lp_saturssa extends CI_Controller {
|
||||
public $link = 'Lp_saturssa';
|
||||
public $index = 'index.php/Lp_saturssa';
|
||||
public $maincontent = 'saturssa/';
|
||||
public $idmenu = '43';
|
||||
public $idmenu = '7';
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ class Lp_simrs_report extends CI_Controller {
|
||||
public $link = 'Lp_simrs_report';
|
||||
public $index = 'index.php/Lp_simrs_report';
|
||||
public $maincontent = 'simrs/report/';
|
||||
public $idmenu = '1';
|
||||
public $idmenu = '7';
|
||||
|
||||
//-----------start variables for check action access----------//
|
||||
|
||||
|
||||
Reference in New Issue
Block a user