function BindCheckList($checkboxPrefix, $basicTypeId) { $obj = new CHECKBOXLIST(); $obj->datasource = PdoDataAccess::runquery("select * from Basic_Info where TypeID=" . $basicTypeId); $obj->idfield = $checkboxPrefix . "%InfoID%"; $obj->valuefield = $checkboxPrefix . "%InfoID%"; $obj->textfield = "%Title%"; $obj->columnCount = 4; $obj->Allchecked = true; $obj->EnableCheckAllButton = true; return $obj->bind_checkboxlist(); }
public static function CHK_employee_modes($checkboxPrefix, $selectedArray = array(), $columnCount = 1, $enableAllCheck = true) { $obj = new CHECKBOXLIST(); $obj->datasource = PdoDataAccess::runquery("select * from Basic_Info where TypeID=4"); $obj->idfield = $checkboxPrefix . "%InfoID%"; $obj->valuefield = $checkboxPrefix . "%InfoID%"; $obj->textfield = "%Title%"; $obj->columnCount = $columnCount; $obj->Allchecked = true; $obj->EnableCheckAllButton = $enableAllCheck; return $obj->bind_checkboxlist($selectedArray); }