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


PHP grocery_CRUD::unset_print方法代码示例

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


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

示例1: listarAccesos

 public function listarAccesos()
 {
     $aplica = $this->fichas_model->buscarAplicaciones();
     $aplicacion = array();
     foreach ($aplica as $dato) {
         $aplicacion[$dato->aplicacion] = $dato->nombre;
     }
     $usuarios = $this->fichas_model->buscarUsuarios();
     $usu = array();
     foreach ($usuarios as $dato) {
         $usu[$dato->usuario] = $dato->usuario . " - " . $dato->nombres;
     }
     $crud = new grocery_CRUD();
     $crud->set_table('tablaccesos');
     $crud->columns('aplicacion', 'usuario', 'estado');
     $crud->set_subject('Acceso');
     $crud->field_type('aplicacion', 'dropdown', $aplicacion);
     $crud->field_type('usuario', 'dropdown', $usu);
     $crud->field_type('estado', 'dropdown', array('1' => 'Activo', '2' => 'Inactivo', '3' => 'Suspendido'));
     $crud->unset_print();
     $crud->unset_export();
     $crud->unset_add();
     $output = $crud->render();
     $this->_example_output1($output);
 }
开发者ID:alejandrob1519,项目名称:nwsp,代码行数:25,代码来源:fichas.php

示例2: index

 function index()
 {
     if ($this->session->userdata('is_logged_in')) {
         $crud = new grocery_CRUD();
         //-> Identifico el ID del Cliente
         $crud->set_table('notificaciones');
         //->
         $crud->set_theme('datatables');
         $crud->set_language('spanish');
         // Display As
         $crud->unset_add();
         $crud->unset_export();
         $crud->unset_print();
         //-> Columnas
         $crud->columns('titulo', 'contenido', 'fecha');
         // Relaciones
         ##
         //-> Renderizar
         $output = $crud->render();
         $data['titulo'] = "NOTIFICACIONES";
         $this->load->view('include/head', $output);
         $this->load->view('include/header', $data);
         $this->load->view('admin/output');
         $this->load->view('admin/librerias');
         $this->load->view('include/footer', $data);
     } else {
         $this->load->view('admin/login');
     }
 }
开发者ID:Juchiha,项目名称:mandala,代码行数:29,代码来源:notificaciones.php

示例3: capturar

 function capturar()
 {
     if ($this->session->userdata('is_logged_in')) {
         $crud = new grocery_CRUD();
         //-> Identifico el ID del Cliente
         $crud->set_table('facturas');
         //->
         $crud->set_theme('datatables');
         $crud->set_language('spanish');
         $crud->set_subject('Factura');
         $crud->unset_add();
         $crud->unset_export();
         $crud->unset_print();
         $output = $crud->render();
         $data['titulo'] = "CREAR FACTURAS";
         $clientes = $this->Clientes_model->GetClients();
         $producto = $this->Products_model->get_all_products();
         $sucursales = $this->Sucursales_model->get_all_sucursales();
         $moneda = $this->datos_model->get_datos("tipos_moneda", "row_id, descripcion", "row_id", "ASC");
         $datos = array('clientes' => $clientes, 'productos' => $producto, 'sucursales' => $sucursales, "moneda" => $moneda);
         $this->load->view('include/head', $output);
         $this->load->view('include/header', $data);
         $this->load->view('admin/addFactura', $datos);
         $this->load->view('admin/librerias');
         $this->load->view('include/footer', $data);
     } else {
         $this->load->view('admin/login');
     }
 }
开发者ID:Juchiha,项目名称:mandala,代码行数:29,代码来源:facturas.php

示例4: generate_crud

 protected function generate_crud($table, $subject = '')
 {
     // create CRUD object
     $this->load->library('Grocery_CRUD');
     $crud = new grocery_CRUD();
     $crud->set_table($table);
     // auto-generate subject
     if (empty($subject)) {
         $crud->set_subject(humanize(singular($table)));
     }
     // load settings from: application/config/grocery_crud.php
     $this->load->config('grocery_crud');
     $this->mCrudUnsetFields = $this->config->item('grocery_crud_unset_fields');
     if ($this->config->item('grocery_crud_unset_jquery')) {
         $crud->unset_jquery();
     }
     if ($this->config->item('grocery_crud_unset_jquery_ui')) {
         $crud->unset_jquery_ui();
     }
     if ($this->config->item('grocery_crud_unset_print')) {
         $crud->unset_print();
     }
     if ($this->config->item('grocery_crud_unset_export')) {
         $crud->unset_export();
     }
     if ($this->config->item('grocery_crud_unset_read')) {
         $crud->unset_read();
     }
     foreach ($this->config->item('grocery_crud_display_as') as $key => $value) {
         $crud->display_as($key, $value);
     }
     // other custom logic to be done outside
     $this->mCrud = $crud;
     return $crud;
 }
开发者ID:TowerX,项目名称:ci_bootstrap_3,代码行数:35,代码来源:Admin_Controller.php

示例5: index

 public function index()
 {
     $crud = new grocery_CRUD();
     $crud->set_theme('datatables');
     $crud->set_table('banner')->set_subject('Banners')->columns('imagen');
     $crud->required_fields('imagen');
     $crud->set_field_upload('imagen', 'assets/uploads/files');
     $crud->unset_fields('fecha');
     $crud->unset_print();
     $output = $crud->render();
     $this->_example_output($output);
 }
开发者ID:facundonegoci,项目名称:mtkstock,代码行数:12,代码来源:banners.php

示例6: index

 public function index()
 {
     $crud = new grocery_CRUD();
     $crud->set_theme('datatables');
     $crud->set_table('categoria')->set_subject('categoria')->columns('nombre');
     $crud->required_fields('nombre');
     $crud->unique_fields('nombre');
     $crud->unset_texteditor('descripcion', 'full_text');
     $crud->unset_fields('fecharegistro');
     $crud->unset_print();
     $output = $crud->render();
     $this->_example_output($output);
 }
开发者ID:facundonegoci,项目名称:mtkstock,代码行数:13,代码来源:categorias.php

示例7: index

 public function index()
 {
     $crud = new grocery_CRUD();
     $crud->set_theme('datatables');
     $crud->set_table('clientes')->set_subject('Clientes')->columns('nombre');
     $crud->required_fields('nombre');
     $crud->unique_fields('nombre');
     $crud->unset_fields('fecharegistro');
     $crud->unset_print();
     $crud->set_field_upload('imagen', 'assets/uploads/files');
     $output = $crud->render();
     $this->_example_output($output);
 }
开发者ID:facundonegoci,项目名称:mtkstock,代码行数:13,代码来源:clientes.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_table('pengumuman');
     $crud->columns('isi', 'created_at', 'updated_at', 'status');
     $crud->unset_export();
     $crud->unset_print();
     $crud->unset_texteditor('isi');
     $crud->change_field_type('created_at', 'invisible');
     $crud->change_field_type('updated_at', 'invisible');
     $crud->callback_before_insert(array($this, "_timestamp"));
     $output = $crud->render();
     $output->title = 'Kelola Pengumuman';
     $this->template->load('template/template_main', 'admin/pengumuman', $output);
 }
开发者ID:anggakes,项目名称:permatanetwork,代码行数:15,代码来源:Pengumuman.php

示例10: master

 private function master()
 {
     $crud = new grocery_CRUD();
     $crud->set_table('contents');
     $crud->unset_columns('jenis', 'slug', 'isi');
     $crud->callback_before_insert(array($this, "_timestamp"));
     $crud->callback_before_update(array($this, "_timestamp"));
     $crud->unset_export();
     $crud->unset_print();
     $crud->unset_read();
     $crud->change_field_type('jenis', 'invisible');
     $crud->change_field_type('slug', 'invisible');
     $crud->change_field_type('created_at', 'invisible');
     $crud->change_field_type('updated_at', 'invisible');
     return $crud;
 }
开发者ID:anggakes,项目名称:voltusfx,代码行数:16,代码来源:Contents.php

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

示例12: index

 public function index()
 {
     $this->authlibrary->hasPrivilege("announcement");
     $crud = new grocery_CRUD();
     $crud->set_table('announcement');
     $crud->columns('isi', 'created_at', 'updated_at', 'status');
     $crud->unset_export();
     $crud->unset_print();
     $crud->unset_texteditor('isi');
     $crud->change_field_type('created_at', 'invisible');
     $crud->change_field_type('updated_at', 'invisible');
     $crud->callback_before_insert(array($this, "_timestamp"));
     $output = $crud->render();
     $output->menu = "announcement";
     $output->title = 'Announcement';
     $this->template->load('backend/template', 'backend/grocery_crud_view', $output);
 }
开发者ID:anggakes,项目名称:voltusfx,代码行数:17,代码来源:Announcement.php

示例13: index

 public function index()
 {
     $crud = new grocery_CRUD();
     $crud->set_table('admin');
     $crud->columns('nama', 'username', 'email', 'last_login', 'role');
     $crud->unset_export();
     $crud->unset_print();
     $crud->unset_read();
     $crud->unset_edit_fields('password');
     $crud->callback_before_insert(array($this, "_timestamp"));
     $crud->change_field_type('created_at', 'invisible');
     $crud->change_field_type('updated_at', 'invisible');
     $crud->change_field_type('last_login', 'invisible');
     $output = $crud->render();
     $output->title = 'Kelola Admin';
     $this->template->load('template/template_main', 'admin/contents', $output);
 }
开发者ID:anggakes,项目名称:permatanetwork,代码行数:17,代码来源:ManajemenAdmin.php

示例14: principal

 function principal($id)
 {
     try {
         $crud = new grocery_CRUD();
         $crud->set_theme('flexigrid');
         $crud->set_table('tp_banners_campa');
         $crud->set_subject('banners_campa');
         $crud->set_language('spanish');
         $crud->fields('campa', 'banner');
         $crud->required_fields('campa', 'banner');
         $crud->set_subject('banner');
         $crud->display_as('campa', 'Campaña');
         $crud->unset_add();
         $crud->unset_export();
         $crud->unset_print();
         $crud->where('campa', $id);
         $crud->set_relation('campa', 'tp_campa', 'nombre');
         $crud->set_field_upload('banner', 'archivos/banners');
         $crud->callback_after_upload(array($this, 'obtener_imagen_upload'));
         $output = $crud->render();
         $data['opcion'] = 'campa';
         $data['nombre_usuario'] = $this->modelo->nombre_usuario($this->session->userdata('id_usuario'));
         $data['logo'] = $this->modelo->logo();
         $data['url_logo'] = $this->modelo->url_logo();
         $data['logo_opcional'] = $this->modelo->logo_opcional();
         $data['url_logo_opcional'] = $this->modelo->url_logo_opcional();
         $this->load->view('cabecera', $data);
         $data['opcion_campa'] = 'banners_campa';
         $nombre_campa = "";
         $campas = $this->modelo->obtener_nombre_campa($id);
         foreach ($campas->result() as $fila) {
             $nombre_campa = $fila->nombre;
         }
         $data['nombre_campa'] = $nombre_campa;
         $this->load->view('opciones_campa', $data);
         $data['nuevo_banner'] = '';
         $data['id'] = $id;
         $this->load->view('opciones_banner_imagen_otros', $data);
         $this->load->view('campa', $output);
         $this->load->view('regresar');
         $this->load->view('pie');
     } catch (Exception $e) {
         show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
     }
 }
开发者ID:pepegarcia,项目名称:publicidadoficialdemo-1,代码行数:45,代码来源:banners.php

示例15: mostrar_usuarios

 public function mostrar_usuarios()
 {
     $grocery = new grocery_CRUD();
     $grocery->set_theme('bootstrap');
     $grocery->set_table('users');
     $grocery->set_language('spanish');
     $grocery->display_as('username', 'Usuario');
     $grocery->display_as('email', 'E-mail');
     $grocery->fields('username', 'email');
     $grocery->unset_read();
     $grocery->columns('username', 'password', 'email');
     $grocery->field_type('password', 'password');
     $grocery->unset_add();
     $grocery->unset_export();
     $grocery->unset_print();
     $output = $grocery->render();
     $this->_example_output($output);
 }
开发者ID:Citlaa,项目名称:LAY,代码行数:18,代码来源:usuarios.php


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