示例#1
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);
 }
 /**
  * Parse session
  *
  */
 function setSessionVariables()
 {
     // call parent
     parent::setSessionVariables();
     // order vars are simple
     if (!@$_SESSION[$this->sessionPrefix . "_orderby"] || $this->userOrderBy == "A" || $this->userOrderBy == "D") {
         $this->sortByGroup = false;
     }
     $this->sortByGroup = substr($_SESSION[$this->sessionPrefix . "_orderby"], 1);
     $this->sortOrder = substr($_SESSION[$this->sessionPrefix . "_orderby"], 0, 1);
     if (@$_SESSION[$this->sessionPrefix . "_orderby"] == "D") {
         $this->userOrderBy = "D";
     } else {
         $this->userOrderBy = "A";
     }
 }
示例#3
0
 /**
  * Parse session
  *
  */
 function setSessionVariables()
 {
     // call parent
     parent::setSessionVariables();
     // order vars are simple
     if (substr($_SESSION[$this->sessionPrefix . "_orderby"], 1) == "" || substr($_SESSION[$this->sessionPrefix . "_orderby"], 1) == "") {
         $this->sortByGroup = false;
         $this->sortField = substr($_SESSION[$this->sessionPrefix . "_orderby"], 1);
     } else {
         $this->sortByGroup = substr($_SESSION[$this->sessionPrefix . "_orderby"], 1);
     }
     $this->sortOrder = substr($_SESSION[$this->sessionPrefix . "_orderby"], 0, 1);
 }
 /**
  * Constructor, set initial params
  *
  * @param array $params
  */
 function ListPage_Ajax(&$params)
 {
     // call parent constructor
     parent::ListPage($params);
 }