fileSystemRoot/lib/visualpatterns/PatternListBox.inc"); global $default; if(checkSession()) { // include the page template (with navbar) require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); // when email button sent..send email if ($submit) { //$success = $ //if successful ..rerender the page if($success == True) { $Center = "
Group Successfully Added
"; $oPatternCustom = & new PatternCustom(); $oPatternCustom->setHtml($Center); $main->setCentralPayload($oPatternCustom); $main->render(); } Else { $Center = "
Group Addition Unsuccessful
"; $oPatternCustom = & new PatternCustom(); $oPatternCustom->setHtml($Center); $main->setCentralPayload($oPatternCustom); $main->render(); } } $Center = "

New Group:
"; $oPatternListBox = & new PatternListBox("units_lookup", "name", "id", "Units"); //echo "" . $oPatternListBox->render() . ""; $oPatternCustom = & new PatternCustom(); $oPatternCustom->setHtml($Center); $main->setCentralPayload($oPatternCustom); $main->setFormAction($_SERVER["PHP_SELF"]); $main->render(); } ?>