本文整理匯總了PHP中sadaf_datagrid::openHeaderGroup方法的典型用法代碼示例。如果您正苦於以下問題:PHP sadaf_datagrid::openHeaderGroup方法的具體用法?PHP sadaf_datagrid::openHeaderGroup怎麽用?PHP sadaf_datagrid::openHeaderGroup使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類sadaf_datagrid
的用法示例。
在下文中一共展示了sadaf_datagrid::openHeaderGroup方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
<?php
//---------------------------
// programmer: Mahdipour
// create Date: 90.02
//---------------------------
require_once '../../../header.inc.php';
require_once inc_dataGrid;
require_once '../js/salary_param_type.js.php';
$pdg = new sadaf_datagrid("pdg", $js_prefix_address . "../data/salary_param_type.data.php?task=selectAll", "pdgDiv");
$pdg->addColumn('', "param_type", "int", true);
$col = $pdg->addColumn('عنوان پارامتر', "title", "string");
$col->editor = ColumnEditor::TextField();
$col = $pdg->addColumn("نوع شخص", "person_type_title", "int");
$col->width = 100;
$pdg->openHeaderGroup("پارامترهای مرتبط");
$col = $pdg->addColumn('پارامتر1', "dim1_id");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_SalaryParam(), "id", "value");
$col->width = 100;
$col = $pdg->addColumn('پارامتر2', "dim2_id");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_SalaryParam(), "id", "value");
$col->width = 100;
$col = $pdg->addColumn('پارامتر3', "dim3_id");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_SalaryParam(), "id", "value");
$col->width = 100;
$col = $pdg->addColumn('پارامتر4', "dim4_id");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_SalaryParam(), "id", "value");
$col->width = 100;
$pdg->closeHeaderGroup();
$pdg->addButton = true;
$pdg->addHandler = "function(v,p,r){ return SalaryParamTypeObject.AddSPT(v,p,r);}";