function __construct() { parent::__construct(); saya_masuk(); saya_admin(); $this->load->model('m_category', 'category'); }
function __construct() { parent::__construct(); saya_masuk(); saya_admin(); $this->load->model('m_page', 'page'); }
function __construct() { parent::__construct(); saya_masuk(); saya_admin(); $this->load->model('m_comment', 'com'); }
function __construct() { parent::__construct(); saya_masuk(); saya_admin(); $this->load->model('m_slideshow', 'slide'); }
function __construct() { parent::__construct(); saya_masuk(); saya_admin(); $this->load->model('m_media', 'media'); }
function delete($id) { saya_masuk(); saya_admin(); if (!$id || empty($id)) { redirect('modgallery'); } else { $this->gallery->delete_gallery($id); $this->session->set_flashdata('pesan', '<div class="alert alert-success" id="pesan"><b>Success!</b> Data has been deleted.</div>'); redirect('modgallery'); } }
function index() { saya_masuk(); saya_admin(); $this->form_validation->set_rules('adminemail', 'Email Admin', 'required|trim'); $this->form_validation->set_error_delimiters('<span class="label label-danger">', '</span>'); if ($this->form_validation->run() == FALSE) { $data['query'] = $this->reservasi->get_reservasi(); $this->load->view('head'); $this->load->view('modreservasi/reservasi_setting', $data); $this->load->view('foot'); } else { $adminemail = $this->input->post('adminemail'); $enabled = $this->input->post('enabled'); $data = array('email_admin' => $adminemail, 'enabled' => $enabled); $this->reservasi->update_reservasi($data); $this->session->set_flashdata('pesan', '<div class="alert alert-success" id="pesan"><b>Success !</b> Your Setting has been saved.</div>'); redirect('modreservasi'); } }
function hapus($id) { saya_masuk(); saya_admin(); if (!$id || empty($id)) { redirect('modproduk'); } else { $this->produk->delete_produk($id); $this->session->set_flashdata('pesan', '<div class="alert alert-success" id="pesan"><b>Berhasil!</b> Produk berhasil dihapus</div>'); redirect('modproduk'); } }
function __construct() { parent::__construct(); saya_masuk(); saya_admin(); }