当前位置: 首页>>代码示例>>PHP>>正文


PHP grocery_CRUD::unset_edit方法代码示例

本文整理汇总了PHP中grocery_CRUD::unset_edit方法的典型用法代码示例。如果您正苦于以下问题:PHP grocery_CRUD::unset_edit方法的具体用法?PHP grocery_CRUD::unset_edit怎么用?PHP grocery_CRUD::unset_edit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在grocery_CRUD的用法示例。


在下文中一共展示了grocery_CRUD::unset_edit方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: index

 public function index()
 {
     $bol_del_before_date = $this->m_conndb->dateBeforeDelete();
     try {
         $crud = new grocery_CRUD();
         $crud->set_theme('datatables');
         $crud->set_table('tempahan');
         $crud->set_subject('Booking Room');
         $crud->set_relation('m_id', 'masa', 'm_desc');
         $crud->set_relation('bm_id', 'bilik_meeting', 'bm_desc');
         $crud->display_as('t_datereg', 'Date Reg.')->display_as('t_date', 'Book Date')->display_as('t_day', 'Book Day')->display_as('m_id', 'Time')->display_as('t_perkara', 'Club / Item')->display_as('bm_id', 'Meeting Room')->display_as('t_status', 'Status');
         $crud->columns('t_date', 't_day', 'm_id', 't_perkara', 'bm_id');
         $crud->fields('t_date', 'm_id', 't_perkara', 'bm_id', 't_datereg', 't_day');
         $crud->field_type('t_datereg', 'hidden');
         $crud->field_type('t_day', 'hidden');
         $crud->required_fields('t_date', 'm_id', 't_perkara', 'bm_id');
         $umaq = $this->uri->segment(3);
         if (!($this->uri->segment(3) && $umaq == 'umaqkacak')) {
             $crud->unset_delete();
             $crud->unset_edit();
         }
         $crud->callback_before_insert(array($this, 'setAutoTempahan'));
         $output = $crud->render();
         $this->viewpage('v_bookroom', $output);
     } catch (Exception $e) {
         show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
     }
 }
开发者ID:umaqgeek,项目名称:book_meeting_room,代码行数:28,代码来源:login.php

示例2: index

 public function index()
 {
     //        $data = array(
     //            'main_content' => 'clients_wishlist',
     //            'output' => $this->db->get_where('clients_wishlist', array('wish_user' => $this->ion_auth->get_user_id()))->result(),
     //            'pagetitle' => 'Wishlist',
     //            'pagedesc' => 'Wishlist',
     //            'contenttitle' => 'Wishlist  Records',
     //            'left_menu' => 'clients_menu'
     //        );
     //        $this->load->view('gc_client_wrapper', $data);
     $this->load->library('grocery_CRUD');
     //        $this->upload_path = '../assets/uploads/' . 'packages';
     //        $this->wrapper = 'gc_admin_wrapper';
     $this->load->model('generic_model');
     $crud = new grocery_CRUD();
     $crud->set_theme('flexigrid');
     $crud->set_table('clients_wishlist');
     $crud->set_subject('Client Wishlist');
     $crud->unset_add();
     $crud->unset_edit();
     $crud->unset_read();
     $crud->where('wish_user', $this->ion_auth->get_user_id());
     $crud->display_as('wish_title', 'Wish Title');
     $crud->display_as('wish_date', 'Wish Date');
     $crud->callback_column('wish_title', array($this, 'set_change_status'));
     $crud->unset_columns('wish_url', 'wish_user');
     $output = $crud->render();
     $data = array('main_content' => 'list', 'output' => $output, 'pagetitle' => 'Client Wishlist', 'pagedesc' => 'Client Wishlist', 'contenttitle' => 'Wishlist Records', 'left_menu' => 'clients_menu');
     $this->load->view('gc_admin_wrapper', $data);
 }
开发者ID:beingjungshahi,项目名称:theexcursionnepal,代码行数:31,代码来源:wishlist.php

示例3: index

 public function index()
 {
     //$data['main_content'] = 'login_form';
     //$this->load->view('includes/template',$data);
     //$this->load->view('admin/configuration');
     //$this->load->view('admin/homepage');
     $crud = new grocery_CRUD();
     $crud->set_theme('datatables');
     $crud->set_table('ips_ordertracking');
     $crud->set_subject('Sales Tracking');
     $crud->required_fields('NAME');
     $crud->columns('ordertrackingid', 'orderid', 'name', 'orderdate');
     // $crud->columns('fullfillment','orderdate','orderid','returnid','itemrece','caseid','product','status');
     //$crud->fields('ordertrackingid','orderid','name','orderdate');
     $crud->callback_column('ordertrackingid', array($this, '_callback_webpage_url'));
     $crud->callback_column('orderdate', array($this, '_callback_dateformat'));
     // $crud->fields('NAME');
     // $crud->unset_add();
     $crud->unset_edit();
     $crud->unset_delete();
     // $crud->callback_after_insert(array($this, 'fullfillmentid_generation'));
     $output = $crud->render();
     $state = $crud->getState();
     if ($state == 'add') {
         redirect('store/addtracking');
     }
     // $this->grocery_crud->set_table('ips_login');
     // $output = $this->grocery_crud->render();
     $this->_example_output($output);
 }
开发者ID:selva316,项目名称:trackingtool,代码行数:30,代码来源:managingtrack.php

示例4:

 function stages_management()
 {
     $crud = new grocery_CRUD();
     $crud->set_table('procesos');
     $crud->set_subject('Proceso');
     $crud->unset_delete();
     $crud->unset_edit();
     $output = $crud->render();
     $this->_output_crud($output, 'Procesos');
 }
开发者ID:joercamu,项目名称:indicadores-produccion,代码行数:10,代码来源:stages.php

示例5: listarNeumonias

 public function listarNeumonias()
 {
     $sub = $this->frontend_model->buscarDiresas();
     $subr = array();
     foreach ($sub as $dato) {
         $subr[$dato->codigo] = $dato->nombre;
     }
     $est = $this->frontend_model->listaEstablec();
     $estab = array();
     foreach ($est as $dato) {
         $estab[$dato->cod_est] = $dato->raz_soc;
     }
     $crud = new grocery_CRUD();
     $crud->set_table('neumonias');
     $crud->columns('diresa', 'e_salud', 'apepat', 'apemat', 'nombres', 'sexo', 'fecha_reg', 'fecha_def', 'usuario');
     $crud->set_subject('Ficha');
     $nivelUsuario = $this->session->userdata("nivel");
     switch ($nivelUsuario) {
         case '8':
             $where = array('e_salud' => $this->session->userdata("establecimiento"));
             $crud->where($where);
             break;
         case '7':
             $where = array('microred' => $this->session->userdata("microred"), 'red' => $this->session->userdata("red"), 'diresa' => $this->session->userdata("diresa"));
             $crud->where($where);
             break;
         case '6':
             $where = array('red' => $this->session->userdata("red"), 'diresa' => $this->session->userdata("diresa"));
             $crud->where($where);
             break;
         case '5':
             $where = array('diresa' => $this->session->userdata("diresa"));
             $crud->where($where);
             break;
     }
     $crud->field_type('sexo', 'dropdown', array('M' => 'Masculino', 'F' => 'Femenino'));
     $crud->field_type('diresa', 'dropdown', $subr);
     $crud->field_type('e_salud', 'dropdown', $estab);
     $crud->display_as("apepat", "Apellido Paterno");
     $crud->display_as("apemat", "Apellido Materno");
     $crud->display_as("fecha_reg", "Registro");
     $crud->display_as("fecha_def", "Defunción");
     $crud->display_as("e_salud", "Establecimiento");
     $crud->unset_add();
     $crud->unset_edit();
     $crud->unset_read();
     $crud->unset_export();
     //$crud->unset_print();
     $crud->callback_after_delete(array($this, 'log_usuario_before_delete'));
     $crud->add_action_peru('', '', 'RegfichaNeum', 'add-icon');
     $crud->add_action('Modificar Ficha', '', 'modulos3/ModfichaNeum', 'edit-icon');
     $crud->add_action('Ver Ficha', '', 'modulos3/VerfichaNeum', 'read-icon');
     $output = $crud->render();
     $this->_example_output($output);
 }
开发者ID:alejandrob1519,项目名称:nwsp,代码行数:55,代码来源:modulos3.php

示例6: autogenerated_tree

 public function autogenerated_tree()
 {
     $this->data['page_title'] = 'Autogenerated Tree';
     $crud = new grocery_CRUD();
     $crud->set_table('autogeneratetree');
     $crud->set_subject('attributes');
     $crud->set_relation('parent_id', 'autogeneratetree', 'nodename');
     $crud->unset_edit()->unset_delete()->unset_read();
     $this->data['output'] = $crud->render();
     $this->render('admin/crud_view');
 }
开发者ID:paramjot-sarao,项目名称:Narration-web,代码行数:11,代码来源:Autogentree.php

示例7: ventas

 function ventas()
 {
     $crud = new grocery_CRUD();
     $crud->set_table('ventas');
     $crud->set_relation('producto', 'productos', 'item_name');
     $crud->set_relation('unitario', 'productos', 'precio');
     $crud->display_as('valor', 'Total');
     $crud->unset_add();
     $crud->unset_delete();
     $crud->unset_edit();
     $output = $crud->render();
     $this->load->view('main/ventas', $output);
 }
开发者ID:tellurion-project,项目名称:POS-PHP,代码行数:13,代码来源:main.php

示例8: listar_transito

 public function listar_transito()
 {
     /*$establecimiento = $this->mantenimiento_transito->listarEstablecimiento();
     
     		foreach($establecimiento as $dato){
     			$est[$dato->cod_est] = $dato->raz_soc;
     		} */
     $crud = new grocery_CRUD();
     //$crud->set_theme('bootstrap');
     $crud->set_table('trans_lesacctra');
     $crud->columns('id', 'ano', 'ap_nm1', 'ap_nm2', 'nom_les', 'edad', 'tipo_edad', 'diresa', 'eess');
     $crud->set_subject('Ficha Transito');
     $nivelUsuario = $this->session->userdata("nivel");
     switch ($nivelUsuario) {
         case '8':
             $where = array('cod_eess' => $this->session->userdata("establecimiento"));
             $crud->where($where);
             break;
         case '7':
             //$where = "where cod_eess in(select cod_est FROM renace where subregion = '$diresa' and red = '$red' and microred = '$microred')";
             $where = array('microred' => $this->session->userdata("microred"), 'red' => $this->session->userdata("red"), 'cod_dir' => $this->session->userdata("diresa"));
             $crud->where($where);
             break;
         case '6':
             //$where = "where cod_eess in(select cod_est FROM renace where subregion = '$diresa' and red = '$red')";
             $where = array('red' => $this->session->userdata("red"), 'cod_dir' => $this->session->userdata("diresa"));
             $crud->where($where);
             break;
         case '5':
             $where = array('cod_dir' => $this->session->userdata("diresa"));
             $crud->where($where);
             break;
     }
     //$crud->field_type('establec', 'dropdown', $est);
     $crud->display_as("id", "ID")->display_as("ano", "AÑO")->display_as("ap_nm1", "APELLIDO PATERNO")->display_as("ap_nm2", "APELLIDO MATERNO")->display_as("nom_les", "NOMBRES")->display_as("edad", "EDAD")->display_as("tipo_edad", "TIPO")->display_as("diresa", "DIRESA")->display_as("eess", "ESTABLECIENTO DE SALUD");
     $crud->unset_add();
     $crud->unset_edit();
     $crud->unset_read();
     $crud->unset_print();
     $crud->unset_export();
     $crud->unset_delete();
     $crud->order_by('id', 'desc');
     $crud->add_action('Eliminar Ficha', base_url() . 'assets/images/close.png', 'modulotransito/borrarFichatransito', 'borrar-icon');
     $crud->add_action('Vista previa', '', 'modulotransito/ver_ficha_transito', 'read-icon');
     $crud->add_action('Editar Ficha Transito', '', 'modulotransito/modificacion_transito', 'edit-icon');
     $output = $crud->render();
     $usuario = $this->session->userdata("usuario");
     $accion = 'Listar Casos Accidentes de Transito';
     $this->login_model->auditoriaOperador($usuario, $accion);
     $this->layout->view('listar_transito', $output);
 }
开发者ID:alejandrob1519,项目名称:nwsp,代码行数:51,代码来源:modulotransito.php

示例9: index

 public function index()
 {
     $crud = new grocery_CRUD();
     $crud->set_theme('flexigrid');
     $crud->set_table('ratings');
     $crud->set_subject('Ratings');
     $crud->display_as('rating_id', 'Package / Hotel Name');
     $crud->callback_column('rating_id', array($this, 'set_package_or_hotel'));
     $crud->unset_add();
     $crud->unset_edit();
     $crud->unset_delete();
     $output = $crud->render();
     $data = array('main_content' => 'list', 'output' => $output, 'pagetitle' => 'Ratings', 'pagedesc' => 'Ratings');
     $this->load->view('gc_admin_wrapper', $data);
 }
开发者ID:beingjungshahi,项目名称:theexcursionnepal,代码行数:15,代码来源:revo.php

示例10: history

 public function history()
 {
     $crud = new grocery_CRUD();
     $crud->set_table('pengiriman');
     // $crud->columns('nama','username','email');
     $crud->set_relation('id_member', 'members', 'username');
     $crud->display_as('id_member', 'Username');
     $crud->unset_export();
     $crud->unset_print();
     $crud->unset_add();
     $crud->unset_delete();
     $crud->unset_edit();
     $output = $crud->render();
     $output->title = 'History Pengiriman';
     $this->template->load('template/template_main', 'admin/history_pengiriman', $output);
 }
开发者ID:anggakes,项目名称:permatanetwork,代码行数:16,代码来源:Pengiriman.php

示例11: suratperunit

 public function suratperunit()
 {
     $crud = new grocery_CRUD();
     $crud->set_table('distribusi');
     $crud->where('id_unit', $this->uri->segment(3));
     $crud->set_primary_key('id_unit', 'distribusi');
     $crud->set_relation('id_unit', 'unit', 'namaGroup');
     $crud->set_relation('id_surat', 'surat', 'nomorSurat');
     $crud->columns('id_surat');
     $crud->display_as('id_surat', 'nomor surat');
     $crud->unset_add();
     $crud->unset_edit();
     //$crud->columns('nomorSurat','perihal','tanggal');
     $output = $crud->render();
     $this->_outputs($output);
 }
开发者ID:bondeto,项目名称:persuratanBasic-CI,代码行数:16,代码来源:frontPage.php

示例12: createtable

 public function createtable($db)
 {
     $this->db = $this->load->database($db, true);
     $crud = new grocery_CRUD();
     $crud->set_table('alert_logger');
     $crud->set_primary_key('id');
     $crud->columns('alert', 'all_alg_data', 'all_alg_file_data', 'toa', 'alert_name', 'status', 'del');
     $crud->display_as('alert', 'Alert')->display_as('all_alg_file_data', 'ALG File.')->display_as('all_alg_data', 'ALG Ref.')->display_as('toa', 'Date')->display_as('alert_name', 'Name')->display_as('del', 'Deletion date');
     $crud->unset_add();
     $crud->unset_edit();
     $crud->unset_delete();
     $crud->callback_column('status', array($this, '_column_status'));
     $output = $crud->render();
     $this->db->close();
     $this->_example_output($output);
 }
开发者ID:nikeshydav,项目名称:dts,代码行数:16,代码来源:Logger.php

示例13: questions

 public function questions()
 {
     $this->data['page_title'] = 'Questions';
     $crud = new grocery_CRUD();
     $crud->set_table('questions');
     $crud->set_subject('Questions');
     $crud->fields('question_name', 'metadescription', 'created_at', 'updated_at', 'scale_id', 'group', 'questionnaire_id');
     $crud->set_relation('scale_id', 'scales', 'name');
     $crud->set_relation('questionnaire_id', 'questionnaireone', 'questionnaire_name');
     //for foreign key
     $crud->unset_edit()->unset_delete()->unset_read();
     $crud->field_type('created_at', 'hidden');
     $crud->field_type('updated_at', 'hidden');
     $crud->unset_texteditor('question_name', 'full_text');
     $crud->unset_texteditor('metadescription', 'full_text');
     $this->data['output'] = $crud->render();
     $this->render('admin/crud_view');
 }
开发者ID:paramjot-sarao,项目名称:Narration-web,代码行数:18,代码来源:Questionnaires.php

示例14: receipts

 function receipts()
 {
     session_start();
     if (!is_null($_SESSION['fromLogin']) && in_array($_SESSION['email'], array('nationalminerals52@gmail.com', 'mesaifee52@gmail.com', 'bscalcuttawala@gmail.com', 'murtaza52@gmail.com', 'murtaza.sh@gmail.com', 'yusuf4u52@gmail.com', 'tzabuawala@gmail.com', 'mustafamnr@gmail.com'))) {
     } else {
         header("Location: http://www.faizstudents.com/users/login.php");
     }
     $crud = new grocery_CRUD();
     $crud->set_theme('datatables');
     $crud->set_table('receipts');
     if ($_SESSION['email'] == 'bscalcuttawala@gmail.com') {
         $crud->unset_edit();
         $crud->unset_delete();
     }
     $crud->columns('Receipt_No', 'Thali_No', 'Amount', 'Date');
     $output = $crud->render();
     $this->_example_output($output);
 }
开发者ID:yusuf4u52,项目名称:faiz-static,代码行数:18,代码来源:Examples.php

示例15: users

 function users($page)
 {
     try {
         $crud = new grocery_CRUD();
         $crud->set_theme('datatables');
         $crud->set_table('users');
         $crud->set_relation('ut_id', 'user_type', 'ut_desc');
         $crud->set_relation('u_status', 'stats', 's_desc');
         $crud->display_as('u_fullname', 'Full Name')->display_as('u_username', 'Username')->display_as('u_password', 'Password')->display_as('ut_id', 'User Type')->display_as('u_status', 'Status');
         $crud->unset_add();
         $crud->unset_edit();
         $crud->unset_delete();
         $output = $crud->render();
         $this->_example_output($page, $output);
     } catch (Exception $e) {
         show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
     }
 }
开发者ID:umaqgeek,项目名称:bns_system,代码行数:18,代码来源:admin.php


注:本文中的grocery_CRUD::unset_edit方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。