\n";
return $sToRender;
}
// show the list box when no Role selected
// then shows a text box with the role's name
function getRoleDisplay($oRole) {
global $default;
if (!isset($oRole)) {
$oPatternListBox = & new PatternListBox($default->owl_roles_table, "name", "id", "fRoleID");
//$oPatternListBox->setIncludeDefaultValue(true);
$oPatternListBox->setPostBackOnChange(true);
return $oPatternListBox->render();
} else {
return "iId . "\">\n" .
"getName() . "\">";
}
}
// returns the checkbox ticked or unticked
function getReadableCheckBox($oRole) {
if (!isset($oRole)) {
return "";
} else {
return "getReadable() ? "CHECKED " : " ") . " />";
}
}
// returns the checkbox ticked or unticked
function getWriteableCheckBox($oRole) {
if (!isset($oRole)) {
return "";
} else {
return "getWriteable() ? "CHECKED " : " ") . " />";
}
}
// gets the updatebutton when a group is selected
function getUpdateButton($oRole) {
global $default;
if (!isset($oRole)) {
return "Please select a Role: ";
} else {
return "