" . $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, $iDocumentID) { 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($iDocumentID) . "\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)."
" . _("Sequence No.") . "$iSequenceNumber
 
" . generateControllerLink("viewDocument", "fDocumentID=$iDocumentID&fShowSection=documentRouting", "") . "
\n"; } ?>