當前位置: 首頁>>代碼示例>>PHP>>正文


PHP grocery_CRUD::unset_save方法代碼示例

本文整理匯總了PHP中grocery_CRUD::unset_save方法的典型用法代碼示例。如果您正苦於以下問題:PHP grocery_CRUD::unset_save方法的具體用法?PHP grocery_CRUD::unset_save怎麽用?PHP grocery_CRUD::unset_save使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在grocery_CRUD的用法示例。


在下文中一共展示了grocery_CRUD::unset_save方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: persutujuan_daftar_kegiatan_berkas

 public function persutujuan_daftar_kegiatan_berkas()
 {
     try {
         $crud = new grocery_CRUD();
         $state = $crud->getState();
         $id_kegiatan_transaksi = $this->uri->segment(3);
         $crud->where('id_kegiatan_transaksi', $id_kegiatan_transaksi);
         $crud->set_table('tbl_kegiatan_transaksi_berkas');
         $crud->set_subject('Daftar Berkas Pegawai');
         $crud->set_field_upload('berkas', 'assets/uploads/berkas');
         $crud->fields('no', 'judul', 'berkas', 'keterangan');
         $crud->columns('no', 'judul', 'berkas', 'keterangan');
         $crud->order_by('id_kegiatan_transaksi_berkas', 'desc');
         //$crud->change_field_type('nama_depan', 'readonly');
         $crud->unset_save();
         $crud->unset_add();
         $crud->unset_edit();
         $crud->unset_read();
         $crud->unset_delete();
         $sitemap = $this->get_sitemap();
         $output = $crud->render($sitemap);
         $this->load->view('theme/theme_pegawai', $output);
     } catch (Exception $e) {
         show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
     }
 }
開發者ID:selametsubu,項目名稱:e-ppid,代碼行數:26,代碼來源:penilai.php

示例2: konten_statis

 public function konten_statis()
 {
     try {
         $crud = new grocery_CRUD();
         $crud->set_table('tbl_konten_statis');
         $crud->set_subject('Konten Statis');
         $crud->set_field_upload('gambar', 'assets/uploads/gambar');
         $crud->required_fields('judul', 'deskripsi');
         $crud->fields('nama', 'judul', 'deskripsi', 'gambar');
         $crud->columns('nama', 'judul', 'deskripsi');
         $crud->order_by('id_konten_statis', 'desc');
         $crud->unset_save();
         $crud->unset_read();
         $sitemap = $this->get_sitemap();
         $output = $crud->render($sitemap);
         $this->load->view('theme/theme_default', $output);
     } catch (Exception $e) {
         show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
     }
 }
開發者ID:selametsubu,項目名稱:e-ppid,代碼行數:20,代碼來源:admin.php

示例3: pesan

 public function pesan()
 {
     try {
         $status = $this->input->get("status");
         $crud = new grocery_CRUD();
         if (isset($status) and !empty($status)) {
             $crud->where('tbl_pertanyaan_user.status', $status);
         }
         $crud->set_table('tbl_pertanyaan_user');
         $crud->set_subject('Pesan');
         $crud->set_relation('change_by', 'tbl_user', 'email');
         $crud->set_relation('id_user', 'tbl_user', '{nama_depan} {nama_belakang}');
         $crud->required_fields('jawaban');
         $crud->fields('id_user', 'judul', 'pertanyaan', 'jawaban', 'status', 'change_by', 'change_date');
         $crud->columns('id_user', 'judul', 'pertanyaan', 'status');
         $crud->display_as("id_user", "Penanya");
         $crud->callback_before_update(array($this, 'get_change_by_callback'));
         $crud->callback_before_insert(array($this, 'get_change_by_callback'));
         $crud->callback_field('change_date', array($this, 'format_date_callback'));
         $crud->change_field_type('id_user', 'readonly');
         $crud->change_field_type('judul', 'readonly');
         $crud->change_field_type('pertanyaan', 'readonly');
         $crud->change_field_type('change_by', 'readonly');
         $crud->change_field_type('change_date', 'readonly');
         $crud->unset_export();
         $crud->unset_print();
         $crud->unset_save();
         $crud->unset_add();
         $crud->unset_edit();
         $crud->unset_delete();
         $crud->order_by('id_pertanyaan_user', 'desc');
         $sitemap = $this->get_sitemap();
         $output = $crud->render($sitemap);
         $this->load->view('theme/theme_pegawai', $output);
     } catch (Exception $e) {
         show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
     }
 }
開發者ID:selametsubu,項目名稱:simpak,代碼行數:38,代碼來源:pegawai.php

示例4: kenaikan_pangkat_daftar

 public function kenaikan_pangkat_daftar($id_user = NULL)
 {
     try {
         $crud = new grocery_CRUD();
         $crud->where('id_user', $id_user);
         $crud->set_table('tbl_user_pangkat');
         $crud->set_subject('History kenaikan Pangkat');
         $crud->unset_save();
         //$crud->unset_edit();
         //$crud->unset_delete();
         $crud->unset_read();
         //$crud->unset_add();
         $crud->order_by('change_date', 'desc');
         $sitemap = $this->get_sitemap();
         $output = $crud->render($sitemap);
         $this->load->view('theme/theme_default', $output);
     } catch (Exception $e) {
         show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
     }
 }
開發者ID:selametsubu,項目名稱:simpak,代碼行數:20,代碼來源:admin.php


注:本文中的grocery_CRUD::unset_save方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。