\n";
return $sToRender;
}
// show the list box when no unit selected
// then shows a text box with the unit's name
function getUnitDisplay($oUnit) {
global $default;
if (!isset($oUnit)) {
$oPatternListBox = & new PatternListBox($default->owl_units_table, "name", "id", "fUnitID");
$oPatternListBox->setPostBackOnChange(true);
return $oPatternListBox->render();
} else {
return "iId . "\">\n" .
"getName() . "\">";
}
}
// gets the updatebutton when a unit is selected
function getUpdateButton($oUnit) {
global $default;
if (isset($oUnit)) {
return "graphicsUrl/widgets/update.gif\" value=\"submit\" border=\"0\"/>\n";
}
}
// gets the cancel button when a unit is selected
function getCancelButton($oUnit) {
global $default;
if (!isset($oUnit)) {
return "rootUrl/control.php?action=unitManagement\">graphicsUrl/widgets/cancel.gif\" value=\"cancel\" border=\"0\"/>\n";
} else {
return "rootUrl/control.php?action=listUnits\">graphicsUrl/widgets/cancel.gif\" border=\"0\" />\n";
}
}
?>