function Page($LocalPageName = '<null>', $PathFromRoot = '', $PathToRoot = '../', $PageTitle = 'Untitled Document') { $this->Viewer =& new Viewer(); if ($this->Viewer->isAuthenticated() == False) { $this->Redirect("{$PathToRoot}Login/Login.php?M=D&CP={$PathFromRoot}{$LocalPageName}"); } else { $this->PageName = $LocalPageName; $this->PathFromRootDir = $PathFromRoot; $this->PathToRootDir = $PathToRoot; $this->PageTitle = $PageTitle; $this->PageBackgroundImage = "<null>"; $this->BodyParameters = "<null>"; $this->CharacterSet = "iso-8859-1"; $this->Styles = array(); $this->JScripts = array(); $this->OnLoadEvents = array(); DisplayObject::DisplayObject(); // Call the parent Object's Constructor // Check to see if there was a Language Change requested on current page: if (isset($_REQUEST[SESSION_ID_LANG]) == true) { $_SESSION[SESSION_ID_LANG] = $_REQUEST[SESSION_ID_LANG]; } // Now check to see if there is a current Language setting in the stored session info if (isset($_SESSION[SESSION_ID_LANG])) { $this->Viewer->LanguageID = $_SESSION[SESSION_ID_LANG]; } } }
function Page_v1($LocalPageName = '<null>', $PathFromRoot = '', $PathToRoot = '../', $PageTitle = 'Untitled Document') { $this->Viewer =& new Viewer(); if ($this->Viewer->IsAuthenticated == False) { $this->Redirect("{$PathToRoot}Authenticate.php?CP={$PathFromRoot}{$LocalPageName}"); } else { $this->PageName = $LocalPageName; $this->PathFromRootDir = $PathFromRoot; $this->PathToRootDir = $PathToRoot; $this->PageTitle = $PageTitle; $this->PageBackgroundImage = "{$PathToRoot}../Pages/Images/Gen_bkg.gif"; $this->BodyParameters = 'vlink="#660000" alink="#660000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" '; $this->TitleImage = 'Images/ttl_Current.gif'; $this->Styles = array(); $this->JScripts = array(); $this->OnLoadEvents = array(); DisplayObject::DisplayObject(); // Call the parent Object's Constructor $this->AddStyle('Reports'); $this->AddStyle('Section'); $this->AddStyle('Subscriptions'); } }
function EazyFormTemplate($CallBack, $ViewerID, $LanguageID, $LabelSeries = 'AdminGen', $templatePath = 'Data/Templates/', $templateName = 'ez_FormTemplate.php') { DisplayObject::DisplayObject(); // Call the Parent Constructor. $this->formDataStruct = new EazyFormTemplate_DataStructure(); $this->formLabels = new MultiLingual_Labels('AI', $LabelSeries, $this->formName, $LanguageID); $this->formDataStruct->name = $this->formName; $this->formDataStruct->title = $this->formLabels->Label('[form_title]'); $this->formDataStruct->callback = $CallBack; $this->viewerID = $ViewerID; $this->languageID = $LanguageID; $this->formTemplatePath = $templatePath; $this->formTemplateName = $templateName; $this->values = array(); $this->formButton = explode(',', $this->form_buttonlist); $this->itemItem = explode(',', $this->item_list); $this->itemType = explode(',', $this->item_typelist); $this->itemInvalid = explode(',', $this->item_invalidlist); // Set Values to a default state. $this->initValues(); }
function TimePicker($Name = '', $DefaultValue = '00:00:00', $FormatString = 'H:M') { DisplayObject::DisplayObject(); $this->Name = $Name; $this->Value = $DefaultValue; $this->FormatString = $FormatString; }
function MultiLingual_Image($ImageName, $ImageType, $LanguageID) { DisplayObject::DisplayObject(); switch ($LanguageID) { case 1: $Temp = '_en'; break; case 2: $Temp = '_cn'; break; case 3: $Temp = '_ko'; break; } $this->ImageFileName = $ImageName . $Temp . $ImageType; // In Future Perform File Checking here, and default to _en or // unmodified file names if they Exist. If they don't then put // HTML Message "Image XXX Not Found." $this->AddToDisplayList("<img src=\"" . $this->ImageFileName . "\" >"); }
function MenuBar() { DisplayObject::DisplayObject(); $this->MenuItems = array(); $this->MenuItemTypes = array(); }
function DisplayObject_MySQLDB($DBName, $DBPath, $DBUserID, $DBPWord) { DisplayObject::DisplayObject(); // Call the Parent Constructor. $this->DBName = $DBName; $this->DBPath = $DBPath; $this->DBUserID = $DBUserID; $this->DBPWord = $DBPWord; $this->IsDBInitialized = false; }