Exemplo n.º 1
0
 /**
  * Add common assign
  */
 function commonAssign()
 {
     parent::commonAssign();
     if (isMobile()) {
         $this->xt->displayBrickHidden("search_dashboard_m");
     }
     $this->xt->assign("languages_block", true);
 }
Exemplo n.º 2
0
 /**
  * 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->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 && $_SESSION["fromFacebook"] == false);
     $this->xt->assign("changepwdlink_attrs", "href=\"" . GetTableLink("changepwd") . "\" onclick=\"window.location.href='" . GetTableLink("changepwd") . "';return false;\"");
     if ($this->isShowMenu() || $this->isAdminTable()) {
         $this->xt->assign("quickjump_attrs", 'class="' . $this->makeClassName("quickjump") . '"');
     }
     $this->xt->assign("more_list", true);
     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();
 }
Exemplo n.º 3
0
 /**
  * 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();
 }
Exemplo n.º 4
0
 /**
  * Add common assign
  */
 function commonAssign()
 {
     parent::commonAssign();
     if (isMobile()) {
         $this->xt->displayBrickHidden("search_dashboard_m");
     }
     $this->xt->assign("languages_block", true);
     $this->assignAdmin();
     $this->xt->assign("changepwd_link", $_SESSION["AccessLevel"] != ACCESS_LEVEL_GUEST && $_SESSION["fromFacebook"] == false);
     $this->xt->assign("changepwdlink_attrs", "href=\"" . GetTableLink("changepwd") . "\" onclick=\"window.location.href='" . GetTableLink("changepwd") . "';return false;\"");
 }