Lines Matching refs:page
8 * This is the main admin page. It displays the tabs and then loads the sub components
21 /** @var string The currently selected page */
22 protected $page;
23 /** @var AdminPlugin the plugin to use for the current page */
35 * Initialize current page
52 // make sure current page requested is available
53 $this->page = $INPUT->str('sub');
54 if (!in_array($this->page, $this->pages)) {
55 $this->page = $this->pages[0];
59 $this->adminplugin = plugin_load('admin', 'farmer_' . $this->page);
60 if (!$this->adminplugin) nice_die('Something went wrong loading the plugin component for ' . hsc($this->page));
82 foreach ($this->pages as $page) {
83 $link = wl($ID, ['do' => 'admin', 'page' => 'farmer', 'sub' => $page]);
84 $class = ($page == $this->page) ? 'active' : '';
86 echo '<li class="' . $class . '"><a href="' . $link . '">' . $this->getLang('tab_' . $page) . '</a></li>';
90 echo $this->locale_xhtml('tab_' . $this->page);
96 echo $this->locale_xhtml('tab_' . $this->page . '_help');