siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
$sTDBGColour = $default->siteMap->getSectionColour($sSectionName, "td");
$sFolderPathLink = displayFolderPathLink(Folder::getFolderPathAsArray($iFolderID), Folder::getFolderPathNamesAsArray($iFolderID), "$default->rootUrl/control.php?action=browse");
return "
\n";
}
function getGroupDropDown($iFolderCollaborationID, $iFolderID, $iGroupID) {
global $default;
$oPatternListBox = & new PatternListBox($default->groups_table, "Name", "ID", "fGroupID");
$oPatternListBox->setPostBackOnChange(true);
$oPatternListBox->setOnChangeAction("setActionAndSubmit('" . $_SERVER["userID"] . "?fFolderID=$iFolderID&fFolderCollaborationID=$iFolderCollaborationID');");
if (isset($iGroupID)) {
$oPatternListBox->setSelectedValue($iGroupID);
}
return $oPatternListBox->render();
}
function getUserDropDown($iGroupID, $iUserID) {
global $default;
if (!(isset($iGroupID))) {
$iGroupID = -1;
}
$oPatternListBox = & new PatternListBox($default->users_table, "Name", "ID", "fUserID", "UGL.group_id = $iGroupID");
$oPatternListBox->setFromClause("INNER JOIN $default->users_groups_table AS UGL ON UGL.user_id = ST.id");
if (isset($iUserID)) {
$oPatternListBox->setSelectedValue($iUserID);
}
return $oPatternListBox->render();
}
function getEditPage($iFolderCollaborationID, $iFolderID, $iGroupID, $iUserID, $iRoleID, $iSequenceNumber) {
global $default;
$sToRender = renderHeading(_("Edit Folder Collaboration Step"));
$sToRender .= getFolderPath($iFolderID);
$sToRender .= "\n";
$sToRender .= "\n\n\n\n";
return $sToRender;
}
function getRoleDropDown($iRoleID) {
global $default;
$oPatternListBox = & new PatternListBox("$default->roles_table", "name", "id", "fRoleID");
$oPatternListBox->setEmptyErrorMessage(_("There are no users in this group"));
if (isset($iRoleID)) {
$oPatternListBox->setSelectedValue($iRoleID);
}
return $oPatternListBox->render();
}
?>