Renders checkbox options for this group.
Reimplemented from XoopsFormElement. Definition at line 256 of file grouppermform.php. References $ret, _renderOptionTree(), and XoopsFormElement.getName(). 00257 { 00258 $ele_name = $this->getName(); 00259 $ret = '<table class="outer"><tr><td class="odd"><table><tr>'; 00260 $cols = 1; 00261 foreach ($this->_optionTree[0]['children'] as $topitem) { 00262 if ($cols > 4) { 00263 $ret .= '</tr><tr>'; 00264 $cols = 1; 00265 } 00266 $tree = '<td valign="top">'; 00267 $prefix = ''; 00268 $this->_renderOptionTree($tree, $this->_optionTree[$topitem], $prefix); 00269 $ret .= $tree.'</td>'; 00270 $cols++; 00271 } 00272 $ret .= '</tr></table></td><td class="even" valign="top">'; 00273 foreach (array_keys($this->_optionTree) as $id) { 00274 if (!empty($id)) { 00275 $option_ids[] = "'".$ele_name.'[groups]['.$this->_groupId.']['.$id.']'."'"; 00276 } 00277 } 00278 $checkallbtn_id = $ele_name.'[checkallbtn]['.$this->_groupId.']'; 00279 $option_ids_str = implode(', ', $option_ids); 00280 $ret .= _ALL." <input id=\"".$checkallbtn_id."\" type=\"checkbox\" value=\"\" onclick=\"var optionids = new Array(".$option_ids_str."); xoopsCheckAllElements(optionids, '".$checkallbtn_id."');\" />"; 00281 $ret .= '</td></tr></table>'; 00282 return $ret; 00283 }
Here is the call graph for this function:
![]()
|
1.5.5