public function page($indicator, $subindicator = false) { $this->page = $indicator; $this->subpage = $subindicator; $exploded_page = explode('_', $indicator); $this->active = $exploded_page[0]; // can be overridden. $this->message = $this->session->flashdata('message'); // can be overridden if (false === strpos($_SERVER['REQUEST_URI'], '/json')) { if (!loadpage($indicator, TRUE, 'pre')) { $this->error404(); return; } if ($_POST) { loadpage($indicator, TRUE, 'post'); } } if (false !== strpos($_SERVER['REQUEST_URI'], '/html')) { $this->load->view('html_main'); } elseif (false !== strpos($_SERVER['REQUEST_URI'], '/json')) { $this->load->view('json_main'); } elseif (false !== strpos($_SERVER['REQUEST_URI'], '/output')) { $this->load->view('output_main'); } else { $this->load->view('frontend_main'); } }
public function page($indicator) { $this->page = $indicator; $exploded_page = explode('_', $indicator); $this->active = $exploded_page[0]; // can be overridden. $this->message = $this->session->flashdata('message'); // can be overridden if (!loadpage($indicator, TRUE, 'pre')) { $this->error404(); return; } if ($_POST) { loadpage($indicator, TRUE, 'post'); } $this->load->view('frontend_main'); // frontend main will do fine for now. }
} ?> <h1><i class="fa fa-trophy"></i> <?php echo $this->record['type_name']; ?> on <?php echo $dataset; ?> </h1> <?php if ($this->record['type_name'] != 'Learning Curve') { ?> <a href="search?q=+run_task.task_id%3A<?php echo $this->task_id; ?> &type=run" class="btn btn-primary pull-right">Search runs in more detail</a> <h2>All Runs</h2> <div class="searchframefull"> <?php $this->filtertype = 'run'; $this->sort = 'date'; $this->specialterms = 'run_task.task_id:' . $this->id; loadpage('search', true, 'pre'); loadpage('search/subpage', true, 'results'); ?> </div> <?php }
function script() { $dq =& get_instance(); return isset($dq->script) ? $dq->script : ($dq->script = loadpage($dq->page, FALSE, 'javascript')); }
} switch ($page) { case 'login': loadpage($page); break; case 'qldx': loadpage($page); break; case 'tkvh': loadpage($page); break; case 'csdl': loadpage($page); break; case 'qlnm': loadpage($page); break; case 'doxa': loadpage($page); break; case 'qlhd': loadpage($page); break; case 'user': loadpage($page); break; default: $_content = '<h3 style="color:red">The page ' . $page . ' does not exist!</h3>'; break; } echo $_content;
private function _show_webpage() { $this->page = 'api_docs'; if (!loadpage($this->page, true, 'pre')) { $this->page_body = '<div class="baseNormalContent">Pagina niet gevonden. <a href="' . home() . '">Klik hier</a> om terug te keren naar de hoofdpagina.</div>'; } $this->load->view('frontend_main'); }
echo 'measure'; } ?> "> <!-- <button class="btn btn-primary btn-small" type="submit" style="height: 30px; vertical-align:top; font-size: 8pt;"><i class="fa fa-search fa-lg"></i></button>--> </form> </div> <!--/.nav-collapse --> </div> </div> <?php loadpage('login', true, 'pre'); loadpage('login', true, 'body'); ?> <div id="wrap"> <!-- USER MESSAGE --> <noscript> <div class="alert alert-error" style="text-align:center;"> JavaScript is required to properly view the contents of this page! </div> </noscript> <?php if ($this->message !== false and strlen($this->message) > 0) { ?> <div class="alert alert-info" style="text-align:center;margin-bottom:0px"> <?php echo $this->message;
public function page() { $d = loadpage($this->page, FALSE, 'pre'); $this->load->view('javascript_main'); }