Exemple #1
0
 /**
  * Configue the main template
  * @param array $contentMain - template content data
  * @return Template 
  */
 public function tpl($contentMain)
 {
     // configure main template
     $this->ssp->pageTitleAdd("User admin");
     if (isset($contentMain["title"])) {
         $this->ssp->pageTitleAdd($contentMain["title"]);
     }
     $url = $_SERVER['REQUEST_URI'];
     $menu = new MenuGen();
     $menu->add($this->cfg->userLister . '/filterChange', $this->session->t("Modify Search"), $url === '/sspadmin/filterChange');
     if ($this->cfg->adminCheck) {
         if (!($this->filter->userAdminPending == 1 and $this->filter->creationFinished == 1)) {
             $menu->add($this->cfg->userLister . '/filterAdminPending', $this->session->t("List Admin Pending"), $url === '/sspadmin/filterAdminPending');
         }
     }
     $menu->add($this->cfg->userLister . '/filterNormal', $this->session->t("Defualt Listing"), $url === '/sspadmin/filterNormal');
     $menu->add('userlisterhelp.php', $this->session->t("Help"));
     $menu->sv("target=help");
     $contentMain["menu"] = $menu->cMenu();
     $tpl = $this->ssp->tpl($contentMain);
     return $tpl;
 }