" . $oGroup->getName(); } function getUserDropDown($iGroupID, $iUserID) { global $default; $oPatternListBox = & new PatternListBox("$default->users_table", "name", "id", "fUserID"); $sFromClause = "INNER JOIN $default->users_groups_table AS UGL ON ST.id = UGL.user_id "; $oPatternListBox->setFromClause($sFromClause); $sWhereClause = "UGL.group_id = $iGroupID"; $oPatternListBox->setWhereClause($sWhereClause); $oPatternListBox->setIncludeDefaultValue(false); if (isset($iUserID)) { $oPatternListBox->setSelectedValue($iUserID); } $oPatternListBox->setEmptyErrorMessage("There are no users in this group"); return $oPatternListBox->render(); } function getRole($iRoleID) { $oRole = Role::get($iRoleID); return "" . $oRole->getName(); /*global $default; $oPatternListBox = & new PatternListBox("$default->roles_table", "name", "id", "fRoleID"); if (isset($iRoleID)) { $oPatternListBox->setSelectedValue($iRoleID); } $oPatternListBox->setEmptyErrorMessage("There are no users in this group"); return $oPatternListBox->render();*/ } function getDocumentRoutingPage($iGroupID, $iUserID, $iRoleID, $iSequenceNumber, $fDocumentID) { global $default; $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); $sTDBGColour = $default->siteMap->getSectionColour($sSectionName, "td"); $sTHBGColour = $default->siteMap->getSectionColour($sSectionName, "th"); return renderHeading("Edit Document Approval Routing") . displayDocumentPath($fDocumentID) . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "
Document Routing
Group".getGroupRow($iGroupID)."
Role".getRole($iRoleID)."
Player".getUserDropDown($iGroupID, $iUserID)."
Seq. no.$iSequenceNumber
 
graphicsUrl/widgets/update.gif\" border=\"0\"/>" . generateControllerLink("viewDocument", "fDocumentID=$fDocumentID&fShowSection=documentRouting", "graphicsUrl/widgets/cancel.gif\" border=\"0\"/>") . "
\n"; } ?>