Ejemplo n.º 1
0
 /**
  * Load the HTML template files for viewing an object's history.
  */
 protected function loadHTMLTemplates()
 {
     list($formName, $formID) = explode("|", $this->get('id'));
     if ($formName == 'person') {
         parent::loadHTMLTemplates();
     } else {
         $this->template->addFile("history_" . $formName . ".html");
     }
     $this->template->appendFileById("menu_view_" . $this->getPrefix() . "link.html", "li", "navBarUL", true);
 }
 /**
  * Load the  template (HTML or XML) files to the template object.
  */
 protected function loadHTMLTemplates()
 {
     if (array_key_exists('auto_template', $this->args) && is_array($this->args['auto_template']) && !(array_key_exists('disabled', $this->args['auto_template']) && $this->args['auto_template']['disabled'])) {
         $append_node = 'siteContent';
         if (array_key_exists('append_node', $this->args['auto_template']) && is_scalar($this->args['auto_template']['append_node']) && $this->args['auto_template']['append_node']) {
             $append_node = $this->args['auto_template']['append_node'];
         }
         $this->generateAutoParentTemplate($this->args['auto_template'], $append_node);
         return true;
     } else {
         return parent::loadHTMLTemplates();
     }
 }
Ejemplo n.º 3
0
 /**
  * Load the HTML templates.
  */
 protected function loadHTMLTemplates()
 {
     parent::loadHTMLTemplates();
     $this->template->addHeaderLink('mootools-core.js');
     $this->template->addHeaderLink('mootools-more.js');
     $this->template->addHeaderLink('ol.js');
     $this->template->addHeaderLink('ol.css');
     $this->template->addHeaderLink('i2ce_ol.css');
     $this->template->addHeaderLink('openlayers_base.js');
     $page_css = I2CE::getFileSearch()->search('CSS', 'openlayers_' . $this->page . '.css');
     if ($page_css) {
         $this->template->addHeaderLink('openlayers_' . $this->page . '.css');
     }
 }
 /**
  * Load the HTML template files for editing and confirming the index and demographic information.
  */
 protected function loadHTMLTemplates()
 {
     parent::loadHTMLTemplates();
     $this->template->appendFileById("menu_view_link.html", "li", "navBarUL", true);
 }
Ejemplo n.º 5
0
 /**
  * Load the HTML template files to the template object.
  * 
  * This method should load all the HTML template files that are needed for this page.
  */
 protected function loadHTMLTemplates()
 {
     parent::loadHTMLTemplates();
     $this->template->setBodyId("loginPage");
 }