* * 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 * * Assigns super admin privilege to particular viewers. * * superadmin_id [INTEGER] Unique identifier for super admin * viewer_id [INTEGER] Identifier of the viewer/user assigned the super-admin role. */ $SuperAdminAssignment = new RowManager_SuperAdminAssignmentManager(); $SuperAdminAssignment->dropTable(); $SuperAdminAssignment->createTable(); /* * EventAdminAssignment 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->eventadmin_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_EventAdminAssignmentManager::XML_NODE_NAME; $this->template->set('rowManagerXMLNodeName', $xmlNodeName); // store the primary key field name for the data being displayed $this->template->set('primaryKeyFieldName', 'eventadmin_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_EventAdminAssignmentManager(); $dataAccessManager->setEventID($this->event_id); $dataAccessManager->setSortOrder($this->sortBy); // $this->dataList = new EventAdminAssignmentList( $this->sortBy ); $this->dataList = $dataAccessManager->getListIterator(); $this->template->setXML('dataList', $this->dataList->getXML()); /* * Add any additional data required by the template here */ // get a list of all viewer_id's $viewer = new RowManager_ViewerManager(); $viewer->setSortOrder('viewer_userID'); $viewerList = new ListIterator($viewer); $viewerArray = $viewerList->getDropListArray(); $this->template->set('list_viewer_id', $viewerArray); // get a list of all privilege_id's $privilege = new RowManager_PrivilegeTypeManager(); $privilege->setSortOrder('priv_desc'); $privilegeList = new ListIterator($privilege); $privilegeArray = $privilegeList->getDropListArray(); $this->template->set('list_priv_id', $privilegeArray); $templateName = 'siteAdminBox.php'; // if you are creating a custom template for this page then // replace $templateName with the following: //$templateName = 'page_AddEventAdmin.php'; return $this->template->fetch($templateName); }