\n";
$sToRender .= "\n\n\n\n";
return $sToRender;
}
function getFolderPath($iFolderID) {
global $default;
return displayFolderPathLink(Folder::getFolderPathAsArray($iFolderID), "$default->owl_root_url/control.php?action=browse");
}
function getGroupDropDown($iGroupID) {
global $default;
$oPatternListBox = & new PatternListBox("$default->owl_groups_table", "name", "id", "fGroupID");
$oPatternListBox->setEmptyErrorMessage("There are no groups");
$oPatternListBox->setIncludeDefaultValue(false);
if (isset($iGroupID)) {
$oPatternListBox->setSelectedValue($iGroupID);
}
return $oPatternListBox->render();
}
function getRoleDropDown($iRoleID) {
global $default;
$oPatternListBox = & new PatternListBox("$default->owl_roles_table", "name", "id", "fRoleID");
$oPatternListBox->setEmptyErrorMessage("There are no roles");
$oPatternListBox->setIncludeDefaultValue(false);
if (isset($iRoleID)) {
$oPatternListBox->setSelectedValue($iRoleID);
}
return $oPatternListBox->render();
}
?>