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


PHP DataGrid::column_ORDERBY方法代码示例

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


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

示例1: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     $filter = new DataFilter("", 'usuario');
     $filter->us_codigo = new inputField("Código Usuario", "us_codigo");
     $filter->us_codigo->size = 15;
     $filter->us_nombre = new inputField("Nombre", "us_nombre");
     $filter->us_nombre->size = 15;
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('supervisor/usuarios/dataedit/show/<#us_codigo#>', '<#us_codigo#>');
     $uri2 = anchor('supervisor/usuarios/cclave/modify/<#us_codigo#>', 'Cambiar clave');
     $uri3 = anchor('accesos/crear/<#us_codigo#>', 'Asignar Accesos');
     $grid = new DataGrid("");
     $grid->order_by("us_codigo", "asc");
     $grid->per_page = 20;
     $grid->column_ORDERBY("C&oacute;digo", $uri, "us_codigo ");
     $grid->column_ORDERBY("Nombre", "us_nombre", "us_nombre ", "align='left'NOWRAP");
     $grid->column_ORDERBY("Supervisor", "supervisor", "supervisor", 'align="center"    ');
     $grid->column("Cambio clave", $uri2, 'align="center"');
     $grid->column("Asignar Accesos", $uri3, 'align="center"');
     $grid->add("supervisor/usuarios/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'] = " Usuarios ";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:31,代码来源:usuarios.php

示例2: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     $this->rapyd->uri->keep_persistence();
     $filter = new DataFilter("", 'pres');
     $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' => 'cod_cli'), 'titulo' => 'Buscar Personal');
     $boton = $this->datasis->modbus($pers);
     $filter->numero = new inputField("N&uacute;mero", "numero");
     $filter->numero->size = 10;
     $filter->cod_cli = new inputField("Trabajador", "cod_cli");
     $filter->cod_cli->size = 5;
     $filter->cod_cli->append($boton);
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('nomina/prestamos/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("Enlace", "cod_cli", "cod_cli");
     $grid->column_ORDERBY("C&oacute;digo", "codigo", "codigo");
     $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");
     $grid->column_ORDERBY("Monto", "monto", "monto", "align='right'     ");
     $grid->column_ORDERBY("Cuota", "cuota", "cuota", "align='right'     ");
     //$grid->column("Saldo","monto");
     //		$grid->column("A partir","apartir");
     //		$grid->column("Frecuencia","cadano");
     //		$grid->column("Observaciones","observ1");
     //		$grid->column(".","oberv2");
     //		$grid->column("Pagado","pagado");
     $grid->add("nomina/prestamos/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'] = "Prestamos";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:42,代码来源:prestamos.php


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