Пример #1
0
 public function getPageVars()
 {
     $tabMode = TAB_MODE;
     $tabs = array();
     if ($this->act == 'mod' || $this->act == 'show') {
         $hasSensorData = $this->hasSensorData($this->data['bu_id']);
         $hasWork = $this->hasWork($this->data['bu_id']);
         $tabs[] = array('id' => 'heating', 'label' => _('Riscaldamento'), 'url' => "edit.php?on=consumption_tree&kind=heating&bu_id={$this->id}&parent_act={$this->act}&tab_mode={$tabMode}");
         $tabs[] = array('id' => 'electricity', 'label' => _('Elettricità'), 'url' => "edit.php?on=consumption_tree&kind=electricity&bu_id={$this->id}&parent_act={$this->act}&tab_mode={$tabMode}");
         $tabs[] = array('id' => 'water', 'label' => _('Acque'), 'url' => "edit.php?on=consumption_tree&kind=water&bu_id={$this->id}&parent_act={$this->act}&tab_mode={$tabMode}");
         if ($hasWork) {
             $tabs[] = array('id' => 'work', 'label' => _('Interventi'), 'url' => "list.php?on=work&bu_id={$this->id}&parent_act={$this->act}&tab_mode={$tabMode}");
         }
         if ($this->auth->hasPerm('SHOW', 'ACTION_CATALOG')) {
             $tabs[] = array('id' => 'action_catalog', 'label' => _('Azioni'), 'url' => "list.php?on=action_catalog&bu_id={$this->id}&parent_act={$this->act}&tab_mode={$tabMode}&init");
         }
         if ($hasSensorData) {
             $tabs[] = array('id' => 'sensor_data', 'label' => _('Sensori ambientali'), 'url' => "edit.php?on=sensor_data&bu_id={$this->id}&parent_act={$this->act}&tab_mode={$tabMode}");
         }
         $tabs[] = array('id' => 'doc', 'label' => _('Documenti'), 'url' => "list.php?on=document&type=building&doc_object_id={$this->id}&parent_act={$this->act}&tab_mode={$tabMode}&init");
     }
     return array('session_id' => session_id(), 'tollerance' => '20%', 'tabs' => $tabs, 'parent_act' => $this->parent_act, 'tab_mode' => $tabMode, 'date_format' => R3Locale::getJQueryDateFormat());
 }
Пример #2
0
 public function getPageVars()
 {
     $tabMode = 'iframe';
     $result = array('ge_id' => $this->ge_id, 'gs_id' => $this->gs_id, 'kind' => $this->kind, 'open_category' => $this->getCategoryIdFromGlobalSubcategory($this->gs_id), 'toggle_subcategory' => $this->toggle_subcategory, 'last_openclose_status' => $this->auth->getConfigValue('SETTINGS', 'GLOBAL_RESULT_LAST_OPEN_CLOSE_STATUS'), 'parent_act' => $this->parent_act, 'has_action_column' => true, 'has_partial_total_row' => true, 'can_change_udm' => true, 'tab_mode' => $tabMode, 'max_inventory_row' => $this->auth->getConfigValue('APPLICATION', 'MAX_INVENTORY_ROW'), 'date_format' => R3Locale::getJQueryDateFormat());
     $lastOpenCategories = json_decode($this->auth->getConfigValue('SETTINGS', 'GLOBAL_RESULT_LAST_OPEN_CATEGORIES'), true);
     if (!empty($lastOpenCategories[$this->ge_id][strtolower($this->kind)])) {
         $result['last_open_categories'] = implode(',', $lastOpenCategories[$this->ge_id][strtolower($this->kind)]);
     }
     return $result;
 }
Пример #3
0
 public function getPageVars()
 {
     $tabMode = TAB_MODE;
     $tabs = array();
     if ($this->act == 'mod' || $this->act == 'show') {
         $tabs[] = array('id' => 'indicator', 'label' => _('Indicatori'), 'url' => "list.php?on=global_plain_gauge&gpr_id={$this->id}&parent_act={$this->act}&tab_mode={$tabMode}");
         $tabs[] = array('id' => 'meter', 'label' => _('% Completamento'), 'url' => "list.php?on=global_plain_meter&gpr_id={$this->id}&parent_act={$this->act}&tab_mode={$tabMode}");
     }
     $vars = array('tabs' => $tabs, 'parent_act' => $this->parent_act, 'tab_mode' => $tabMode, 'date_format' => R3Locale::getJQueryDateFormat());
     if ($this->act == 'list') {
         // piano d'azione selezionato
         $vars['gp_id'] = $this->gp_id;
     }
     return $vars;
 }
Пример #4
0
 public function getPageVars()
 {
     $tabMode = 'iframe';
     $tabs = array();
     $tabs[] = array('id' => 'consumption', 'label' => _('Consumi energia'), 'url' => "list.php?on=street_lighting_consumption&sl_id={$this->id}&parent_act={$this->act}&tab_mode={$tabMode}&init");
     $tabs[] = array('id' => 'doc', 'label' => _('Documenti'), 'url' => "list.php?on=document&type=street_lighting&doc_object_id={$this->id}&parent_act={$this->act}&tab_mode={$tabMode}");
     return array('session_id' => session_id(), 'tollerance' => '20%', 'tabs' => $tabs, 'parent_act' => $this->parent_act, 'tab_mode' => $tabMode, 'date_format' => R3Locale::getJQueryDateFormat());
 }
Пример #5
0
 public function getPageVars()
 {
     $tabParams = $this->getTabParametersForGlobalSource($this->gs_id);
     $tabMode = 'ajax';
     $tabMode = 'iframe';
     $tabs = array();
     $tabs[] = array('id' => 'consumption', 'label' => _('Consumo energetico finale'), 'url' => "edit.php?on=global_result_table&kind=consumption&ge_id={$this->id}&parent_act={$this->act}&toggle_subcategory={$this->toggle_subcategory}&init&{$tabParams['tab_param']['consumption']}");
     $tabs[] = array('id' => 'emission', 'label' => _('Emissioni di CO<sub>2</sub>'), 'url' => "edit.php?on=global_result_table&kind=emission&ge_id={$this->id}&parent_act={$this->act}&toggle_subcategory={$this->toggle_subcategory}&init&{$tabParams['tab_param']['emission']}");
     $tabs[] = array('id' => 'energy_production', 'label' => _('Produzione locale di elettricità'), 'url' => "edit.php?on=global_result_table&kind=energy_production&ge_id={$this->id}&parent_act={$this->act}&toggle_subcategory={$this->toggle_subcategory}&init&{$tabParams['tab_param']['energy_production']}");
     $tabs[] = array('id' => 'heath_production', 'label' => _('Produzione locale di calore/freddo'), 'url' => "edit.php?on=global_result_table&kind=heath_production&ge_id={$this->id}&parent_act={$this->act}&toggle_subcategory={$this->toggle_subcategory}&init&{$tabParams['tab_param']['heath_production']}");
     $tabs[] = array('id' => 'doc', 'label' => _('Documenti'), 'url' => "list.php?on=document&type=global_entry&doc_object_id={$this->id}&parent_act={$this->act}&tab_mode={$tabMode}");
     return array('tabs' => $tabs, 'tab_mode' => $tabMode, 'active_tab' => $tabParams['kind'], 'parent_act' => $this->parent_act, 'toggle_subcategory' => $this->toggle_subcategory, 'date_format' => R3Locale::getJQueryDateFormat());
 }
Пример #6
0
 public function getPageVars()
 {
     return array('bu_id' => $this->bu_id, 'tab_mode' => $this->tab_mode, 'parent_act' => $this->parent_act, 'sector' => R3EcoGisHelper::getGlobalCategoryPathForActionCatalogBuilding($this->bu_id, R3Locale::getLanguageID()), 'date_format' => R3Locale::getJQueryDateFormat());
 }
Пример #7
0
 public function getPageVars()
 {
     $hasReductionOrPruduction = count(R3EcoGisHelper::getGlobalPlainGaugeTypeList($_SESSION['do_id'], $this->gpr_id)) > 0;
     return array('hasReductionOrPruduction' => $hasReductionOrPruduction, 'gpr_id' => $this->gpr_id, 'tab_mode' => $this->tab_mode, 'parent_act' => $this->parent_act, 'date_format' => R3Locale::getJQueryDateFormat());
 }
Пример #8
0
 public function getPageVars()
 {
     return array('tab_mode' => $this->tab_mode, 'type' => $this->type, 'doc_object_id' => $this->doc_object_id, 'parent_act' => $this->parent_act, 'date_format' => R3Locale::getJQueryDateFormat());
 }
Пример #9
0
 public function getPageVars()
 {
     $tabMode = 'iframe';
     return array('gp_id' => $this->gp_id, 'tab_mode' => $tabMode, 'parent_act' => $this->parent_act, 'short_format' => true, 'tab_mode' => $tabMode, 'date_format' => R3Locale::getJQueryDateFormat());
 }
Пример #10
0
 public function getPageVars()
 {
     $tabMode = TAB_MODE;
     $tabs = array();
     if ($this->act == 'mod' || $this->act == 'show') {
         $tabs[] = array('id' => 'global_plain_table', 'label' => _('Piano di azione'), 'url' => "edit.php?on=global_plain_table&gp_id={$this->id}&parent_act={$this->act}&tab_mode={$tabMode}");
         $tabs[] = array('id' => 'doc', 'label' => _('Documenti'), 'url' => "list.php?on=document&type=global_plain&doc_object_id={$this->id}&parent_act={$this->act}&tab_mode={$tabMode}");
     }
     return array('session_id' => session_id(), 'tollerance' => '20%', 'tabs' => $tabs, 'tab_mode' => $tabMode, 'date_format' => R3Locale::getJQueryDateFormat());
 }
Пример #11
0
 public function getPageVars()
 {
     $tabMode = 'ajax';
     $tabMode = 'iframe';
     $tabs = array();
     $tabs[] = array('id' => 'consumption', 'label' => _('Consumi energia'), 'url' => "list.php?on=street_lighting_consumption&sl_id={$this->id}&parent_act={$this->act}&tab_mode={$tabMode}&init");
     $tabs[] = array('id' => 'document', 'label' => _('Documenti'), 'url' => "cclist.php?on=street_lighting_consumption&sl_id={$this->id}&parent_act={$this->act}&tab_mode={$tabMode}&init");
     return array('tabs' => $tabs, 'tab_mode' => $tabMode, 'date_format' => R3Locale::getJQueryDateFormat());
 }
Пример #12
0
 public function getJSVars()
 {
     return array('date_format' => R3Locale::getJQueryDateFormat(), 'date_separator' => R3Locale::getDateSeparator());
 }