Exemple #1
0
 function index()
 {
     $this->data['title'] = 'Dashboard DJA';
     $this->data['dept'] = $this->mdja->get_dept();
     $this->data['kddept'] = null;
     $this->data['kdunit'] = null;
     $this->data['kdprogram'] = null;
     if (isset($_POST['kddept']) && $_POST['kddept'] != 0) {
         $this->data['kddept'] = $_POST['kddept'];
         $this->data['unit'] = $this->mdja->get_unit($this->data['kddept']);
     }
     if (isset($_POST['kddept']) && $_POST['kddept'] != 0 && (isset($_POST['kdunit']) && $_POST['kdunit'] != 0)) {
         $this->data['kddept'] = $_POST['kddept'];
         $this->data['kdunit'] = $_POST['kdunit'];
         $this->data['program'] = $this->mdja->get_program($this->data['kddept'], $this->data['kdunit']);
     }
     if (isset($_POST['kddept']) && $_POST['kddept'] != 0 && (isset($_POST['kdunit']) && $_POST['kdunit'] != 0) && (isset($_POST['kdprogram']) && $_POST['kdprogram'] != 0)) {
         $this->data['kddept'] = $_POST['kddept'];
         $this->data['kdunit'] = $_POST['kdunit'];
         $this->data['kdprogram'] = $_POST['kdprogram'];
         //$this->data['program'] = $this->mdja->get_program($this->data['kddept'], $this->data['kdunit']);
     }
     $this->data['penyerapan'] = get_penyerapan('2011', $this->data['kddept'], $this->data['kdunit'], $this->data['kdprogram']);
     $this->data['konsistensi'] = get_konsistensi('2011', $this->data['kddept'], $this->data['kdunit'], $this->data['kdprogram']);
     $this->data['keluaran'] = get_keluaran('2011', $this->data['kddept'], $this->data['kdunit'], $this->data['kdprogram']);
     $this->data['efisiensi'] = get_efisiensi('2011', $this->data['kddept'], $this->data['kdunit'], $this->data['kdprogram']);
     $this->data['template'] = 'dja/index';
     $this->load->view('index', $this->data);
 }
Exemple #2
0
 function index()
 {
     $this->data['title'] = 'Dashboard Satker';
     $this->data['penyerapan'] = get_penyerapan('2011', $this->data['kddept'], $this->data['kdunit']);
     $this->data['konsistensi'] = get_konsistensi('2011', $this->data['kddept'], $this->data['kdunit']);
     $this->data['keluaran'] = get_keluaran('2011', $this->data['kddept'], $this->data['kdunit']);
     $this->data['efisiensi'] = get_efisiensi('2011', $this->data['kddept'], $this->data['kdunit']);
     $this->data['template'] = 'satker/index';
     $this->load->view('index', $this->data);
 }