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


PHP grocery_CRUD::unset_delete方法代码示例

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


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

示例1: 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_disposition');
        $crud->set_subject('Disposition');
        $crud->required_fields('NAME');
        $crud->columns('NAME', 'DISABLE');
        $crud->fields('NAME');
        // $crud->unset_add();
        // $crud->unset_edit();
        $crud->unset_delete();
        $crud->set_lang_string('insert_success_message', 'Your data has been successfully stored into the database.<br/>Please wait while you are redirecting to the list page.
			<script type="text/javascript">
			window.location = "' . site_url('admin/disposition') . '";
			</script>
			<div style="display:none">
			');
        $crud->callback_after_insert(array($this, 'disposition_generation'));
        $output = $crud->render();
        // $this->grocery_crud->set_table('ips_login');
        // $output = $this->grocery_crud->render();
        $this->_example_output($output);
    }
开发者ID:selva316,项目名称:trackingtool,代码行数:28,代码来源:disposition.php

示例2: enfants_window

 public function enfants_window($id)
 {
     $this->id_demande = $id;
     try {
         $crud = new grocery_CRUD();
         $crud->set_language("french");
         $crud->set_theme('bootstrap');
         $crud->where('id_from_demande', $this->id_demande);
         $crud->set_table('sos_enfants');
         $crud->set_subject('Enfant');
         $crud->unset_add();
         $crud->unset_delete();
         $crud->field_type('id_from_demande', 'hidden', $this->id_demande);
         $crud->unset_edit_fields('id_from_kids');
         $crud->set_relation('id_from_kids', 'sos_kids', "id_kid");
         $crud->set_relation('recu', 'sos_gen_recu', "name_recu", null, 'name_recu ASC');
         $crud->set_relation_n_n('accompagniement', 'sos_relation_accompagniement_kid', 'sos_gen_accompagniement_kid', 'id_from_enfants', 'id_from_accompagniement_kid', 'name_accompagniement_kid');
         $crud->set_relation_n_n('activite', 'sos_relation_activite_kid', 'sos_gen_activite_kid', 'id_from_enfants', 'id_from_activite_kid', 'name_activite_kid');
         $crud->columns('enfant', 'recu', 'activite', 'accompagniement', 'commentaire_enfant');
         //$crud->display_as('id_from_kids', 'Enfants');
         $crud->display_as('accompagniement', 'Accompagnement');
         $crud->display_as('activite', 'Activité');
         $crud->display_as('recu', 'Reçu');
         $crud->display_as('id_from_kids', 'Enfant(s)');
         $crud->display_as('commentaire_enfant', 'Commentaire enfant');
         $crud->callback_column('accompagniement', array($this, 'accompagniement'));
         $crud->callback_column('activite', array($this, 'activite'));
         $crud->callback_column('enfant', array($this, 'enfant'));
         $crud->required_fields('recu');
         $output = $crud->render();
         $this->db->where('id_demande', $this->id_demande);
         $query = $this->db->get('sos_demande');
         if ($query->num_rows == 1) {
             $row_demande = $query->row();
         }
         //   $my_demande = $row_demande->id_from_demande;
         $menu = new stdClass();
         $menu->n3 = true;
         //$menu->id_1 = $my_demande;
         $menu->id = $row_demande->id_from_femme;
         $menu->status = $this->session->userdata('status');
         $this->db->where('id_femme', $menu->id);
         $query = $this->db->get('sos_femme');
         if ($query->num_rows == 1) {
             $row_femme = $query->row();
         }
         $header = $this->navigation->home_f($menu) . ' ' . '<p><pre>' . $row_femme->prenom . ' ' . $row_femme->nom . ' ' . $row_femme->nom_marital . '</pre></p>';
         $data = array('output' => $output, 'header' => $header);
         $this->_example_output($data);
     } catch (Exception $e) {
         show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
     }
 }
开发者ID:simplonco,项目名称:sos_femmes,代码行数:53,代码来源:enfants.php

示例3: 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

示例4: index

 public function index()
 {
     try {
         // General
         $crud = new grocery_CRUD();
         $crud->set_language("french");
         $crud->set_theme('bootstrap');
         $crud->set_table('sos_gen_service');
         $crud->set_subject('Service');
         //relations
         //Master/child relations
         //Visual
         $crud->columns('id_service', 'nom_service');
         $crud->display_as('nom_service', 'Service');
         $crud->order_by('nom_service', 'desc');
         //unsets
         //Requireds
         $crud->required_fields('nom_service');
         //Callbacks
         //field Types
         // Actions
         $crud->unset_delete();
         // Renders
         $output = $crud->render();
         $menu = new stdClass();
         $menu->n1 = true;
         $menu->lien3_6 = false;
         $menu->status = $this->session->userdata('status');
         $header = $this->navigation->home_f($menu);
         $data = array('output' => $output, 'header' => $header);
         $this->_example_output($data);
     } catch (Exception $e) {
         show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
     }
 }
开发者ID:simplonco,项目名称:sos_femmes,代码行数:35,代码来源:service.php

示例5: configuracion

 function configuracion()
 {
     $crud = new grocery_CRUD();
     $crud->set_table('usuarios');
     $crud->set_theme('datatables');
     $crud->set_language('spanish');
     $crud->set_subject('Usuario');
     $state = $crud->getState();
     $state_info = $crud->getStateInfo();
     if ($state == 'list' || $state == 'success') {
         redirect('user/dashboard');
     } else {
         $crud->unset_add();
         $crud->unset_delete();
         $crud->field_type('usuario', 'readonly');
         $crud->field_type('clave', 'password');
         $crud->field_type('id_cliente', 'hidden');
         $crud->field_type('id_nivel', 'hidden');
         $crud->field_type('row_id', 'hidden');
         $crud->field_type('id_estatus', 'hidden');
         $crud->set_field_upload('foto', 'assets/uploads/users/');
         $output = $crud->render();
         $data['titulo'] = "CONFIGURACION DE USUARIO";
         $this->load->view('include/head', $output);
         $this->load->view('include/header', $data);
         $this->load->view('admin/output');
         $this->load->view('include/footer', $data);
         $this->load->view('admin/librerias');
     }
 }
开发者ID:Juchiha,项目名称:mandala,代码行数:30,代码来源:user.php

示例6: index

 public function index($nombre_tabla = null)
 {
     $this->is_login();
     $id_grupo_usuario = (array) reset($this->ion_auth->get_users_groups($this->user->id)->result());
     // donde 1 es admin, 2 es ministerio, 3 el coordinador, 4 digitador, 5 externo
     if (in_array($id_grupo_usuario['id'], array(1, 2, 3, 4))) {
         if (!empty($nombre_tabla)) {
             // correr el procedimiento almacenado
             $this->load->model('tabla_model');
             $this->tabla_model->correr_procedimiento_almacenado($nombre_tabla);
             try {
                 $crud = new grocery_CRUD();
                 $crud->set_theme('flexigrid-inline-edit');
                 $crud->set_table($nombre_tabla);
                 // $crud->unset_edit();
                 $crud->unset_delete();
                 $output = $crud->render();
                 $this->_example_output($output);
             } catch (Exception $e) {
                 echo "el nombre de tabla no es valida";
             }
         } else {
             redirect('/', 'refresh');
         }
     } else {
         redirect('/', 'refresh');
     }
 }
开发者ID:Jarvizx,项目名称:app-m,代码行数:28,代码来源:tabla.php

示例7: 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

示例8: perfil

 function perfil()
 {
     $crud = new grocery_CRUD();
     $crud->where('row_id', $this->session->userdata('user_id'));
     $crud->set_table('usuarios');
     $crud->set_theme('datatables');
     $crud->set_language('spanish');
     $crud->set_subject('Usuario');
     $state = $crud->getState();
     if ($state == 'list' || $state == 'success') {
         redirect('user/dashboard');
     } else {
         $crud->unset_add();
         $crud->unset_delete();
         $crud->field_type('usuario', 'readonly');
         $crud->field_type('clave', 'password');
         $crud->field_type('id_nivel', 'hidden');
         $crud->field_type('row_id', 'hidden');
         $crud->field_type('id_estatus', 'hidden');
         $crud->set_field_upload('foto', 'assets/uploads/users/');
         $output = $crud->render();
         $data['titulo'] = "Configuración de Usuario";
         $this->load->view('include/head');
         $this->load->view('include/header');
         $this->load->view('include/sidebar');
         $this->load->view('admin/main', $data);
         $this->load->view('admin/grocery_crud', $output);
         $this->load->view('include/footer');
     }
 }
开发者ID:scortina,项目名称:kolor,代码行数:30,代码来源:user.php

示例9: index

 public function index()
 {
     $crud = new grocery_CRUD();
     $crud->set_theme('flexigrid');
     $crud->set_table('booking_refunds');
     $crud->set_subject('Booking Refund');
     $crud->unset_add();
     $crud->unset_delete();
     //        $crud->unset_columns('booking_ref_no');
     $crud->unset_fields('booking_ref_no');
     $crud->field_type('refund_status', 'dropdown', array('1' => 'Requested', '0' => 'Rejected', '2' => 'Refunded'));
     //        $crud->field_type('refund_status', 'dropdown', array('1'=>'Requested', '0'=>'Rejected', '2' => 'Refunded'));
     //        $crud->callback_column('refund_status', function($value, $primary_key){
     //            $status = array('1'=>'Requested', '0'=>'Rejected', '2' => 'Refunded');
     //            return $status[$value];
     //        });
     $crud->field_type('item_type', 'readonly');
     $crud->callback_column('item_type', function ($value, $primary_key) {
         return ucfirst($value);
     });
     $crud->callback_edit_field('item_type', function ($value, $primary_key) {
         return ucfirst($value);
     });
     //        $crud->callback_before_update(array($this, 'modified_date_callback'));
     $crud->callback_column('booking_ref_no', array($this, '_show_invoice'));
     $output = $crud->render();
     $data = array('main_content' => 'list', 'output' => $output, 'pagetitle' => 'Booking Refund', 'pagedesc' => 'Booking Refund', 'contenttitle' => 'Booking Refund List Records');
     $this->load->view('gc_admin_wrapper', $data);
 }
开发者ID:beingjungshahi,项目名称:theexcursionnepal,代码行数:29,代码来源:refund.php

示例10:

 function timeslots_categories_management()
 {
     $crud = new grocery_CRUD();
     $crud->set_table('bloques_categorias');
     $crud->set_subject('Categoria');
     $crud->columns('nombre', 'ab');
     $crud->unset_delete();
     $output = $crud->render();
     $this->_output_crud($output, 'Categorias');
 }
开发者ID:joercamu,项目名称:indicadores-produccion,代码行数:10,代码来源:timeslots.php

示例11:

 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

示例12: orders_management

 public function orders_management()
 {
     $crud = new grocery_CRUD();
     $crud->set_relation('customerNumber', 'customers', '{contactLastName} {contactFirstName}');
     $crud->display_as('customerNumber', 'Customer');
     $crud->set_table('orders');
     $crud->set_subject('Order');
     $crud->unset_add();
     $crud->unset_delete();
     $output = $crud->render();
     $this->_example_output($output);
 }
开发者ID:tibioltean,项目名称:pcireg,代码行数:12,代码来源:~Examples.php

示例13:

 function shift_management()
 {
     $crud = new grocery_CRUD();
     $crud->set_table('turnos_tipos');
     $crud->set_subject('Trunos');
     $crud->columns('nombre', 'desde', 'hasta');
     $crud->display_as('desde', 'Desde 24 Hrs');
     $crud->display_as('hasta', 'Hasta 24 Hrs');
     $crud->required_fields('nombre', 'desde', 'hasta');
     $crud->unset_delete();
     $output = $crud->render();
     $this->_output_crud($output, 'Turnos');
 }
开发者ID:joercamu,项目名称:indicadores-produccion,代码行数:13,代码来源:shift.php

示例14: 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

示例15: 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


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