/**
  * Display blocks after loaded template of page
  *
  */
 function displayAfterLoadTempl()
 {
     return parent::displayAfterLoadTempl() . $this->xt->fetch_loaded("body");
 }
Exemplo n.º 2
0
 function proccessRecordValue(&$data, &$keylink, $listFieldInfo)
 {
     $value = parent::proccessRecordValue($data, $keylink, $listFieldInfo);
     if ($this->lookupSelectField == $listFieldInfo['fName']) {
         $value = '<a href="#" type="lookupSelect' . $this->id . '">' . $value . "</a>";
     }
     return $value;
 }
Exemplo n.º 3
0
 /**
  * Add common assign for current mode
  */
 function commonAssign()
 {
     parent::commonAssign();
     $this->xt->assign("left_block", false);
     //select all link and attr
     if ($this->masterPageType == PAGE_ADD || $this->masterPageType == PAGE_VIEW || $this->mainMasterPageType == PAGE_VIEW || $this->mode == LIST_DASHDETAILS) {
         $this->xt->assign("selectall_link", false);
         $this->xt->assign("checkbox_column", false);
         $this->xt->assign("checkbox_header", false);
         $this->xt->assign("editselected_link", false);
         $this->xt->assign("delete_link", false);
         $this->xt->assign("saveall_link", false);
         $this->xt->assign("withSelectedClass", "rnr-hiddenelem");
         if ($this->masterPageType == PAGE_VIEW || $this->mainMasterPageType == PAGE_VIEW) {
             $this->xt->assign("record_controls_block", false);
         }
     } else {
         //selectall link attrs
         $this->selectAllLinkAttrs();
         //checkbox column
         if (!isMobile()) {
             $this->checkboxColumnAttrs();
         }
         //edit selected link and attr
         $this->editSelectedLinkAttrs();
         //save all link, attr, span
         $this->saveAllLinkAttrs();
         //delete link and attr
         $this->deleteSelectedLink();
         if ($this->masterPageType != PAGE_EDIT) {
             $searchPermis = $this->permis[$this->tName]['search'];
             $this->xt->assign("record_controls_block", $this->permis[$this->tName]['edit'] && $this->pSet->hasInlineEdit() || $this->permis[$this->tName]['delete'] && $this->pSet->hasDelete());
             $this->xt->assign("details_block", $searchPermis && $this->rowsFound);
             $this->xt->assign("details_attrs", "id=\"detFound" . $this->id . "\" name=\"detFound" . $this->id . "\"");
             $this->xt->assign("pages_block", $searchPermis && $this->rowsFound);
         }
     }
     if ($this->mode == LIST_DASHDETAILS) {
         return;
     }
     $this->xt->assign("widhtSelected", $this->permis[$this->tName]['export'] || $this->permis[$this->tName]['edit'] || $this->permis[$this->tName]['delete']);
     if ($this->numRowsFromSQL == 0) {
         $this->xt->displayBrickHidden("recordcontrol");
     }
     if ($this->masterPageType != PAGE_VIEW && $this->mainMasterPageType != PAGE_VIEW) {
         //inline edit column
         $editPermis = $this->permis[$this->tName]['edit'];
         $this->xt->assign("inlineedit_column", $editPermis);
         //for list icons instead of list links
         $this->assignListIconsColumn($editPermis);
         //cancel all link, attr, span
         $this->cancelAllLinkAttrs();
     }
     for ($i = 0; $i < count($this->allDetailsTablesArr); $i++) {
         $permis = $this->isGroupSecurity && ($this->permis[$this->allDetailsTablesArr[$i]['dDataSourceTable']]['add'] || $this->permis[$this->allDetailsTablesArr[$i]['dDataSourceTable']]['search']) || !$this->isGroupSecurity;
         if ($permis) {
             $this->xt->assign(GoodFieldName($this->tName) . "_dtable_column", $permis);
             break;
         }
     }
 }
Exemplo n.º 4
0
 function fillSetCntrlMaps()
 {
     parent::fillSetCntrlMaps();
     $this->controlsHTMLMap[$this->tName][$this->pageType][$this->id]["pageNumber"] = $this->myPage;
 }
 function proccessRecordValue(&$data, &$keylink, $listFieldInfo)
 {
     if (NeedEncode($listFieldInfo['fName'], $this->tName) && $this->customField == $listFieldInfo['fName']) {
         $value = ProcessLargeText(GetData($data, $this->linkField, $listFieldInfo['viewFormat']), "field=" . rawurlencode($listFieldInfo['fName']) . $keylink, "", MODE_LIST);
     } else {
         $value = parent::proccessRecordValue($data, $keylink, $listFieldInfo);
     }
     if ($this->lookupSelectField == $listFieldInfo['fName']) {
         $value = '<a href="#" type="lookupSelect' . $this->id . '">' . $value . "</a>";
     }
     return $value;
 }
Exemplo n.º 6
0
 function proccessRecordValue(&$data, &$keylink, $listFieldInfo)
 {
     if ($this->pSet->NeedEncode($listFieldInfo['fName']) && $this->customField == $listFieldInfo['fName']) {
         $this->showDBValue($this->linkField, $data, $keylink);
     } else {
         $value = parent::proccessRecordValue($data, $keylink, $listFieldInfo);
     }
     if ($this->lookupSelectField == $listFieldInfo['fName']) {
         $value = '<a href="#" type="lookupSelect' . $this->id . '">' . $value . "</a>";
     }
     return $value;
 }