本文整理汇总了PHP中DataGrid::sigmaDsConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP DataGrid::sigmaDsConfig方法的具体用法?PHP DataGrid::sigmaDsConfig怎么用?PHP DataGrid::sigmaDsConfig使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataGrid
的用法示例。
在下文中一共展示了DataGrid::sigmaDsConfig方法的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);
}