New extension: categoryicons-1.0.3.zip
[vanilla-miry.git] / extensions / Statistics / Framework.Functions.php
blob40ca01e945b5043b5e82c0e0e10cbfcfe4d0d17a
1 <?php
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>';