3 function GetBasicCheckRadio($Name, $Value = 1, $Checked, $Attributes = '') {
4 return '<input type="radio" name="'.$Name.'" value="'.$Value.'"'.(($Checked == 1)?
' checked="checked"':'').$Attributes.' />';
7 function GetDynamicRadio($Name, $Value = 0, $Checked, $OnClick, $Text, $Attributes = '', $RadioID = '') {
8 if ($RadioID == '') $RadioID = $Name.'ID';
9 $Attributes .= ' id="'.$RadioID.'"';
10 if ($OnClick != '') $Attributes .= ' onclick="'.$OnClick.'"';
11 return '<label for="'.$RadioID.'">'.GetBasicCheckRadio($Name, $Value, $Checked, $Attributes).' '.$Text.'</label>';