/**
  * Override, add admin_members specific assignments
  *
  */
 function commonAssign()
 {
     // call parent
     parent::commonAssign();
     if ($this->addSaveButtons) {
         ///$this->xt->assign("recordcontrols_block",true);
         $this->xt->assign("savebuttons_block", true);
         $this->xt->assign("savebutton_attrs", "id=\"saveBtn\"");
         $this->xt->assign("resetbutton_attrs", "id=\"resetBtn\"");
     }
     //$this->xt->assign("toplinks_block",true);
     $this->xt->assign("search_records_block", true);
     $this->xt->assign("username", htmlspecialchars($_SESSION["UserID"]));
     $this->xt->assign("shiftstyle_block", true);
     $this->xt->assign("security_block", true);
     $this->xt->assign("left_block", true);
     $this->xt->assign("message_block", true);
     $this->xt->displayBrickHidden("message");
     $userheaderlink_attrs = "href=\"" . $this->tName . "_list.php?orderby=";
     if ($this->sortByGroup !== false || $this->userOrderBy != "A") {
         $userheaderlink_attrs .= "A";
     } else {
         $userheaderlink_attrs .= "D";
     }
     $userheaderlink_attrs .= "\"";
     $this->xt->assign("userheaderlink_attrs", $userheaderlink_attrs);
     if ($this->sortByGroup === false) {
         if ($this->userOrderBy == "A") {
             if ($this->is508) {
                 $this->xt->assign("users_orderimg", "<img src=\"images/up.gif\" alt=\" \" border=0>");
             } else {
                 $this->xt->assign("users_orderimg", "<img src=\"images/up.gif\" border=0>");
             }
         } else {
             if ($this->userOrderBy == "D") {
                 if ($this->is508) {
                     $this->xt->assign("users_orderimg", "<img src=\"images/down.gif\" alt=\" \" border=0>");
                 } else {
                     $this->xt->assign("users_orderimg", "<img src=\"images/down.gif\" border=0>");
                 }
             }
         }
     }
     $this->xt->assign("menu_block", true);
 }
Пример #2
0
 /**
  * Override, add admin_members specific assignments
  */
 function commonAssign()
 {
     // call parent
     parent::commonAssign();
     if ($this->addSaveButtons) {
         $this->xt->assign("savebuttons_block", true);
         $this->xt->assign("savebutton_attrs", "id=\"saveBtn\"");
         $this->xt->assign("resetbutton_attrs", "id=\"resetBtn\"");
     }
     $this->xt->assign("search_records_block", true);
     // The user might rewrite $_SESSION["UserName"] value with HTML code in an event, so no encoding will be performed while printing this value.
     $this->xt->assign("username", $_SESSION["UserName"]);
     $this->xt->assign("displayusername", $_SESSION["UserName"]);
     $this->xt->assign("security_block", true);
     $this->xt->assign("logoutbutton", isSingleSign());
     $this->xt->assign("left_block", true);
     $this->xt->assign("message_block", true);
     $this->xt->displayBrickHidden("message");
     $this->xt->assign("menu_block", true);
 }