/** * function getHTML * <pre> * This method returns the HTML data generated by this object. * </pre> * @return [STRING] HTML Display data. */ function getHTML() { // Uncomment the following line if you want to create a template // tailored for this page: //$path = $this->pathModuleRoot.'templates/'; // Otherwise use the standard Templates for the site: $path = SITE_PATH_TEMPLATES; /* * store the link values */ // example: // $this->linkValues[ 'view' ] = 'add/new/href/data/here'; // store the link labels $this->linkLabels['edit'] = $this->labels->getLabel('[Edit]'); $this->linkLabels['del'] = $this->labels->getLabel('[Delete]'); $this->linkLabels['cont'] = $this->labels->getLabel('[Continue]'); // $this->linkLabels[ 'view' ] = 'new link label here'; /* * store any additional link Columns */ // example: //$title = $this->labels->getLabel( '[title_groups]'); //$columnLabel = $this->labels->getLabel( '[groups]'); //$link = $this->linkValues[ 'groups' ]; //$fieldName = 'accessgroup_id'; //$this->addLinkColumn( $title, $columnLabel, $link, $fieldName); /* * Update any label tags ... */ // example: // $name = $user->getName(); // $this->labels->setLabelTag( '[Title]', '[userName]', $name); // NOTE: this parent method prepares the $this->template with the // common AdminBox data. $this->prepareTemplate($path); // store the statevar id to edit $this->template->set('editEntryID', $this->cctype_id); // store all the fields to the template $this->setFormFieldsToTemplate(); /* * Form related Template variables: */ /* * Insert the date start/end values for the following date fields: */ // example: //$this->template->set( 'startYear_[fieldName]', 2000); //$this->template->set( 'endYear_[fieldName]', 2010); /* * List related Template variables : */ // Store the XML Node name for the Data Access Field List $xmlNodeName = RowManager_CreditCardTypeManager::XML_NODE_NAME; $this->template->set('rowManagerXMLNodeName', $xmlNodeName); // store the primary key field name for the data being displayed $this->template->set('primaryKeyFieldName', 'cctype_id'); // store data list to the template // NOTE: we initialize it here to make sure we capture any new data // from a recent processData() call. $dataAccessManager = new RowManager_CreditCardTypeManager(); $dataAccessManager->setSortOrder($this->sortBy); // $this->dataList = new CreditCardTypeList( $this->sortBy ); $this->dataList = $dataAccessManager->getListIterator(); $this->template->setXML('dataList', $this->dataList->getXML()); /* * Add any additional data required by the template here */ $templateName = 'siteAdminBox.php'; // if you are creating a custom template for this page then // replace $templateName with the following: //$templateName = 'page_EditCreditCardTypes.php'; return $this->template->fetch($templateName); }
/** * function getHTML * <pre> * This method returns the HTML data generated by this object. * </pre> * @return [STRING] HTML Display data. */ function getHTML() { // Uncomment the following line if you want to create a template // tailored for this page: $path = $this->pathModuleRoot . 'templates/'; // Otherwise use the standard Templates for the site: // $path = SITE_PATH_TEMPLATES; // store the page labels in XML format... // NOTE: use this location to update any label tags ... // $name = $user->getName(); // $this->labels->setLabelTag( '[Title]', '[userName]', $name); // NOTE: this parent method prepares the $this->template with the // common Form data. $this->prepareTemplate($path); /* * Form related Template variables: */ // store the button label $this->template->set('buttonText', $this->labels->getLabel('[Update]')); $cctransWarning = "<div class='notice'>Do <b>NOT</b> refresh the page or re-click the 'Update' button after initially clicking 'Update'.<br> Wait for the confirmation page to be loaded.</div>"; $this->template->set('specialInfo', $cctransWarning); // Insert the date start/end values for the following date fields: // example: //$this->template->set( 'startYear_[fieldName]', 2000); //$this->template->set( 'endYear_[fieldName]', 2010); /* * Add any additional data required by the template here */ $provinceManager = new RowManager_ProvinceManager(); $provinceList = $provinceManager->getListIterator(); $provinceArray = $provinceList->getDropListArray(); $this->template->set('list_province_id', $provinceArray); $this->template->set('list_person_local_province_id', $provinceArray); // echo '<pre>'.print_r($provinceArray,true).'</pre>'; // get a list of all credit card type IDs $ccType = new RowManager_CreditCardTypeManager(); $ccType->setSortOrder('cctype_id'); $ccTypeList = new ListIterator($ccType); $ccTypeArray = $ccTypeList->getDropListArray(); $this->template->set('list_cctype_id', $ccTypeArray); $this->ticket_price = FormProcessor_Register::TICKET_PRICE; if (strtotime("now") >= strtotime(FormProcessor_Register::LATE_DATE)) { $this->ticket_price += FormProcessor_Register::LATE_FEE; } $totalChoices = 10; $numTicketChoices = array(); for ($i = 1; $i <= $totalChoices; $i++) { $numTicketChoices[$i] = '' . $i . ' ($' . $this->ticket_price * $i . ')'; } $numTicketChoices[$totalChoices] = $numTicketChoices[$totalChoices] . ' (table)'; $this->template->set('list_num_tickets', $numTicketChoices); $donationLink = 'To make a donation towards this event, click <a href = "https://secure.crusade.org/giving/give_ministry.php">here</a> ' . 'and under "Giving Description" enter the following: "Grey Cup Breakfast - 50050".'; $this->template->set('footerContent', $donationLink); $contactInfo = 'Questions? Send an e-mail to: <a href=mailto:tickets@greycupbreakfast.ca>tickets@greycupbreakfast.ca</a>'; $this->template->set('contactInfo', $contactInfo); // uncomment this line if you are creating a template for this page //$templateName = 'page_EditMyInfo.php'; // otherwise use the generic admin box template $templateName = 'page_RegisterForm.tpl.php'; return $this->template->fetch($templateName); }
* * priceruletypes_id [INTEGER] price rule type identifier * priceruletypes_desc [STRING] Describes the price rule type (i.e. frosh discount) */ $PriceRuleType = new RowManager_PriceRuleTypeManager(); $PriceRuleType->dropTable(); $PriceRuleType->createTable(); /* * CreditCardType Table * * Manages credit card type information * * cctype_id [INTEGER] Identifier for credit card type * cctype_desc [STRING] Description of the credit card type */ $CreditCardType = new RowManager_CreditCardTypeManager(); $CreditCardType->dropTable(); $CreditCardType->createTable(); /* * PrivilegeType Table * * Manages the information pertaining to registration interface admin privilege types. * * priv_id [INTEGER] Identifier for privilege * priv_desc [STRING] Description of the privilege */ $PrivilegeType = new RowManager_PrivilegeTypeManager(); $PrivilegeType->dropTable(); $PrivilegeType->createTable(); /* * SuperAdminAssignment Table
/** * function getHTML * <pre> * This method returns the HTML data generated by this object. * </pre> * @return [STRING] HTML Display data. */ function getHTML() { // Uncomment the following line if you want to create a template // tailored for this page: //$path = $this->pathModuleRoot.'templates/'; // Otherwise use the standard Templates for the site: $path = SITE_PATH_TEMPLATES; /* * store the link values */ // example: // $this->linkValues[ 'view' ] = 'add/new/href/data/here'; // store the link labels $this->linkLabels['edit'] = $this->labels->getLabel('[Edit]'); $this->linkLabels['del'] = $this->labels->getLabel('[Delete]'); $this->linkLabels['cont'] = $this->labels->getLabel('[Continue]'); // $this->linkLabels[ 'view' ] = 'new link label here'; /* * store any additional link Columns */ // example: //$title = $this->labels->getLabel( '[title_groups]'); //$columnLabel = $this->labels->getLabel( '[groups]'); //$link = $this->linkValues[ 'groups' ]; //$fieldName = 'accessgroup_id'; //$this->addLinkColumn( $title, $columnLabel, $link, $fieldName); /* * Update any label tags ... */ // example: // $name = $user->getName(); // $this->labels->setLabelTag( '[Title]', '[userName]', $name); // NOTE: this parent method prepares the $this->template with the // common AdminBox data. $this->prepareTemplate($path); // store the statevar id to edit $this->template->set('editEntryID', $this->cctransaction_id); $this->formValues['form_name'] = 'ccTransForm'; // store all the fields to the template $this->setFormFieldsToTemplate(); /* * Form related Template variables: */ /* * Insert the date start/end values for the following date fields: */ // example: //$this->template->set( 'startYear_[fieldName]', 2000); //$this->template->set( 'endYear_[fieldName]', 2010); /* * List related Template variables : */ // Store the XML Node name for the Data Access Field List $xmlNodeName = RowManager_CreditCardTransactionManager::XML_NODE_NAME; $this->template->set('rowManagerXMLNodeName', $xmlNodeName); // store the primary key field name for the data being displayed $this->template->set('primaryKeyFieldName', 'cctransaction_id'); // store data list to the template // NOTE: we initialize it here to make sure we capture any new data // from a recent processData() call. $dataAccessManager = new RowManager_CreditCardTransactionManager(); $dataAccessManager->setSortOrder($this->sortBy); $dataAccessManager->setRegID($this->reg_id); // $this->dataList = new CreditCardTransactionList( $this->sortBy ); $this->dataList = $dataAccessManager->getListIterator(); $this->template->setXML('dataList', $this->dataList->getXML()); // replace card type IDs with card type descriptions /* $cardTypes = new RowManager_CreditCardTypeManager(); $cardTypesList = $cardTypes->getListIterator(); $cardTypesArray = $cardTypesList->getDataList(); // echo "<pre>".print_r($cardTypesArray,true)."</pre>"; $cardType_info = array(); reset($cardTypesArray); foreach(array_keys($cardTypesArray) as $k) { $cardType = current($cardTypesArray); $cardType_info[$cardType['cctype_id']] = $cardType['cctype_desc']; next($cardTypesArray); } $this->template->set('list_cctype_id', $cardType_info ); */ // get a list of all credit card type IDs $ccType = new RowManager_CreditCardTypeManager(); $ccType->setSortOrder('cctype_id'); $ccTypeList = new ListIterator($ccType); $ccTypeArray = $ccTypeList->getDropListArray(); $this->template->set('list_cctype_id', $ccTypeArray); // replaces 0s and 1s with no's and yes's $boolArray = array(); $boolArray['0'] = 'no'; $boolArray['1'] = 'yes'; $this->template->set('list_cctransaction_processed', $boolArray); /* * Add any additional data required by the template here */ $this->template->set('disableHeading', true); $this->template->set('formAnchor', 'RegCCTransactionForm'); $templateName = 'siteAdminBox.php'; // if you are creating a custom template for this page then // replace $templateName with the following: //$templateName = 'page_EditRegistrationCCTransactionsList.php'; return $this->template->fetch($templateName); }