\n";
+ }
+}
+
+// gets the cancel button when a User is selected
+function getCancelButton($oUser) {
+ global $default;
+ if (!isset($oUser)) {
+ //return "
\n";
+ }
+}
+
+// show the list box when no User selected
+// then shows a text box with the User's name
+function getUserDisplay($oUser) {
+ global $default;
+ if (!isset($oUser)) {
+
+ //$sWhereClause = " ST.has_lookup = 1" ;
+ $oPatternListBox = & new PatternListBox($default->owl_users_table, "username", "id", "fUserID");
+
+ $sFromClause = "," . $default->owl_web_sites_table ." aS WB ";
+ $sWhereClause = "ST.id = WB.web_master_id" ;
+ $oPatternListBox->setFromClause($sFromClause);
+ $oPatternListBox->setWhereClause($sWhereClause);
+ //$oPatternListBox->setIncludeDefaultValue(true);
+ //$oPatternListBox->setWhereClause($sWhereClause);
+ $oPatternListBox->setPostBackOnChange(true);
+ return $oPatternListBox->render();
+ } else {
+ return "iId . "\">\n" .
+ $oUser->getUserName();
+ }
+
+}
+
+// show the list box when no User selected
+// then shows a text box with the User's name
+function getUserChangedDisplay($oUser) {
+ global $default;
+
+
+ $oPatternListBox = & new PatternListBox($default->owl_users_table, "username", "id", "fUserID");
+
+ //$oPatternListBox->setIncludeDefaultValue(true);
+ $oPatternListBox->setSelectedValue($oUser->getID());
+ $oPatternListBox->setIncludeDefaultValue(false) ;
+
+
+ //$oPatternListBox->setPostBackOnChange(true);
+ return $oPatternListBox->render();
+
+
+}
+
+// show the list box when no User selected
+// then shows a text box with the User's name
+function getWebSiteDisplay($oWebSite,$iUserID) {
+ global $default;
+ if (!isset($oWebSite)) {
+
+
+ $sWhereClause = " ST.web_master_id = " . $iUserID;
+ $oPatternListBox = & new PatternListBox($default->owl_web_sites_table, "web_site_name", "id", "fWebSiteID");
+ //$oPatternListBox->setIncludeDefaultValue(true);
+ $oPatternListBox->setWhereClause($sWhereClause);
+ $oPatternListBox->setPostBackOnChange(true);
+ return $oPatternListBox->render();
+ } else {
+ return "iId . "\">\n" .
+ "getWebSiteName() . "\">\n" .
+ "getWebSiteName() . "\">\n" ;
+
+
+ }
+}
+
+
+
+// show the list box when no User selected
+// then shows a text box with the User's name
+function getWebSiteUrl($oWebSite,$iUserID) {
+ global $default;
+ if (!isset($oWebSite)) {
+ return "";
+ }else{
+
+ return "getWebSiteURL() . "\">\n" .
+ "getWebSiteURL() . "\">\n" ;
+ }
+}
+?>
\ No newline at end of file