Пример #1
0
 function __construct()
 {
     parent::__construct();
     saya_masuk();
     saya_admin();
     $this->load->model('m_category', 'category');
 }
Пример #2
0
 function __construct()
 {
     parent::__construct();
     saya_masuk();
     saya_admin();
     $this->load->model('m_page', 'page');
 }
Пример #3
0
 function __construct()
 {
     parent::__construct();
     saya_masuk();
     saya_admin();
     $this->load->model('m_comment', 'com');
 }
Пример #4
0
 function __construct()
 {
     parent::__construct();
     saya_masuk();
     saya_admin();
     $this->load->model('m_slideshow', 'slide');
 }
Пример #5
0
 function __construct()
 {
     parent::__construct();
     saya_masuk();
     saya_admin();
     $this->load->model('m_media', 'media');
 }
Пример #6
0
 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');
     }
 }
Пример #7
0
 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');
     }
 }
Пример #8
0
 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');
     }
 }
Пример #9
0
 function __construct()
 {
     parent::__construct();
     saya_masuk();
     saya_admin();
 }