Add support for application-wide notes

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-07-28 17:48:52 +02:00
parent 7682b4ae67
commit c37fbc6295
5 changed files with 110 additions and 30 deletions

View File

@@ -288,4 +288,21 @@ function html_note($shTitle, $shBody)
return $shRet;
}
function html_radiobuttons($aIds, $aOptions, $sName, $sDefault = '')
{
$shRet = '';
for($i = 0; $i < sizeof($aIds); $i++)
{
if($aIds[$i] == $sDefault)
$shChecked = ' checked="checked"';
else
$shChecked = '';
$shRet .= '<input type="radio" name="'.$sName.'" value="'.$aIds[$i]."\"$shChecked> " . $aOptions[$i].'<br />';
}
return $shRet;
}
?>