当前位置: 首页>>代码示例>>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方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     $mSPRV = array('tabla' => 'sprv', 'columnas' => array('proveed' => 'Cóodigo', 'nombre' => 'Nombre', 'contacto' => 'Contacto'), 'filtro' => array('proveed' => 'Código', 'nombre' => 'Nombre'), 'retornar' => array('proveed' => 'cod_prov'), 'titulo' => 'Buscar Beneficiario');
     //$bSPRV=$this->datasis->p_modbus($mSPRV,"proveed");
     $filter = new DataFilter("");
     $filter->db->select(array("a.numero", "a.fecha", "a.tipo", "a.uejecutora", "a.estadmin", "a.fondo", "a.cod_prov", "a.pago", "a.total2", "a.status", "b.nombre nombre1", "c.nombre nombre2"));
     $filter->db->from("odirect a");
     $filter->db->join("uejecutora b", "a.uejecutora=b.codigo");
     $filter->db->join("sprv c", "c.proveed =a.cod_prov");
     $filter->db->where('MID(status,1,1) ', 'B');
     $filter->db->where('multiple =', 'S');
     $filter->numero = new inputField("Número", "numero");
     $filter->numero->size = 12;
     $filter->tipo = new dropdownField("Orden de ", "tipo");
     $filter->tipo->option("", "");
     $filter->tipo->option("Compra", "Compra");
     $filter->tipo->option("Servicio", "Servicio");
     $filter->tipo->style = "width:100px;";
     $filter->fecha = new dateonlyField("Fecha", "fecha");
     $filter->fecha->size = 12;
     //$filter->uejecutora = new inputField("Unidad Ejecutora", "uejecutora");
     //$filter->uejecutora->size=12;
     $filter->uejecutora = new dropdownField("U.Ejecutora", "uejecutora");
     $filter->uejecutora->option("", "Seccionar");
     $filter->uejecutora->options("SELECT codigo,nombre FROM uejecutora ORDER BY nombre");
     $filter->uejecutora->onchange = "get_uadmin();";
     $filter->cod_prov = new inputField("Beneficiario", 'cod_prov');
     $filter->cod_prov->size = 6;
     //$filter->cod_prov->append($bSPRV);
     $filter->cod_prov->rule = "required";
     $filter->beneficiario = new inputField("Beneficiario", "beneficiario");
     $filter->beneficiario->size = 60;
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor($this->url . 'dataedit/modify/<#numero#>', '<str_pad><#numero#>|8|0|STR_PAD_LEFT</str_pad>');
     $grid = new DataGrid("");
     $grid->order_by("numero", "desc");
     $grid->per_page = 20;
     $grid->use_function('substr', 'str_pad');
     $grid->column_orderby("N&uacute;mero", $uri, "numero");
     $grid->column_orderby("Fecha", "<dbdate_to_human><#fecha#></dbdate_to_human>", "fecha", "align='center'");
     $grid->column_orderby("Unidad Ejecutora", "nombre1", "uejecutora", "NOWRAP");
     $grid->column_orderby("Beneficiario", "nombre2", "c.nombre", "NOWRAP");
     $grid->column_orderby("Pago", "<number_format><#total2#>|2|,|.</number_format>", "total", "align='right'");
     //$grid->column("Beneficiario"        ,"cod_prov"                                          ,"cod_prov"   );
     //$grid->column("Tipo"             ,"tipo"                                        ,"align='center'");
     //	$grid->column("Devoluci&oacute;n","<number_format><#devo#>|2|,|.</number_format>","align='rigth'");
     $grid->build();
     //echo $grid->db->last_query();
     $data['filtro'] = $filter->output;
     $data['content'] = $grid->output;
     $data['script'] = script("jquery.js") . "\n";
     $data['title'] = "{$this->titp}";
     //"";
     //$data['content'] = $filter->output.$grid->output;
     //$data['title']   = " $this->titp ";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:60,代码来源:itfac.php

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

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

示例4: filteredgrid

 function filteredgrid()
 {
     $this->datasis->modulo_id(138, 1);
     $mSPRV = array('tabla' => 'sprv', 'columnas' => array('proveed' => 'C&oacute;odigo', 'nombre' => 'Nombre', 'contacto' => 'Contacto'), 'filtro' => array('proveed' => 'C&oacute;digo', 'nombre' => 'Nombre'), 'retornar' => array('proveed' => 'cod_prov'), 'titulo' => 'Buscar Beneficiario');
     $this->rapyd->load("datafilter", "datagrid");
     $bSPRV = $this->datasis->p_modbus($mSPRV, "proveed");
     $mBANC = array('tabla' => 'banc', 'columnas' => array('codbanc' => 'C&oacute;odigo', 'banco' => 'Banco', 'numcuent' => 'Cuenta', 'saldo' => 'Saldo'), 'filtro' => array('codbanc' => 'C&oacute;odigo', 'banco' => 'Banco', 'numcuent' => 'Cuenta', 'saldo' => 'Saldo'), 'retornar' => array('codbanc' => 'codbanc'), 'where' => 'activo = "S"', 'titulo' => 'Buscar Bancos');
     $bBANC = $this->datasis->p_modbus($mBANC, "banc");
     $filter = new DataFilter("");
     //		$filter->db->select(array("fecha","a.tipo tipo","a.cod_prov cod_prov","a.codbanc codbanc1","cheque","a.id id","a.monto","a.observa observa","a.benefi benefi"));
     $filter->db->from("mbanc");
     //$filter->db->join("banc b" ,"a.codbanc=b.codbanc","left");
     //$filter->db->join("sprv c" ,"a.cod_prov=c.proveed","left");
     $filter->db->where("(status = 'A' OR status='AN' OR status='A2' OR status='NC'  OR status='AN') ");
     $filter->db->_escape_char = '';
     $filter->db->_protect_identifiers = false;
     $filter->id = new inputField("Ref.", 'id');
     $filter->fecha = new dateonlyField("Fecha", "fecha");
     $filter->fecha->dbformat = "Y-m-d";
     $filter->fecha->size = 12;
     $filter->cod_prov = new inputField("Beneficiario", 'cod_prov');
     //		$filter->cod_prov->db_name = "a.cod_prov";
     $filter->cod_prov->size = 6;
     $filter->cod_prov->append($bSPRV);
     $filter->cod_prov->rule = "required";
     $filter->codbanc = new inputField("Banco", 'codbanc');
     //		$filter->codbanc->db_name = "a.codbanc";
     $filter->codbanc->size = 5;
     $filter->codbanc->append($bBANC);
     $filter->cheque = new inputField("Cheque", "cheque");
     //		$filter->cheque->size   = 60;
     //		$filter->cheque->db_name = "a.cheque";
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor($this->url . 'dataedit/show/<#id#>', '<str_pad><#id#>|8|0|' . STR_PAD_LEFT . '</str_pad>');
     $grid = new DataGrid("");
     $grid->db->_escape_char = '';
     $grid->db->_protect_identifiers = false;
     $grid->order_by("numero", "asc");
     $grid->per_page = 20;
     $grid->use_function('substr', 'str_pad');
     $grid->column_orderby("N&uacute;mero", $uri, "id");
     $grid->column_orderby("Fecha", "<dbdate_to_human><#fecha#></dbdate_to_human>", "fecha", "align='center'    ");
     //		$grid->column_orderby("Banco"        ,"nombanco"                                      ,"nombanco","align='left'NOWRAP");
     $grid->column_orderby("Cheque", "cheque", "cheque");
     $grid->column_orderby("Monto", "<number_format><#monto#>|2|,|.</number_format>", "monto", "align='right'     ");
     //		$grid->column_orderby("Beneficiario" ,"proveed1"                                      ,"proveed1"  ,"align='left'NOWRAP");
     $grid->column_orderby("Observasion", "observa", "observa", "align='left'NOWRAP");
     //$grid->column("Tipo"             ,"tipo"                                        ,"align='center'");
     //$grid->column("Estado"           ,"status"                                        ,"align='center'");
     $grid->add($this->url . "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'] = "{$this->titp}";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:60,代码来源:cheque.php

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

示例6: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load('datafilter', 'datagrid');
     $filter = new DataFilter($this->titp, 'tingresos');
     $filter->codigo = new inputField('Codigo', 'codigo');
     $filter->codigo->rule = 'max_length[2]';
     $filter->codigo->size = 4;
     $filter->codigo->maxlength = 2;
     $filter->descrip = new inputField('Descripci&oacute;n', 'descrip');
     $filter->descrip->rule = 'max_length[100]';
     $filter->descrip->size = 102;
     $filter->descrip->maxlength = 100;
     $filter->grupo = new inputField('Grupo', 'grupo');
     $filter->grupo->rule = 'max_length[1]';
     $filter->grupo->size = 3;
     $filter->grupo->maxlength = 1;
     $filter->buttons('reset', 'search');
     $filter->build();
     $uri = anchor($this->url . 'dataedit/show/<raencode><#codigo#></raencode>', '<#codigo#>');
     $grid = new DataGrid('');
     $grid->order_by('codigo');
     $grid->per_page = 40;
     $grid->column_orderby('C&oacute;digo', "{$uri}", 'codigo', 'align="left"');
     $grid->column_orderby('Descripci&oacute;n', "descrip", 'descrip', 'align="left"');
     $grid->column_orderby('Grupo', "grupo", 'grupo', 'align="left"');
     $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,代码行数:33,代码来源:tingresos.php

示例7: filteredgrid

 function filteredgrid()
 {
     $this->datasis->modulo_id(40, 1);
     $this->rapyd->load("datafilter2", "datagrid");
     //
     $filter = new DataFilter2("", "uejecutora");
     $filter->codigo = new inputField("C&oacute;digo", "codigo");
     $filter->codigo->size = 5;
     //$filter->codigo->clause="likerigth";
     $filter->nombre = new inputField("Nombre", "nombre");
     $filter->nombre->size = 40;
     $filter->nombre->clause = "likerigth";
     //$filter->director = new inputField("Director", "director");
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('presupuesto/uejecuta/dataedit/show/<#codigo#>', '<#codigo#>');
     $grid = new DataGrid("");
     $grid->order_by("codigo", "asc");
     $grid->column_orderby("Unidades Ejecutoras", $uri, "codigo", "align='left'      ");
     //$grid->column_orderby("Codigo administrativo","codigoadm"    ,"codigoadm"     ,"align='left'NOWRAP");
     $grid->column_orderby("Nombre", "nombre", "nombre", "align='left'NOWRAP");
     $grid->column_orderby("Director", "director", "director", "align='left'NOWRAP");
     $grid->add("presupuesto/uejecuta/dataedit/create");
     $grid->build();
     $data['content'] = $grid->output;
     $data['filtro'] = $filter->output;
     $data['title'] = "Unidades Ejecutoras";
     //"  ";
     $data["script"] = script("jquery.js") . "\n";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:32,代码来源:uejecuta.php

示例8: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load('datafilter', 'datagrid');
     $filter = new DataFilter($this->titp, 'tsprv');
     $filter->codigo = new inputField('codigo', 'codigo');
     $filter->codigo->rule = 'max_length[5]';
     $filter->codigo->size = 7;
     $filter->codigo->maxlength = 5;
     $filter->nombre = new textareaField('nombre', 'nombre');
     $filter->nombre->rule = 'max_length[8]';
     $filter->nombre->cols = 70;
     $filter->nombre->rows = 4;
     $filter->buttons('reset', 'search');
     $filter->build();
     $uri = anchor($this->url . 'dataedit/show/<raencode><#codigo#></raencode>', '<#codigo#>');
     $grid = new DataGrid('');
     $grid->order_by('codigo');
     $grid->per_page = 40;
     $grid->column_orderby('C&oacute;digo', "{$uri}", 'codigo', 'align="left"');
     $grid->column_orderby('Nombre', "nombre", 'nombre', 'align="left"');
     $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'] = heading($this->titp);
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:28,代码来源:tsprv.php

示例9: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     $this->rapyd->uri->keep_persistence();
     $filter = new DataFilter("", 'divi');
     $filter->division = new inputField("Divisi&oacute;n", "division");
     $filter->division->size = 8;
     $filter->descrip = new inputField("Descripcion", "descrip");
     $filter->descrip->size = 30;
     $filter->codigoadm = new inputField("Est. Admin", "codigoadm");
     $filter->fondo = new inputField("Fondo", "fondo");
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('nomina/divi/dataedit/show/<#division#>', '<#division#>');
     $grid = new DataGrid("");
     $grid->order_by("division", "asc");
     $grid->per_page = 20;
     $grid->column_orderby("Divisi&oacute;n", $uri, "division", "alingn='left'NOWRAP");
     $grid->column_orderby("Descripci&oacute;n", "descrip", "descrip", "alingn='left'NOWRAP");
     $grid->column_orderby("Estructura Administrativo", "codigoadm", "codigoadm", "alingn='left'NOWRAP");
     $grid->column_orderby("F. Financiamiento", "fondo", "fondo", "alingn='left'NOWRAP");
     $grid->add("nomina/divi/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'] = "Divisiones";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:31,代码来源:divi.php

示例10: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     $filter = new DataFilter("Filtro de " . $this->titp, $this->tabla);
     $filter->grupo = new dropdownField("Grupo", "grupo");
     $filter->grupo->option("", "");
     $filter->grupo->option(2, "2 Muebles");
     $filter->grupo->option(1, "1 Inmuebles");
     $filter->codigo = new inputField("C&oacute;digo", "codigo");
     $filter->codigo->size = 10;
     $filter->descrip = new inputField("Descripci&oacute;n", "descrip");
     $filter->descrip->size = 20;
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor($this->url . '/dataedit/show/<raencode><#codigo#></raencode>', '<#codigo#>');
     $grid = new DataGrid("Lista de " . $this->titp);
     $grid->order_by("codigo", "asc");
     $grid->per_page = 20;
     $grid->column_orderby("C&oacute;digo", $uri, "codigo");
     $grid->column_orderby("Descripci&oacute;n", "descrip", "descrip");
     $grid->add($this->url . "/dataedit/create");
     $grid->build();
     $data['content'] = $filter->output . $grid->output;
     $data['title'] = $this->titp;
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:27,代码来源:bi_linea.php

示例11: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load('datafilter', 'datagrid');
     $filter = new DataFilter($this->titp, 'negocio');
     $filter->codigo = new inputField('Codigo', 'codigo');
     $filter->codigo->rule = 'max_length[5]';
     $filter->codigo->size = 7;
     $filter->codigo->maxlength = 5;
     $filter->nombre = new inputField('Nombre', 'nombre');
     $filter->nombre->rule = 'max_length[20]';
     $filter->nombre->size = 22;
     $filter->nombre->maxlength = 20;
     $filter->monto = new inputField('Monto', 'monto');
     $filter->monto->rule = 'max_length[8]';
     $filter->monto->size = 10;
     $filter->monto->maxlength = 8;
     $filter->buttons('reset', 'search');
     $filter->build();
     $uri = anchor($this->url . 'dataedit/show/<raencode><#codigo#></raencode>', '<#codigo#>');
     $grid = new DataGrid('');
     $grid->order_by('codigo');
     $grid->per_page = 40;
     $grid->column_orderby('Codigo', "{$uri}", 'codigo', 'align="left"');
     $grid->column_orderby('Nombre', "nombre", 'nombre', 'align="left"');
     $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,代码行数:33,代码来源:negocio.php

示例12: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load('datafilter', 'datagrid');
     $this->rapyd->uri->keep_persistence();
     $filter = new DataFilter('Filtro de Proveedores', 'sprv');
     $filter->proveed = new inputField('C&oacute;digo', 'proveed');
     $filter->proveed->size = 13;
     $filter->proveed->maxlength = 5;
     $filter->nombre = new inputField('Nombre', 'nombre');
     $filter->nombre->maxlength = 40;
     $filter->rif = new inputField('Rif', 'rif');
     $filter->rif->size = 13;
     $filter->rif->maxlength = 12;
     $filter->cuenta = new inputField('Cuenta contable', 'cuenta');
     $filter->cuenta->size = 13;
     $filter->cuenta->like_side = 'after';
     $filter->buttons('reset', 'search');
     $filter->build();
     $uri = anchor('compras/sprv/dataedit/show/<#id#>', '<#proveed#>');
     $grid = new DataGrid('Lista de Proveedores');
     $grid->order_by('proveed', 'asc');
     $grid->per_page = 10;
     $grid->column_orderby('C&oacute;digo', $uri, 'codigo');
     $grid->column_orderby('Nombre', 'nombre', 'nombre');
     $grid->column_orderby('R.I.F.', 'rif', 'rif');
     $grid->column_orderby('% Ret.', 'reteiva', 'reteiva', 'align=\'right\'');
     $grid->column_orderby('Cuenta', 'cuenta', 'cuenta', 'align=\'right\'');
     $grid->add('compras/sprv/dataedit/create', 'Agregar un proveedor');
     $grid->build();
     $data['content'] = $filter->output . $grid->output;
     $data['title'] = '<h1>Proveedores</h1>';
     $data['head'] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:34,代码来源:sprv.php

示例13: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load("datafilter", "datagrid");
     $this->rapyd->uri->keep_persistence();
     $filter = new DataFilter("", 'depa');
     $filter->division = new inputField("Departamento", "departa");
     $filter->division->size = 8;
     $filter->depadesc = new inputField("Descripcion", "depadesc");
     $filter->depadesc->size = 30;
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('nomina/depa/dataedit/show/<#division#>/<#departa#>', '<#division#>');
     $grid = new DataGrid("");
     $grid->order_by("division", "asc");
     $grid->per_page = 20;
     $grid->column_orderby("Divisi&oacute;n", $uri, "division");
     $grid->column_orderby("Descripci&oacute;n", "descrip", "descrip", "align='left'NOWRAP");
     $grid->column_orderby("Departamento", "departa", "departa", "align='left'NOWRAP");
     $grid->column_orderby("Descripci&oacute;n", "depadesc", "depadesc", "align='left'NOWRAP");
     $grid->add("nomina/depa/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'] = "Departamentos";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:29,代码来源:depa.php

示例14: filteredgrid

 function filteredgrid()
 {
     $this->datasis->modulo_id(61, 1);
     $this->rapyd->load("datafilter2", "datagrid");
     //
     $filter = new DataFilter2("", "fondo");
     $filter->fondo = new inputField("F. Financiamiento", "fondo");
     $filter->fondo->size = 20;
     $filter->fondo->clause = "likerigth";
     $filter->descrip = new inputField("Descripci&oacute;n", "descrip");
     $filter->descrip->size = 20;
     $filter->descrip->clause = "likerigth";
     $filter->buttons("reset", "search");
     $filter->build();
     $uri = anchor('presupuesto/fondo/dataedit/show/<raencode><#fondo#></raencode>', '<#fondo#>');
     $grid = new DataGrid("");
     $grid->order_by("fondo", "asc");
     $grid->column_orderby("Fondo", $uri, "fondo", "align='left'      ");
     $grid->column_orderby("Descripci&oacute;n", "descrip", "descrip", "align='left'NOWRAP");
     $grid->add("presupuesto/fondo/dataedit/create");
     $grid->build();
     $data['filtro'] = $filter->output;
     $data['content'] = $grid->output;
     $data['script'] = script("jquery.js") . "\n";
     $data['title'] = "{$this->titp}";
     //"  ";
     //$data['content'] = $filter->output.$grid->output;
     //$data['title']   = " $this->titp ";
     $data["head"] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:enderochoa,项目名称:tortuga,代码行数:31,代码来源:fondo.php

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


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