protected function Form_Run() { QApplication::$LoadedPage = 'Home'; if ($_SESSION['User'] == '') { QApplication::Redirect('index.php'); } }
protected function Form_Create() { QApplication::$LoadedPage = 'My Contacts'; // Instantiate the Meta DataGrid $this->dtgPeopledetailses = new PeopledetailsDataGrid($this); // Style the DataGrid (if desired) $this->dtgPeopledetailses->CssClass = 'datagrid'; $this->dtgPeopledetailses->AlternateRowStyle->CssClass = 'alternate'; // Add Pagination (if desired) $this->dtgPeopledetailses->Paginator = new QPaginator($this->dtgPeopledetailses); $this->dtgPeopledetailses->ItemsPerPage = 20; // Use the MetaDataGrid functionality to add Columns for this datagrid // Create an Edit Column $strEditPageUrl = 'peopledetails_edit.php'; $this->dtgPeopledetailses->MetaAddEditLinkColumn($strEditPageUrl, 'Edit', 'Edit'); // Create the Other Columns (note that you can use strings for peopledetails's properties, or you // can traverse down QQN::peopledetails() to display fields that are down the hierarchy) $this->dtgPeopledetailses->MetaAddColumn('Id'); $this->dtgPeopledetailses->MetaAddColumn('FullName'); $this->dtgPeopledetailses->MetaAddColumn('Address'); $this->dtgPeopledetailses->MetaAddColumn('Phone'); $this->dtgPeopledetailses->MetaAddColumn('Email'); $this->lnkGContacts_Create(); $this->lnkHome_Create(); $this->txtSearchTerm_Create(); $this->btnSearch_Create(); $this->pnlHeader_Create(); }
protected function Form_Create() { QApplication::$LoadedPage = 'Registeration'; $this->pnlHeader_Create(); $this->txtConfirmPass_Create(); $this->btnCheckAvail_Create(); $this->btnCancel_Create(); $this->MemberDetails_Create(); }
protected function Form_Create() { QApplication::$LoadedPage = 'My Library'; $this->objWaitIcon = new QWaitIcon($this); $this->txtSearchTerm_Create(); $this->btnSearch_Create(); $this->rdbSearchCategory_Create(); $this->rdbSearchOptions_Create(); $this->dtrMyLibrary_Create(); $this->lnkAddAssets_Create(); $this->lnkHome_Create(); $this->objConfirm_Create(); $this->dlgPeopleBox_Create(); $this->pnlHeader_Create(); if (isset($_POST['txtSearchAssets'])) { $this->txtSearchTerm = $_POST['txtSearchAssets']; } }
protected function Form_Create() { QApplication::$LoadedPage = 'Lend my things'; $this->pnlLeft_Create(); $this->pnlRight_Create(); $this->txtSearchAssets_Create(); $this->btnSearchAssets_Create(); $this->btnLendAssets_Create(); $this->btnBorrowAssets_Create(); $this->dtrAssets_Create(); $this->dtrBasket_Create(); $this->lnkEmptyBasket_Create(); $this->dlgPeopleBox_Create(); $this->lnkChoosePerson_Create(); $this->lnkListView_Create(); $this->lnkCoverView_Create(); $this->LoadAssets(); $this->LoadPeople(); $this->pnlHeader_Create(); }
protected function Form_Create() { QApplication::$LoadedPage = 'Home'; $this->pnlTitle = new QPanel($this); $this->pnlTitle->Text = __VEDA_VERSION__; $this->pnlList = new QPanel($this, 'pnlList'); $this->pnlList->AutoRenderChildren = true; $this->pnlEdit = new QPanel($this, 'pnlEdit'); $this->pnlEdit->AutoRenderChildren = true; $this->pnlEdit->Visible = true; $this->objDefaultWaitIcon = new QWaitIcon($this); $this->lnkMyLibrary = new QLinkButton($this); $this->lnkMyLibrary->Text = "My Library"; $this->lnkMyLibrary->AddAction(new QClickEvent(), new QServerAction('lnkMyLibrary_Click', $this->objDefaultWaitIcon)); $this->lnkAmazonSearch = new QLinkButton($this); $this->lnkAmazonSearch->Text = "Add an Asset"; $this->lnkAmazonSearch->AddAction(new QClickEvent(), new QServerAction('lnkAmazonSearch_Click', $this->objDefaultWaitIcon)); $this->lnkAddContact = new QLinkButton($this); $this->lnkAddContact->Text = "Add a new Contact"; $this->lnkAddContact->AddAction(new QClickEvent(), new QServerAction('lnkAddContact_Click', $this->objDefaultWaitIcon)); $this->lnkShareAssets = new QLinkButton($this); $this->lnkShareAssets->Text = "Share your Assets"; $this->lnkShareAssets->AddAction(new QClickEvent(), new QServerAction('lnkShareAssets_Click', $this->objDefaultWaitIcon)); /** * Create the Login and signup elements here * **/ $this->txtUserId_Create(); $this->txtPassword_Create(); $this->btnLogin_Create(); $this->lnkRegister_Create(); $this->lnkSignOut_Create(); $this->pnlHeader_Create(); //Create the Checkbox to Remember $this->chkRemember_Create(); //$this->dtgShareDetails_Create(); }
protected function Form_Run() { QApplication::CheckRemoteAdmin(); QApplication::$LoadedPage = 'Import Contacts'; }
protected function Form_Run() { QApplication::$LoadedPage = 'Asset Log'; QApplication::CheckRemoteAdmin(); }
protected function Form_Run() { QApplication::CheckRemoteAdmin(); QApplication::$LoadedPage = 'Search and Add Assets'; }