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


PHP DataGrid::build方法代码示例

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


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

示例1: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load('datafilter2', 'datagrid');
     $filter = new DataFilter2('', 'tban');
     $filter->codbanc = new inputField('Código', 'cod_banc');
     $filter->codbanc->size = 5;
     $filter->codbanc->clause = 'likerigth';
     $filter->banco = new inputField('Nombre de Banco', 'nomb_banc');
     $filter->banco->size = 30;
     $filter->banco->clause = 'likerigth';
     $filter->buttons('reset', 'search');
     $filter->build();
     $uri = anchor('tesoreria/tban/dataedit/show/<#cod_banc#>', '<#cod_banc#>');
     $grid = new DataGrid("");
     $grid->per_page = 20;
     $grid->column_orderby('C&oacute;digo', $uri, 'cod_banc');
     $grid->column_orderby('Banco', 'nomb_banc', 'nomb_banc', "align='left' NOWRAP");
     //$grid->column_orderby("Tipo"   ,"tipotra"  ,"tipotra"  );
     //$grid->column_orderby("Formaca","formaca"  ,"formaca"  );
     $grid->add('tesoreria/tban/dataedit/create');
     $grid->build();
     $data['content'] = $filter->output . $grid->output;
     $data['title'] = 'Tabla de Bancos';
     $data['head'] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:26,代码来源:tban.php

示例2: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     $this->rapyd->uri->keep_persistence();
     $filter = new DataFilter("Filtro por Expediente", "bi_bienes");
     $filter->id = new inputField("C&oacute;digo", "id");
     $filter->id->size = 10;
     $filter->nombre = new inputField("Nombre", "nombre");
     $filter->nombre->size = 20;
     $filter->descrip = new inputField("Descripci&oacute;n", "descrip");
     $filter->descrip->size = 20;
     $filter->modelo = new inputField("Modelo", "modelo");
     $filter->modelo->size = 20;
     $filter->color = new inputField("Color", "color");
     $filter->color->size = 20;
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('bienes/bi_bienes/dataedit/show/<#id#>', '<#id#>');
     $grid = new DataGrid("Lista de muebles");
     $grid->order_by("id", "asc");
     $grid->per_page = 20;
     $grid->column_orderby("Codigo", $uri, "id", "align='center'");
     $grid->column_orderby("Nombren", "nombre", "nombre", "align='center'");
     $grid->column_orderby("Color", "color", "color", "align='center'");
     $grid->column_orderby("Modelo", "modelo", "moldelo", "align='center'");
     $grid->column_orderby("Descripci&oacute;n", "descrip", "descrip", "align='left'");
     //              $grid->column_orderby("Duplicar"             ,$uri_2                        ,"align='center'");
     $grid->add("bienes/bi_bienes/dataedit/create");
     $grid->build();
     $data['content'] = $filter->output . $grid->output;
     $data['title'] = "Bienes Muebles";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:34,代码来源:bi_bienes.php

示例3: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     $this->rapyd->uri->keep_persistence();
     $filter = new DataFilter("Buscar", 'tarjeta');
     $filter->tipo = new dropdownField("Tipo", "tipo");
     $filter->tipo->options("SELECT tipo, nombre from tarjeta ORDER BY tipo");
     $filter->tipo->style = "width:180px";
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('ventas/tarjeta/dataedit/show/<#tipo#>', '<#tipo#>');
     $grid = new DataGrid("Lista de Formas de Pago");
     $grid->order_by("nombre", "asc");
     $grid->per_page = 10;
     $grid->column("Tipo", $uri);
     $grid->column("Nombre", "nombre", "nombre");
     $grid->column("Comisi&oacute;n", "comision");
     $grid->column("Impuesto", "impuesto");
     $grid->column("Mensaje", "mensaje");
     $grid->add("ventas/tarjeta/dataedit/create");
     $grid->build();
     $data['content'] = $filter->output . $grid->output;
     $data['title'] = "<h1>Formas de Pago</h1>";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:26,代码来源:tarjeta.php

示例4: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load('datafilter', 'datagrid');
     $filter = new DataFilter($this->titp, 'r_interes');
     $filter->ano = new inputField('Ano', 'ano');
     $filter->ano->rule = 'trim';
     $filter->ano->size = 13;
     $filter->ano->maxlength = 11;
     $filter->mes = new inputField('Mes', 'mes');
     $filter->mes->rule = 'trim';
     $filter->mes->size = 13;
     $filter->mes->maxlength = 11;
     $filter->monto = new inputField('Monto', 'monto');
     $filter->monto->rule = 'trim|numeric';
     $filter->monto->css_class = 'inputnum';
     $filter->monto->size = 21;
     $filter->monto->maxlength = 19;
     $filter->buttons('reset', 'search');
     $filter->build();
     $uri = anchor($this->url . 'dataedit/show/<raencode><#ano#></raencode>/<raencode><#mes#></raencode>', '<#ano#>-<#mes#>');
     $grid = new DataGrid('');
     $grid->order_by(' ano desc, mes desc', '');
     $grid->per_page = 40;
     $grid->column_orderby('Ano', "{$uri}", 'ano', 'align="left"');
     $grid->column_orderby('Mes', "<nformat><#mes#></nformat>", 'mes', 'align="right"');
     $grid->column_orderby('Monto', "<nformat><#monto#></nformat>", 'monto', 'align="right"');
     $grid->add($this->url . 'dataedit/create');
     $grid->build();
     $data['filtro'] = $filter->output;
     $data['content'] = $grid->output;
     $data['head'] = $this->rapyd->get_head() . script('jquery.js');
     $data['title'] = $this->titp;
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:34,代码来源:r_interes.php

示例5: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     //$this->rapyd->uri->keep_persistence();
     $filter = new DataFilter("Filtro de Carta", 'menu');
     $filter->codigo = new inputField("C&oacute;digo", "codigo");
     $filter->codigo->size = 15;
     $filter->descri1 = new inputField("Descripci&oacute;n", "descri1");
     $filter->descri1->size = 35;
     $filter->grupo = new dropdownField("Grupo", "grupo");
     $filter->grupo->option("", "");
     $filter->grupo->options("SELECT grupo,descri1 FROM grme ORDER BY grupo ");
     $filter->grupo->style = "width:180px";
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('hospitalidad/carta/dataedit/show/<#codigo#>', '<#codigo#>');
     $grid = new DataGrid("Lista de Carta");
     $grid->order_by("codigo", "asc");
     $grid->per_page = 10;
     $grid->column("C&oacute;digo", $uri);
     $grid->column("Descripci&oacute;n ", "descri1");
     $grid->column("Grupo", "descgru");
     $grid->column("Base", "base");
     $grid->column("Impuesto", "impuesto");
     $grid->column("Precio", "precio");
     $grid->column("Servicio", "servicio");
     $grid->add("hospitalidad/carta/dataedit/create");
     $grid->build();
     $data['content'] = $filter->output . $grid->output;
     $data['title'] = "<h1>Carta</h1>";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:33,代码来源:carta.php

示例6: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     $this->rapyd->uri->keep_persistence();
     $filter = new DataFilter("", 'civa');
     $filter->fecha = new dateonlyField("Fecha", "fecha", 'd/m/Y');
     $filter->fecha->clause = $filter->fecha->clause = "where";
     $filter->fecha->dbformat = "Y-m-d";
     $filter->fecha->size = 12;
     $filter->tasa = new inputField("Tasa", "Tasa");
     $filter->tasa->size = 12;
     $filter->tasa->maxlength = 6;
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('tesoreria/civa/dataedit/show/<#fecha#>', '<dbdate_to_human><#fecha#></dbdate_to_human>');
     $grid = new DataGrid("");
     $grid->order_by("fecha", "asc");
     $grid->per_page = 20;
     $grid->column_orderby("Fecha", $uri, "fecha", "align='center'");
     $grid->column_orderby("Tasa", "tasa", "tasa", "align='right' ");
     $grid->column_orderby("Tasa Reducida ", "redutasa", "redutasa", "align='right' ");
     $grid->column_orderby("Tasa Adicional", "sobretasa", "sobretasa", "align='right' ");
     $grid->add("tesoreria/civa/dataedit/create");
     $grid->build();
     //echo $grid->db->last_query();
     //$data['content'] = $filter->output.$grid->output;
     $data['filtro'] = $filter->output;
     $data['content'] = $grid->output;
     $data['script'] = script("jquery.js") . "\n";
     $data['title'] = "Tasa de IVA";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:33,代码来源:civa.php

示例7: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     $this->rapyd->uri->keep_persistence();
     $filter = new DataFilter("", 'pres');
     $filter->numero = new inputField("N&uacute;mero", "numero");
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('nomina/pres/dataedit/show/<#cod_cli#>/<#tipo_doc#>/<#numero#>', '<#numero#>');
     $grid = new DataGrid("");
     $grid->order_by("numero", "asc");
     $grid->per_page = 20;
     $grid->column_orderby("N&uacute;mero", $uri, "numero");
     $grid->column_orderby("Nombre", "nombre", "nombre", "align='left'NOWRAP");
     $grid->column_orderby("Fecha", "<dbdate_to_human><#fecha#></dbdate_to_human>", "fecha", "align='center'    ");
     $grid->column_orderby("Tipo", "tipo_doc", "tipo_doc", "align='center'    ");
     $grid->column_orderby("Monto", "monto", "monto", "align='right'     ");
     //		$grid->column("Observaciones","observ1");
     //		$grid->column(".","oberv2");
     $grid->add("nomina/pres/dataedit/create");
     $grid->build();
     //$data['content'] = $filter->output.$grid->output;
     $data['filtro'] = $filter->output;
     $data['content'] = $grid->output;
     $data['script'] = script("jquery.js") . "\n";
     $data['title'] = " Adelantos de Prestaciones ";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:29,代码来源:pres.php

示例8: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter2", "datagrid");
     $this->rapyd->uri->keep_persistence();
     $pers = array('tabla' => 'pers', 'columnas' => array('codigo' => 'Codigo', 'cedula' => 'Cedula', 'nombre' => 'Nombre', 'apellido' => 'Apellido'), 'filtro' => array('codigo' => 'C&oacute;digo', 'cedula' => 'Cedula'), 'retornar' => array('codigo' => 'codigo'), 'titulo' => 'Buscar Personal');
     $boton = $this->datasis->modbus($pers);
     $filter = new DataFilter2("Filtro por C&oacute;digo", 'ausu');
     $filter->codigo = new inputField("Codigo", "codigo");
     $filter->codigo->size = 15;
     $filter->codigo->append($boton);
     $filter->codigo->clause = "likerigth";
     $filter->fecha = new DateonlyField("Fecha", "fecha");
     $filter->fecha->size = 12;
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('nomina/aumentosueldo/dataedit/show/<#codigo#>/<raencode><#fecha#></raencode>', '<#codigo#>');
     $grid = new DataGrid("Lista de Aumentos de Sueldo");
     $grid->order_by("codigo", "asc");
     $grid->per_page = 20;
     $grid->column("C&oacute;digo", $uri);
     $grid->column("Nombre", "nombre");
     $grid->column("Fecha", "<dbdate_to_human><#fecha#></dbdate_to_human>", "align='center'");
     $grid->column("Sueldo anterior", "<number_format><#sueldoa#>|2|,|.</number_format>", "align='right'");
     $grid->column("Sueldo nuevo", "<number_format><#sueldo#>|2|,|.</number_format>", "align='right'");
     $grid->column("Observaciones", "observ1");
     $grid->column("..", "oberv2");
     $grid->add("nomina/aumentosueldo/dataedit/create");
     $grid->build();
     $data['content'] = $filter->output . $grid->output;
     $data['title'] = "<h1>Aumentos de Sueldo</h1>";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:33,代码来源:aumentosueldo.php

示例9: index

 function index()
 {
     $this->rapyd->load("datagrid", "datafilter");
     $filter = new DataFilter("Filtro de Recetas", 'rece');
     $filter->codigo = new inputField("C&oacute;digo", "codigo");
     $filter->codigo->size = 10;
     $filter->descri1 = new inputField("Descripci&oacute;n", "descri1");
     $filter->descri1->size = 30;
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('hospitalidad/recetas/dataedit/show/<#codigo#>/', '<#codigo#>');
     $grid = new DataGrid();
     $grid->order_by("fecha", "desc");
     $grid->per_page = 15;
     $grid->column("C&oacute;digo", $uri);
     $grid->column("Descripci&oacute;n", "descri1");
     $grid->column("Precio", "<number_format><#precio#>|2</number_format>", "align=right");
     $grid->column("Fecha", "<dbdate_to_human><#fecha#></dbdate_to_human>", "align='center'");
     $grid->column("Costo", "<number_format><#costo#>|2</number_format>", "align=right");
     $grid->column("Rela", "rela", "align='center'");
     $grid->add("hospitalidad/agregarrec");
     $grid->build();
     //echo $grid->db->last_query();
     $data['content'] = $filter->output . $grid->output;
     $data["head"] = $this->rapyd->get_head();
     $data['title'] = '<h1>Recetas</h1>';
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:28,代码来源:recetas.php

示例10: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     $this->rapyd->uri->keep_persistence();
     //filter
     $filter = new DataFilter("Filtro de soporte", 'soporte');
     $filter->usuario = new inputField("Usuario", "usuario");
     $filter->estampa = new inputField("Estampa", "estampa");
     $filter->titulo = new inputField("Titulo", "titulo");
     $filter->comentario = new inputField("Comentario", "comentario");
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = "supervisor/sopor/dataedit/show/<#id#>";
     $grid = new DataGrid("Filtro de soporte");
     //$grid->order_by("nombre","asc");
     $grid->per_page = 20;
     $grid->column_detail("Usuario", "usuario", $uri);
     $grid->column("Estampa", "estampa");
     $grid->column("Titulo", "titulo");
     $grid->column("Comentario", "comentario");
     $grid->add("supervisor/soporte/dataedit/create");
     $grid->build();
     //grid
     $data["crud"] = $filter->output . $grid->output;
     $data["titulo"] = 'Soporte';
     $content["content"] = $this->load->view('rapyd/crud', $data, true);
     $content["rapyd_head"] = $this->rapyd->get_head();
     $content["code"] = '';
     $content["lista"] = "\r\n\t\t\t<h3>Editar o Agregar</h3>\r\n\t\t\t<div>Con esta pantalla se puede editar o agregar datos a la tabla scli del Modulo de N&oacute;mina</div>\r\n\t\t\t<div class='line'></div>\r\n\t\t\t<a href='#' onclick='window.close()'>Cerrar</a>\r\n\t\t\t<div class='line'></div>\n<br><br><br>\n";
     $this->load->view('rapyd/tmpsolo', $content);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:31,代码来源:sopor.php

示例11: detalles

 function detalles($numero = NULL)
 {
     $this->rapyd->load("datagrid");
     $mSQL = "SELECT numero,DATE_FORMAT(fecha, '%d/%m/%Y')as fecha,vd,cod_cli,rifci,nombre,direc,dire1,presup, anticipo,iva,totals,referen,totalg,DATE_FORMAT(vence, '%d/%m/%Y')as vence  FROM  pfac WHERE numero='{$numero}'";
     $query = $this->db->query($mSQL);
     if ($query->num_rows() > 0) {
         $pdata = $query->row_array();
     }
     $grid = new DataGrid();
     $grid->db->select = array('codigoa', 'desca', 'cana', 'preca', 'tota');
     $grid->db->from('itpfac');
     $grid->db->where('numa', $numero);
     $grid->order_by("codigoa", "desc");
     //$grid->per_page = 15;
     $uri = anchor("/ventas/agregarnd/mdetalle/<#id#>/modify/", '<#codigoa#>');
     $grid->column("C&oacute;digo", $uri);
     $grid->column("Descripci&oacute;n", "desca");
     $grid->column("Cantidad", "cana", "align='right'");
     $grid->column("Precio", "preca", "align='right'");
     $grid->column("Importe", "tota", "align='right'");
     $grid->add("ventas/agregarped/mdetalle/{$numero}/create");
     $grid->build();
     $pdata['items'] = $grid->output;
     $data['content'] = $this->load->view('view_agpedidos', $pdata, true);
     $data["head"] = $this->rapyd->get_head();
     $data['title'] = '<h1>Agregar Art&iacute;culos</h1>';
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:28,代码来源:agregarped.php

示例12: filteredgrid

 function filteredgrid()
 {
     $this->datasis->modulo_id(102, 1);
     $this->rapyd->load("datafilter", "datagrid");
     $filter = new DataFilter("Filtro por Programas", "programas");
     $filter->sect_pres = new dropdownField("Sector", "sect_pres");
     $filter->sect_pres->option("", "");
     $filter->sect_pres->options("SELECT sect_pres, CONCAT_WS(' ',sect_pres,nomb_sect) AS nomb_sect FROM sectores ORDER BY sect_pres");
     $filter->sect_pres->style = 'width:300px;';
     $filter->id_prog = new inputField("Identificador", "id_prog");
     $filter->id_prog->size = 5;
     $filter->prog_pres = new inputField("C&oacute;digo Programa", "prog_pres");
     $filter->prog_pres->size = 5;
     $filter->prog_pres->maxlength = 2;
     $filter->nomb_prog = new inputField("Nombre Programa", "nomb_prog");
     $filter->nomb_prog->size = 40;
     $filter->nomb_prog->maxlength = 80;
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('presupuesto/programas/dataedit/show/<#id_prog#>', '<#id_prog#>');
     $grid = new DataGrid("Lista de Programas");
     $grid->order_by("prog_pres", "asc");
     $grid->column("Identificador", $uri, "align='left'");
     $grid->column("Sector", "sect_pres", "align='left'");
     $grid->column("Programa ", "prog_pres", "align='left'");
     $grid->column("Nombre", "nomb_prog", "align='left'");
     $grid->add("presupuesto/programas/dataedit/create");
     $grid->build();
     $data['content'] = $filter->output . $grid->output;
     $data['title'] = " Programas ";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:33,代码来源:programas.php

示例13: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     $filter = new DataFilter("", 'prof');
     $filter->codigo = new inputField("Codigo", "codigo");
     $filter->codigo->size = 20;
     $filter->codigo->maxlength = 8;
     $filter->profesion = new inputField("Profesion", "profesion");
     $filter->profesion->size = 20;
     $filter->profesion->maxlength = 40;
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('nomina/prof/dataedit/show/<#codigo#>', '<#codigo#>');
     $grid = new DataGrid("");
     $grid->per_page = 15;
     $grid->column_orderby("Codigo", $uri, "codigo");
     $grid->column_orderby("Profesiones", "profesion", "profesion", "align='left'NOWRAP");
     $grid->add("nomina/prof/dataedit/create");
     $grid->build();
     //$data['content'] = $filter->output.$grid->output;
     $data['title'] = "Profesiones";
     $data['filtro'] = $filter->output;
     $data['content'] = $grid->output;
     $data['script'] = script("jquery.js") . "\n";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:27,代码来源:prof.php

示例14: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     $filter = new DataFilter("Filtro de Club de Compras");
     $select = array("cedula", "cod_tar", "CONCAT_WS(' ',nombres,apellidos) AS nombre", "direc1");
     $filter->db->select($select);
     $filter->db->from('club');
     $filter->nombre = new inputField("Nombre", "nombre");
     $filter->nombre->size = 30;
     $filter->nombre->db_name = "CONCAT_WS(' ',nombres,apellidos)";
     $filter->cod_tar = new inputField("Tarjeta", "cod_tar");
     $filter->cod_tar->size = 30;
     $filter->cedula = new inputField("C&eacute;dula", "cedula");
     $filter->cedula->size = 15;
     $filter->buttons("reset", "search");
     $filter->build();
     $link = anchor("supermercado/club/dataedit/show/<#cod_tar#>", '<#nombre#>');
     $grid = new DataGrid("Lista de Usuarios");
     $grid->order_by("nombre", "asc");
     $grid->per_page = 10;
     $grid->column_orderby("Nombres", $link, "nombres");
     $grid->column("C&eacute;dula", "cedula");
     $grid->column("Tarjeta", "cod_tar");
     $grid->column("Direcci&oacute;n", "direc1");
     $grid->add("supermercado/club/dataedit/create");
     $grid->build();
     $data['content'] = $filter->output . $grid->output;
     $data["head"] = $this->rapyd->get_head();
     $data['title'] = '<h1>Modulo de Club de Compras</h1>';
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:31,代码来源:club.php

示例15: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     $this->rapyd->uri->keep_persistence();
     $filter = new DataFilter("Filtro de Conceptos", 'icon');
     $filter->codigo = new inputField("Código", "codigo");
     $filter->codigo->size = 20;
     $filter->cedula = new inputField("Concepto", "concepto");
     $filter->cedula->size = 20;
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('inventario/concepto/dataedit/show/<#codigo#>', '<#codigo#>');
     $grid = new DataGrid("Lista de Conceptos");
     $grid->order_by("codigo", "asc");
     $grid->per_page = 20;
     $grid->column("Código", $uri);
     $grid->column("Concepto ", "concepto");
     $grid->column("Gasto", "gasto");
     $grid->column("Gastos de:", "gastode");
     $grid->column("Ingreso", "ingreso");
     $grid->column("Ingresos de:", "ingresod");
     $grid->add("hospitalidad/concepto/dataedit/create");
     $grid->build();
     $data['content'] = $filter->output . $grid->output;
     $data['title'] = " Otros Conceptos ";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:28,代码来源:concepto.php


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