當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DataGrid::column_sigma方法代碼示例

本文整理匯總了PHP中DataGrid::column_sigma方法的典型用法代碼示例。如果您正苦於以下問題:PHP DataGrid::column_sigma方法的具體用法?PHP DataGrid::column_sigma怎麽用?PHP DataGrid::column_sigma使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在DataGrid的用法示例。


在下文中一共展示了DataGrid::column_sigma方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load('datafilter', 'datagrid');
     $grid = new DataGrid('Lista de Marcas', 'marc');
     $grid->order_by('marca', 'ASC');
     $grid->per_page = 60;
     $grid->column_sigma('Marca', "marca", "", "width:240, editor: { type: 'text'} ");
     $grid->column_sigma('Productos', "produ", "float", "align: 'right', width:90 ");
     $mtool = '';
     //$sigmaA     = $grid->sigmaDsConfig();
     $sigmaA = $grid->sigmaDsConfig("marc", "marca", "inventario/marc/");
     $dsOption = $sigmaA["dsOption"];
     $grupver = "";
     $colsOption = $sigmaA["colsOption"];
     $gridOption = $sigmaA["gridOption"];
     $gridGuarda = "\nfunction guardar(value, oldValue, record, col, grid) {\n\tvar murl='';\n\tmurl = '" . base_url() . "/inventario/marc/modifica/'+encodeURIComponent(oldValue)+'/'+col.id+'/'+encodeURIComponent(value);\n\tif ( value != oldValue ) { \$.ajax({url: murl,context: document.body}); }\n};";
     $gridGo = "\nvar mygrid=new Sigma.Grid(gridOption);\nmygrid.toolbarContent = 'nav | pagesize | reload | add del save | print | filter | state';\nmygrid.saveURL = '" . base_url() . "inventario/marc/controlador',\nmygrid.width = 360;\nmygrid.height = 400;\nmygrid.toolbarContent = 'nav | pagesize | reload | add del save | print | filter | state';\nSigma.Util.onLoad( Sigma.Grid.render(mygrid) );";
     $SigmaCont = "<center><div id=\"grid1_container\" style=\"width:400px;height:400px;\"></div></center>";
     $grid->add("inventario/marc/dataedit/create");
     $grid->build('datagridSG');
     $data['style'] = style("redmond/jquery-ui.css");
     $data['style'] .= style('gt_grid.css');
     $data["script"] = script("jquery.js");
     $data['script'] .= script("gt_msg_es.js");
     $data['script'] .= script("gt_grid_all.js");
     $data['script'] .= "<script type=\"text/javascript\" >\n";
     $data['script'] .= $dsOption . $grupver . "\n";
     $data['script'] .= $colsOption . "\n";
     $data['script'] .= $gridOption;
     $data['script'] .= $gridGuarda;
     $data['script'] .= $gridGo;
     $data['script'] .= "\n</script>";
     $data['content'] = $mtool . $SigmaCont;
     //$grid->output;
     $data['title'] = heading('Marcas');
     $data['head'] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
開發者ID:codethics,項目名稱:proteoerp,代碼行數:38,代碼來源:marc.php


注:本文中的DataGrid::column_sigma方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。