/** * 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); }
/** * Common assign for diferent mode on list page * Branch classes add to this method its individualy code */ function commonAssign() { parent::commonAssign(); $this->xt->assign("id", $this->id); $this->xt->assignbyref("body", $this->body); $this->xt->enable_section("style_block"); $this->xt->enable_section("iestyle_block"); $this->xt->assign("newrecord_controls_block", $this->permis[$this->tName]['add']); $this->xt->assign("record_controls_block", $this->permis[$this->tName]['add'] || $this->isDispGrid()); //$this->xt->assign("grid_controls", $this->isDispGrid()); $this->importLinksAttrs(); $this->xt->assign("changepwd_link", $_SESSION["AccessLevel"] != ACCESS_LEVEL_GUEST); $this->xt->assign("changepwdlink_attrs", "href=\"changepwd.php\" onclick=\"window.location.href='changepwd.php';return false;\""); if ($this->isShowMenu() || $this->isAdminTable()) { $this->xt->assign("quickjump_attrs", 'class="runner-quickjump"'); } if ($this->createLoginPage) { $this->xt->assign("security_block", true); $this->xt->assign("username", htmlspecialchars($_SESSION["UserName"])); $this->xt->assign("logoutlink_attrs", "onclick=\"window.location.href='login.php?a=logout';return false;\""); $this->xt->assign("guestloginlink_attrs", "onclick=\"window.location.href='login.php';return false;\""); $this->xt->assign("loggedas_message", !isLoggedAsGuest()); $this->xt->assign("guestloginbutton", isLoggedAsGuest()); $this->xt->assign("logoutbutton", isSingleSign() && !isLoggedAsGuest()); } foreach ($this->googleMapCfg['mainMapIds'] as $mapId) { $this->xt->assign_event($mapId, $this, 'createMapDiv', array('mapId' => $mapId, 'width' => $this->googleMapCfg['mapsData'][$mapId]['width'], 'height' => $this->googleMapCfg['mapsData'][$mapId]['height'])); } //add assign for grid block $this->addAssignForGrid(); }
function commonAssign() { $this->xt->assign_loopsection("groups", $this->smartyGroups); parent::commonAssign(); // assign headcheckboxes $this->xt->assign("add_headcheckbox", "id=\"cbadd\""); $this->xt->assign("edt_headcheckbox", "id=\"cbedt\""); $this->xt->assign("del_headcheckbox", "id=\"cbdel\""); $this->xt->assign("lst_headcheckbox", "id=\"cblst\""); $this->xt->assign("exp_headcheckbox", "id=\"cbexp\""); $this->xt->assign("imp_headcheckbox", "id=\"cbimp\""); $this->xt->assign("adm_headcheckbox", "id=\"cbadm\""); // assign attrs $this->xt->assign("addgroup_attrs", "id=\"addGroupBtn\""); $this->xt->assign("delgroup_attrs", "id=\"delGroupBtn\""); $this->xt->assign("rengroup_attrs", "id=\"renGroupBtn\""); $this->xt->assign("savegroup_attrs", "id=\"saveGroupBtn\""); $this->xt->assign("savebutton_attrs", "id=\"saveBtn\""); $this->xt->assign("resetbutton_attrs", "id=\"resetBtn\""); $this->xt->assign("cancelgroup_attrs", "id=\"cancelBtn\""); // assign blocks $this->xt->assign("grid_block", true); $this->xt->assign("menu_block", true); $this->xt->assign("left_block", true); $this->xt->assign("rights_block", true); $this->xt->assign("message_block", true); $this->xt->assign("security_block", true); $this->xt->assign("logoutbutton", isSingleSign()); $this->xt->assign("shiftstyle_block", true); $this->xt->assign("savebuttons_block", true); $this->xt->assign("search_records_block", true); $this->xt->assign("recordcontrols_block", true); // assign user settings $this->xt->assign("username", htmlspecialchars($_SESSION["UserName"])); if ($this->createLoginPage) { $this->xt->assign("userid", htmlspecialchars($_SESSION["UserID"])); } $this->xt->displayBrickHidden("message"); }
//fill jsSettings and ControlsHTMLMap $pageObject->fillSetCntrlMaps(); $pageObject->body['end'] .= '<script>'; $pageObject->body['end'] .= "window.controlsMap = " . my_json_encode($pageObject->controlsHTMLMap) . ";"; $pageObject->body['end'] .= "window.viewControlsMap = " . my_json_encode($pageObject->viewControlsHTMLMap) . ";"; $pageObject->body['end'] .= "window.settings = " . my_json_encode($pageObject->jsSettings) . ";</script>"; $pageObject->body["end"] .= "<script type=\"text/javascript\" src=\"" . GetRootPathForResources("include/runnerJS/RunnerAll.js") . "\"></script>"; $pageObject->body["end"] .= '<script>' . $pageObject->PrepareJS() . "</script>"; $xt->assignbyref("body", $pageObject->body); // The user might rewrite $_SESSION["UserName"] value with HTML code in an event, so no encoding will be performed while printing this value. $xt->assign("username", $_SESSION["UserName"]); $xt->assign("changepwd_link", $_SESSION["AccessLevel"] != ACCESS_LEVEL_GUEST && $_SESSION["fromFacebook"] == false); $xt->assign("changepwdlink_attrs", "onclick=\"window.location.href='" . GetTableLink("changepwd") . "';return false;\""); $xt->assign("logoutlink_attrs", "onclick=\"window.location.href='" . GetTableLink("login", "", "a=logout") . "';return false;\""); $xt->assign("guestloginlink_attrs", "onclick=\"window.location.href='" . GetTableLink("login") . "';return false;\""); $xt->assign("loggedas_block", !isLoggedAsGuest()); $xt->assign("loggedas_message", !isLoggedAsGuest()); $xt->assign("logout_link", true); $xt->assign("guestloginbutton", isLoggedAsGuest()); $xt->assign("logoutbutton", isSingleSign() && !isLoggedAsGuest()); // get redirect location for menu page $redirect = $pageObject->getRedirectForMenuPage(); if ($redirect) { header("Location: " . $redirect); exit; } $xt->assign("menu_block", true); if ($globalEvents->exists("BeforeShowMenu")) { $globalEvents->BeforeShowMenu($xt, $pageObject->templatefile, $pageObject); } $pageObject->display($pageObject->templatefile);
function commonAssign() { $this->xt->assign_loopsection("groups", $this->smartyGroups); parent::commonAssign(); // assign headcheckboxes foreach ($this->permissionNames as $perm => $t) { $this->xt->assign($perm . "_headcheckbox", " id=\"colbox" . $perm . "\" data-perm=\"" . $perm . "\""); } // assign attrs $this->xt->assign("addgroup_attrs", "id=\"addGroupBtn\""); $this->xt->assign("delgroup_attrs", "id=\"delGroupBtn\""); $this->xt->assign("rengroup_attrs", "id=\"renGroupBtn\""); $this->xt->assign("savegroup_attrs", "id=\"saveGroupBtn\""); $this->xt->assign("savebutton_attrs", "id=\"saveBtn\""); $this->xt->assign("resetbutton_attrs", "id=\"resetBtn\""); $this->xt->assign("cancelgroup_attrs", "id=\"cancelBtn\""); // assign blocks $this->xt->assign("grid_block", true); $this->xt->assign("menu_block", true); $this->xt->assign("left_block", true); $this->xt->assign("rights_block", true); $this->xt->assign("message_block", true); $this->xt->assign("security_block", true); $this->xt->assign("logoutbutton", isSingleSign()); $this->xt->assign("savebuttons_block", true); $this->xt->assign("search_records_block", true); $this->xt->assign("recordcontrols_block", true); // assign user settings // 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"]); if ($this->createLoginPage) { $this->xt->assign("userid", runner_htmlspecialchars($_SESSION["UserID"])); } $this->xt->displayBrickHidden("message"); }
/** * 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["UserName"])); $this->xt->assign("displayusername", htmlspecialchars($_SESSION["UserName"])); $this->xt->assign("shiftstyle_block", true); $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"); $userheaderlink_attrs = "href=\"" . $this->tName . "_list.php?orderby=A\""; //for display name $displayuserheaderlink_attrs = "href=\"" . $this->tName . "_list.php?orderby=" . "A\""; if ($this->sortByGroup === false && $this->sortField != "") { if ($this->sortField == "") { $userheaderlink_attrs = "href=\"" . $this->tName . "_list.php?orderby="; if ($this->sortOrder == "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>"); } $userheaderlink_attrs .= "D"; } else { 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>"); } $userheaderlink_attrs .= "A"; } $userheaderlink_attrs .= "\""; } else { if ($this->sortField == "") { $displayuserheaderlink_attrs = "href=\"" . $this->tName . "_list.php?orderby="; if ($this->sortOrder == "A") { if ($this->is508) { $this->xt->assign("displayusers_orderimg", "<img src=\"images/up.gif\" alt=\" \" border=0>"); } else { $this->xt->assign("displayusers_orderimg", "<img src=\"images/up.gif\" border=0>"); } $displayuserheaderlink_attrs .= "D"; } else { if ($this->is508) { $this->xt->assign("displayusers_orderimg", "<img src=\"images/down.gif\" alt=\" \" border=0>"); } else { $this->xt->assign("displayusers_orderimg", "<img src=\"images/down.gif\" border=0>"); } $displayuserheaderlink_attrs .= "A"; } $displayuserheaderlink_attrs .= "\""; } } } $this->xt->assign("userheaderlink_attrs", $userheaderlink_attrs); $this->xt->assign("displayuserheaderlink_attrs", $displayuserheaderlink_attrs); $this->xt->assign("menu_block", true); }
/** * Init form login */ function initLogin() { $this->xt->assign("security_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("logoutlink_attrs", 'id="logoutButton'.$this->id.'"'); $loggedAsGuest = isLoggedAsGuest(); $this->xt->assign("loggedas_message", !$loggedAsGuest); $this->xt->assign("guestloginbutton", $loggedAsGuest); $this->xt->assign("logoutbutton", isSingleSign() && !$loggedAsGuest); if(isMobile()) { $this->xt->assign("guestloginlink_attrs", 'id="loginButtonLink'.$this->id.'"'); return; } // login Separate page $this->xt->assign("guestloginlink_attrs", 'id="loginButtonLink'.$this->id.'"'); }