当前位置: 首页>>代码示例>>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;未经允许,请勿转载。