name."_".$page[0].'.html') && $TeKe->is_admin()) { $this->setTemplate($this->name."_".$page[0]); } else { $this->setTemplate("page_not_found"); } } public function setNavigation() { global $TeKe; if ($TeKe->is_admin()) { $current_context = $this->page[0]; if (isset($this->page[1])) { $current_context = $this->page[1]; } $this->navigation []= array('title'=>_('Users'), 'url'=>"users/view", 'current'=>$this->is_current_page($current_context, "view")); if ($TeKe->plugin->context) { $this->navigation []= array('title'=>_('Edit'), 'url'=>"users/user/".$this->page[1]."/edit", 'current'=>$this->is_current_page($this->page[2], "edit")); } else { $this->navigation []= array('title'=>_('Add New'), 'url'=>"users/user/add", 'current'=>$this->is_current_page($current_context, "add")); } } } } ?>