\n";
$sToRender .= "\n";
@@ -71,8 +75,6 @@ function getAddPageFail() {
return $sToRender;
}
-
-// if edition is successful print otu success page
function getPageFail() {
global $default;
@@ -87,10 +89,9 @@ function getPageFail() {
$sToRender .= "\n";
$sToRender .= "\n";
-
return $sToRender;
}
-// if edition is successful print otu success page
+
function getAddPageToOrgFail() {
global $default;
@@ -106,23 +107,15 @@ function getAddPageToOrgFail() {
$sToRender .= "\n";
$sToRender .= "\n";
-
return $sToRender;
}
-
-// show the list box when no unit selected
-// then shows a text box with the unit's name
-function getOrgDisplay($oOrg) {
+/**
+ * Displays a drop down list of organisations
+ */
+function getOrgDisplay() {
global $default;
- if (!isset($oOrg)) {
- $oPatternListBox = & new PatternListBox($default->owl_organisations_table, "name", "id", "fOrgID");
- return $oPatternListBox->render();
- } else {
- return "iId . "\">\n" .
- "" . $oOrg->getName() . "\">";
- }
-
+ $oPatternListBox = & new PatternListBox($default->owl_organisations_table, "name", "id", "fOrgID");
+ return $oPatternListBox->render();
}
-
?>
\ No newline at end of file