\n";
return $sToRender;
}
// if no group selected show selection fail page
function getPageNotSelected() {
global $default;
$sToRender .= " \n";
$sToRender .= "Sorry, Selection Failed\n";
$sToRender .= "
\n";
return $sToRender;
}
// show success page if removed from unit successfully
function getPageSuccess() {
global $default;
$sToRender .= " \n";
$sToRender .= "Success!\n";
$sToRender .= "
\n";
return $sToRender;
}
// show listbox of groups belonging to groups_units_link table
function getGroupDisplay($oGroup) {
global $default;
// added clauses to get those groups belonging to the groups_units_link table
$from = "," . $default->owl_groups_units_table . " AS GU";
$where = "(ST.id = GU.group_id)";
if (!isset($oGroup)) {
$oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fGroupID");
$oPatternListBox->setWhereClause($where);
$oPatternListBox->setFromClause($from);
//$oPatternListBox->setIncludeDefaultValue(true);
//$oPatternListBox->setPostBackOnChange(true);
return $oPatternListBox->render();
} else {
return "iId . "\">\n" .
$oGroup->getName();
}
}
// show unit details on confirm deletion page
function getUnitDisplay($oUnit) {
global $default;
if (!isset($oUnit)) {
//$oPatternListBox = & new PatternListBox($default->owl_units_table, "name", "id", "fUnitID");
//$oPatternLiListBoxstBox->setPostBackOnChange(true);
//return $oPatternListBox->render();
} else {
return "iId . "\">\n" .
$oUnit->getName();
}
}
// show delete button or select button
function getDeleteButton($oGroup) {
global $default;
if (!isset($oGroup)) {
return "