\n";
return $sToRender;
}
// show listbox...or the text name
function getUnitDisplay($oUnit) {
global $default;
if (!isset($oUnit)) {
$oPatternListBox = & new PatternListBox($default->units_table, "name", "id", "fUnitID");
$oPatternListBox->setIncludeDefaultValue(true);
$oPatternListBox->setPostBackOnChange(true);
return $oPatternListBox->render();
} else {
return "iId . "\">\n" .
"" . $oUnit->getName() . "";
}
}
// show listbox...or the text name
function getOrgDisplay($oOrg) {
global $default;
if (isset($oOrg)) {
return "iId . "\">\n" .
"" . $oOrg->getName() . "";
} else {
return "* " . _("Not Assigned to an Organisation") . "";
}
}
// show delete button
function getDeleteButton($oUnit) {
global $default;
if (isset($oUnit)) {
return "