/** * function getHTML * <pre> * This method returns the HTML data generated by this object. * </pre> * @return [STRING] HTML Display data. */ function getHTML() { // Make a new Template object $path = SITE_PATH_TEMPLATES; // Replace $path with the following line if you want to create a // template tailored for this page: //$path = $this->pathModuleRoot.'templates/'; $this->template = new Template($path); // store the form action data $this->template->set('formAction', $this->formCallBack); // store the page labels used by this template... // NOTE: use this location to update any label tags ... $userID = $this->itemManager->getUserID(); $this->labels->setLabelTag('[Title]', '[viewerUserID]', $userID); $this->template->setXML('pageLabels', $this->labels->getLabelXML()); // store the field names being displayed $fieldNames = explode(',', page_DeleteViewer::DISPLAY_FIELDS); $this->template->set('dataFieldList', $fieldNames); // store XML Data of item $this->template->setXML('dataItem', $this->itemManager->getXML()); // store language list for display $languageManager = new RowManager_LanguageManager(); $context = new MultilingualManager($this->viewer->getLanguageID()); $bridge = $languageManager->getRowLabelBridge($context); $languageList = $bridge->getListIterator(); $languageArray = $languageList->getDropListArray(); $this->template->set('list_language_id', $languageArray); $isActiveList = array(); $isActiveList['1'] = $this->labels->getLabel('[yes]'); $isActiveList['0'] = $this->labels->getLabel('[no]'); $this->template->set('list_viewer_isActive', $isActiveList); // uncomment this line if you are creating a template for this page //$templateName = 'page_DeleteViewer.php'; // otherwise use the generic admin box template $templateName = 'siteDeleteConf.php'; return $this->template->fetch($templateName); }