本文整理汇总了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ó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);
}
示例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ódigo', 'cedula' => 'Cedula'), 'retornar' => array('codigo' => 'cod_cli'), 'titulo' => 'Buscar Personal');
$boton = $this->datasis->modbus($pers);
$filter->numero = new inputField("Nú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úmero", $uri, "numero");
$grid->column_ORDERBY("Enlace", "cod_cli", "cod_cli");
$grid->column_ORDERBY("Có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);
}