protected function init() { parent::init(); $this->viewlist = "panelbackend/subjeklist"; $this->viewdetail = "panelbackend/subjekdetail"; $this->template = "panelbackend/main"; $this->layout = "panelbackend/layout1"; if ($this->mode == 'add') { $this->data['page_title'] = 'Tambah Subjek'; $this->data['edited'] = true; } elseif ($this->mode == 'edit') { $this->data['page_title'] = 'Edit Subjek'; $this->data['edited'] = true; } elseif ($this->mode == 'detail') { $this->data['page_title'] = 'Detail Subjek'; $this->data['edited'] = false; } else { $this->data['page_title'] = 'Daftar Subjek'; } $this->model = new SubjekModel(); $typesubjek = new TypeSubjekModel(); $rstypesubjek = $typesubjek->GArray(); $typesubjekarr = array('' => ''); foreach ($rstypesubjek as $row) { $typesubjekarr[$row['id_type_subjek']] = $row['nama']; } $this->data['typesubjekarr'] = $typesubjekarr; $this->pk = $this->model->pk; $this->data['pk'] = $this->pk; $this->plugin_arr = array(''); }
protected function init() { parent::init(); $this->viewlist = "panelbackend/pesanlist"; $this->viewdetail = "panelbackend/pesandetail"; $this->template = "panelbackend/main"; $this->layout = "panelbackend/layout1"; if ($this->mode == 'add') { $this->data['page_title'] = 'Tambah Pesan'; $this->data['edited'] = true; } elseif ($this->mode == 'edit') { $this->data['page_title'] = 'Edit Pesan'; $this->data['edited'] = true; } elseif ($this->mode == 'detail') { $this->data['page_title'] = 'Detail Pesan'; $this->data['edited'] = false; } else { $this->data['page_title'] = 'Daftar Pesan'; } $elearningsiswa = new SiswaModel(); $rselearningsiswa = $elearningsiswa->GArray(); $elearningsiswaarr = array('' => ''); foreach ($rselearningsiswa as $row) { $elearningsiswaarr[$row['id_siswa']] = $row['nama']; } $this->data['elearningsiswaarr'] = $elearningsiswaarr; $this->model = new PesanModel(); $this->pk = $this->model->pk; $this->data['pk'] = $this->pk; $this->plugin_arr = array('chosen'); }
protected function init() { parent::init(); $this->viewlist = "panelbackend/pengaranglist"; $this->viewdetail = "panelbackend/pengarangdetail"; $this->template = "panelbackend/main"; $this->layout = "panelbackend/layout1"; if ($this->mode == 'add') { $this->data['page_title'] = 'Tambah Pengarang'; $this->data['edited'] = true; } elseif ($this->mode == 'edit') { $this->data['page_title'] = 'Edit Pengarang'; $this->data['edited'] = true; } elseif ($this->mode == 'detail') { $this->data['page_title'] = 'Detail Pengarang'; $this->data['edited'] = false; } else { $this->data['page_title'] = 'Daftar Pengarang'; } $this->model = new PengarangModel(); $kepengarangan = new KepengaranganModel(); $rskepengarangan = $kepengarangan->GArray(); $kepengaranganarr = array('' => ''); foreach ($rskepengarangan as $row) { $kepengaranganarr[$row['id_kepengarangan']] = $row['jenis']; } $this->data['kepengaranganarr'] = $kepengaranganarr; $this->pk = $this->model->pk; $this->data['pk'] = $this->pk; $this->plugin_arr = array(''); }
function _actionIndex($page = 1) { if ($this->post['act'] == 'loginas') { $return = $this->auth->LoginAs($this->post['username']); if ($return['success']) { URL::Redirect('panelbackend'); } else { $this->SetFlash('err_msg', "Login As Gagal !"); URL::Redirect("{$this->page_ctrl}/index"); } } parent::_actionIndex($page); }
public function _actionIndex($page = 1) { if ($this->post['act'] == 'goaksi') { $user_id_str = "'" . implode("','", $this->post['user']) . "'"; switch ($this->post['jenisaksi']) { case 'aktif': $return = $this->model->Execute("update public_sys_user set is_active = '1' where user_id in ({$user_id_str})"); break; case 'unaktif': $return = $this->model->Execute("update public_sys_user set is_active = '0' where user_id in ({$user_id_str})"); break; } if ($return) { $this->SetFlash('suc_msg', "Data berhasil disimpan"); } else { $this->SetFlash('err_msg', "Data gagal disimpan"); } URL::Redirect($this->page_ctrl); } parent::_actionIndex($page); }
protected function init() { parent::init(); $this->viewlist = "panelbackend/pageonelist"; $this->viewdetail = "panelbackend/pageonedetail"; $this->template = "panelbackend/main"; $this->layout = "panelbackend/layout1"; if ($this->mode == 'add' or $this->mode == 'edit') { $this->mode = 'oneedit'; $this->data['page_title'] = 'Edit'; $this->data['edited'] = true; } else { $this->mode = 'onedetail'; $this->data['page_title'] = 'Detail'; $this->data['edited'] = false; } $this->data['mode'] = $this->mode; $this->model = new PageModel(); $this->pk = $this->model->pk; $this->data['pk'] = $this->pk; }
protected function init() { parent::init(); $this->viewlist = "panelbackend/kalaterbitlist"; $this->viewdetail = "panelbackend/kalaterbitdetail"; $this->template = "panelbackend/main"; $this->layout = "panelbackend/layout1"; if ($this->mode == 'add') { $this->data['page_title'] = 'Tambah Kalaterbit'; $this->data['edited'] = true; } elseif ($this->mode == 'edit') { $this->data['page_title'] = 'Edit Kalaterbit'; $this->data['edited'] = true; } elseif ($this->mode == 'detail') { $this->data['page_title'] = 'Detail Kalaterbit'; $this->data['edited'] = false; } else { $this->data['page_title'] = 'Daftar Kalaterbit'; } $this->model = new KalaterbitModel(); $bahasa = new BahasaModel(); $rsbahasa = $bahasa->GArray(); $bahasaarr = array('' => ''); foreach ($rsbahasa as $row) { $bahasaarr[$row['id_bahasa']] = $row['bahasa']; } $this->data['bahasaarr'] = $bahasaarr; $satuan = new SatuanModel(); $rssatuan = $satuan->GArray(); $satuanarr = array('' => ''); foreach ($rssatuan as $row) { $satuanarr[$row['id_satuan']] = $row['nama']; } $this->data['satuanarr'] = $satuanarr; $this->pk = $this->model->pk; $this->data['pk'] = $this->pk; $this->plugin_arr = array(''); }
protected function init() { parent::init(); $this->viewlist = "panelbackend/agenlist"; $this->viewdetail = "panelbackend/agendetail"; $this->template = "panelbackend/main"; $this->layout = "panelbackend/layout1"; if ($this->mode == 'add') { $this->data['page_title'] = 'Tambah Agen'; $this->data['edited'] = true; } elseif ($this->mode == 'edit') { $this->data['page_title'] = 'Edit Agen'; $this->data['edited'] = true; } elseif ($this->mode == 'detail') { $this->data['page_title'] = 'Detail Agen'; $this->data['edited'] = false; } else { $this->data['page_title'] = 'Daftar Agen'; } $this->model = new AgenModel(); $this->pk = $this->model->pk; $this->data['pk'] = $this->pk; $this->plugin_arr = array(''); }
public function __construct() { parent::__construct(); $this->init(); }
public function __construct() { parent::__construct(); $this->template = "panelbackend/main"; $this->layout = "panelbackend/layout1"; }