コード例 #1
0
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->fields = $this->defFields();
     $storeVar = isset($_GET['act']) && $_GET['act'] == 'list';
     // if true store the filter variables
     $init = array_key_exists('init', $this->request);
     $reset = array_key_exists('reset', $this->request);
     if ($init || $reset) {
         $storeVar = true;
     }
     $this->id = initVar('id');
     $this->last_id = initVar('last_id');
     $this->parent_act = initVar('parent_act');
     $this->tab_mode = initVar('tab_mode');
     $this->act = initVar('act', 'list');
     $this->do_id = $_SESSION['do_id'];
     $this->gpr_id = initVar('gpr_id');
     $this->order = PageVar('order', '1A', $init, false, $this->baseName, $storeVar);
     $this->pg = PageVar('pg', 0, $init | $reset, false, $this->baseName, $storeVar);
     setLang(R3Locale::getLanguageCode());
     setLangInfo(array('thousands_sep' => "."));
     $this->registerAjaxFunction('submitFormData');
     $this->registerAjaxFunction('askDelGlobalPlainGauge');
 }
コード例 #2
0
ファイル: obj.global_result.php プロジェクト: r3-gis/EcoGIS
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->fields = $this->defFields();
     $storeVar = isset($_GET['act']) && $_GET['act'] == 'list';
     // if true store the filter variables
     $init = array_key_exists('init', $this->request);
     $reset = array_key_exists('reset', $this->request);
     if ($init || $reset) {
         $storeVar = true;
     }
     $this->parent_act = initVar('parent_act');
     $this->id = initVar('id');
     $this->last_id = initVar('last_id');
     $this->act = initVar('act', 'list');
     $this->gs_id = initVar('gs_id');
     $this->do_id = PageVar('do_id', $_SESSION['do_id'], $init | $reset, false, $this->baseName, $storeVar);
     $this->pr_id = PageVar('pr_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->mu_id = PageVar('mu_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->mu_name = PageVar('mu_name', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->ge_name = PageVar('ge_name', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->ge_year = (int) PageVar('ge_year', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->order = PageVar('order', '1A', $init, false, $this->baseName, $storeVar);
     $this->pg = PageVar('pg', 0, $init | $reset, false, $this->baseName, $storeVar);
     $this->toggle_subcategory = initVar('toggle_subcategory');
     $this->registerAjaxFunction('getHelp');
     $this->registerAjaxFunction('submitFormData');
     $this->registerAjaxFunction('askDelGlobalResult');
 }
コード例 #3
0
ファイル: obj.cache.php プロジェクト: r3-gis/EcoGIS
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->act = initVar('act', 'set');
     $this->do_id = $_SESSION['do_id'];
     $this->registerAjaxFunction('delCache');
 }
コード例 #4
0
ファイル: obj.import_seap.php プロジェクト: r3-gis/EcoGIS
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->fields = $this->defFields();
     $storeVar = isset($_GET['act']) && $_GET['act'] == 'list';
     // if true store the filter variables
     $init = array_key_exists('init', $this->request);
     $reset = array_key_exists('reset', $this->request);
     if ($init || $reset) {
         $storeVar = true;
     }
     $this->id = (int) initVar('id');
     $this->last_id = initVar('last_id');
     $this->act = initVar('act', 'list');
     $this->do_id = $_SESSION['do_id'];
     $this->mu_id = initvar('mu_id');
     $this->documentType = 'import_seap';
     $this->isDialog = false;
     // Cambia le azioni per edit / delete
     $this->parent_act = 'list';
     $this->order = PageVar('order', '1A', $init, false, $this->baseName, $storeVar);
     $this->registerAjaxFunction('checkImport');
     $this->registerAjaxFunction('confirmDeleteImport');
     $this->registerAjaxFunction('submitFormData');
 }
コード例 #5
0
ファイル: obj.stat_type.php プロジェクト: r3-gis/EcoGIS
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->fields = $this->defFields();
     $init = array_key_exists('init', $this->request);
     $reset = array_key_exists('reset', $this->request);
     $storeVar = isset($_GET['act']) && $_GET['act'] == 'list' || $reset || $init;
     // if true store the filter variables
     if ($init || $reset) {
         $storeVar = true;
     }
     $this->id = initVar('id');
     if (initVar('bu_id') !== null) {
         $this->id = initVar('bu_id');
     }
     $this->last_id = initVar('last_id');
     $this->parent_act = initVar('parent_act');
     $this->act = initVar('act', 'list');
     $this->do_id = $_SESSION['do_id'];
     $this->st_parent_id = PageVar('st_parent_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->st_name = PageVar('st_name', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->order = PageVar('order', '1A', $init, false, $this->baseName, $storeVar);
     $this->pg = PageVar('pg', 0, $init | $reset, false, $this->baseName, $storeVar);
     $this->registerAjaxFunction('submitFormData');
     $this->registerAjaxFunction('generateStatisticClass');
 }
コード例 #6
0
ファイル: obj.stat_general.php プロジェクト: r3-gis/EcoGIS
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->fields = $this->defFields();
     $this->act = initVar('act', 'mod');
     $this->do_id = $_SESSION['do_id'];
     setLang(R3Locale::getLanguageCode());
     setLangInfo(array('thousands_sep' => "."));
     $this->registerAjaxFunction('getHelp');
     $this->registerAjaxFunction('submitFormData');
 }
コード例 #7
0
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->gc_id = (int) initVar('gc_id');
     $this->gp_id = (int) initVar('gp_id');
     $this->act = initVar('act', 'mod');
     $this->tab_mode = initVar('tab_mode');
     $this->kind = initVar('kind');
     $this->fields = $this->defFields();
     $this->registerAjaxFunction('askDelGlobalPlainSum');
     $this->registerAjaxFunction('submitFormData');
 }
コード例 #8
0
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $init = array_key_exists('init', $this->request);
     $reset = array_key_exists('reset', $this->request);
     $this->id = initVar('id');
     $this->act = initVar('act', 'list');
     $this->order = PageVar('order', '1A', $init, false, $this->baseName);
     $this->pg = PageVar('pg', 0, $init | $reset, false, $this->baseName);
     $this->registerAjaxFunction('getHelp');
     $this->registerAjaxFunction('submitFormData');
 }
コード例 #9
0
ファイル: obj.about.php プロジェクト: r3-gis/EcoGIS
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $init = array_key_exists('init', $this->request);
     $reset = array_key_exists('reset', $this->request);
     $this->id = initVar('id');
     $this->act = initVar('act', 'show');
     $this->do_id = PageVar('do_id', $_SESSION['do_id'], $init | $reset, false, $this->baseName);
     $this->pr_id = PageVar('pr_id', null, $init | $reset, false, $this->baseName);
     $this->mu_id = PageVar('mu_id', null, $init | $reset, false, $this->baseName);
     $this->mu_name = PageVar('mu_name', null, $init | $reset, false, $this->baseName);
 }
コード例 #10
0
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $init = array_key_exists('init', $this->request);
     $this->act = initVar('act', 'list');
     $this->sl_id = PageVar('sl_id');
     $this->last_id = initVar('consumption_last_id');
     $this->parent_act = PageVar('parent_act');
     $this->tab_mode = initVar('tab_mode');
     $this->order = PageVar('order', '6A', $init, false, $this->baseName);
     setLang(R3Locale::getLanguageCode());
     setLangInfo(array('thousands_sep' => "."));
 }
コード例 #11
0
ファイル: obj.device.php プロジェクト: r3-gis/EcoGIS
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->fields = $this->defFields();
     $init = array_key_exists('init', $this->request);
     $reset = array_key_exists('reset', $this->request);
     $this->id = initVar('id');
     $this->act = initVar('act', 'list');
     $this->kind = PageVar('kind');
     $this->em_id = PageVar('em_id', null, $init | $reset, false, $this->baseName);
     $this->tabMode = PageVar('tab_mode', null, $init | $reset, false, $this->baseName);
     setLang(R3Locale::getLanguageCode());
     setLangInfo(array('thousands_sep' => "."));
     $this->registerAjaxFunction('confirm_delete_device');
     $this->registerAjaxFunction('submitFormData');
 }
コード例 #12
0
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->kind = initVar('kind');
     $this->act = initVar('act', 'add');
     $this->mu_id = initVar('mu_id');
     $this->mu_name = initVar('mu_name');
     if ($this->mu_name != '') {
         // Convert municipality text into id
         $db = ezcDbInstance::get();
         $lang = R3Locale::getLanguageID();
         $this->mu_id = (int) $db->query("SELECT mu_id FROM municipality WHERE mu_name_{$lang} ILIKE " . $db->quote($request['mu_name']))->fetchColumn();
     }
     setLang(R3Locale::getLanguageCode());
     $this->registerAjaxFunction('submitFormData');
 }
コード例 #13
0
ファイル: obj.building.php プロジェクト: r3-gis/EcoGIS
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->fields = $this->defFields();
     $init = array_key_exists('init', $this->request);
     $reset = array_key_exists('reset', $this->request);
     $storeVar = isset($_GET['act']) && $_GET['act'] == 'list' || $reset || $init;
     // if true store the filter variables
     if ($init || $reset) {
         $storeVar = true;
     }
     $this->id = initVar('id');
     if (initVar('bu_id') !== null) {
         $this->id = initVar('bu_id');
     }
     $this->last_id = initVar('last_id');
     $this->parent_act = initVar('parent_act');
     $this->act = initVar('act', 'list');
     $this->do_id = $_SESSION['do_id'];
     $this->pr_id = PageVar('pr_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->mu_id = PageVar('mu_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->mu_name = PageVar('mu_name', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->fr_id = PageVar('fr_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->fr_name = PageVar('fr_name', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->st_id = PageVar('st_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->st_name = PageVar('st_name', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->bu_civic = PageVar('bu_civic', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->bu_code = PageVar('bu_code', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->bu_name = PageVar('bu_name', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->bpu_id = PageVar('bpu_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->bt_id = PageVar('bt_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->bby_id = PageVar('bby_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->bry_id = PageVar('bry_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->bu_to_check = PageVar('bu_to_check', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->bu_alternative_simulation = PageVar('bu_alternative_simulation', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->order = PageVar('order', '1A', $init, false, $this->baseName, $storeVar);
     $this->pg = PageVar('pg', 0, $init | $reset, false, $this->baseName, $storeVar);
     $this->registerAjaxFunction('getHelp');
     $this->registerAjaxFunction('fetch_fr_st_cm');
     $this->registerAjaxFunction('fetch_fraction');
     $this->registerAjaxFunction('getStreetList');
     $this->registerAjaxFunction('fetch_catmunic');
     $this->registerAjaxFunction('fetch_municipality');
     $this->registerAjaxFunction('fetch_eneryClassLimit');
     $this->registerAjaxFunction('askDelBuilding');
     $this->registerAjaxFunction('submitFormData');
 }
コード例 #14
0
ファイル: obj.consumption.php プロジェクト: r3-gis/EcoGIS
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $init = array_key_exists('init', $this->request);
     $reset = array_key_exists('reset', $this->request);
     $this->id = initVar('id');
     $this->act = initVar('act', 'list');
     $this->kind = PageVar('kind');
     $this->em_id = PageVar('em_id', null, $init | $reset, false, $this->baseName);
     $this->sl_id = PageVar('sl_id', null, $init | $reset, false, $this->baseName);
     $this->tabMode = PageVar('tab_mode', null, $init | $reset, false, $this->baseName);
     $data = R3EcoGisHelper::getMeterData($_SESSION['do_id'], $this->em_id);
     $this->fields = $this->defFields($data['em_is_production'] == 'T');
     setLang(R3Locale::getLanguageCode());
     setLangInfo(array('thousands_sep' => "."));
     $this->registerAjaxFunction('confirm_delete_consumption');
     $this->registerAjaxFunction('submitFormData');
 }
コード例 #15
0
ファイル: obj.document.php プロジェクト: r3-gis/EcoGIS
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->id = initVar('id');
     $this->last_id = initVar('last_id');
     $this->file_id = initVar('file_id');
     $this->doc_object_id = initVar('doc_object_id');
     $this->type = initVar('type');
     $this->act = initVar('act', 'list');
     $this->tab_mode = initVar('tab_mode');
     $this->parent_act = PageVar('parent_act');
     $this->disposition = initVar('disposition', 'inline');
     $this->limit = 0;
     $this->fields = $this->defFields();
     $this->documentType = 'document';
     $this->isDialog = true;
     $this->registerAjaxFunction('submitFormData');
     $this->registerAjaxFunction('confirm_delete_document');
 }
コード例 #16
0
ファイル: obj.meter.php プロジェクト: r3-gis/EcoGIS
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->fields = $this->defFields();
     $init = array_key_exists('init', $this->request);
     $reset = array_key_exists('reset', $this->request);
     $this->do_id = $_SESSION['do_id'];
     $this->id = initVar('id');
     $this->act = initVar('act', 'list');
     $this->kind = initVar('kind');
     $this->bu_id = initVar('bu_id');
     $this->tabMode = initVar('tab_mode');
     setLang(R3Locale::getLanguageCode());
     setLangInfo(array('thousands_sep' => "."));
     $this->registerAjaxFunction('fetchUDM');
     $this->registerAjaxFunction('getEnergySourceList');
     $this->registerAjaxFunction('getUtilityProductList');
     $this->registerAjaxFunction('confirmDeleteMeter');
     $this->registerAjaxFunction('submitFormData');
 }
コード例 #17
0
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->id = initVar('id');
     $this->act = initVar('act', 'list');
     $this->tab_mode = initVar('tab_mode');
     $this->kind = initVar('kind');
     $this->ge_id = (int) initVar('ge_id');
     $this->gc_id = (int) initVar('gc_id');
     $this->limit = 0;
     $this->do_id = PageVar('do_id', $_SESSION['do_id'], false, false, $this->baseName);
     setLang(R3Locale::getLanguageCode());
     setLangInfo(array('thousands_sep' => "."));
     $this->fields = $this->defFields();
     $this->registerAjaxFunction('fetchUDM');
     $this->registerAjaxFunction('performEnergySourceRowCalc');
     $this->registerAjaxFunction('confirmDeleteGlobalConsumptionRow');
     $this->registerAjaxFunction('getEnergySource');
     $this->registerAjaxFunction('getEnergyUDM');
     $this->registerAjaxFunction('performActionCatalogCalc');
     $this->registerAjaxFunction('submitFormData');
 }
コード例 #18
0
ファイル: obj.street_lighting.php プロジェクト: r3-gis/EcoGIS
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->fields = $this->defFields();
     $storeVar = isset($_GET['act']) && $_GET['act'] == 'list';
     // if true store the filter variables
     $init = array_key_exists('init', $this->request);
     $reset = array_key_exists('reset', $this->request);
     if ($init || $reset) {
         $storeVar = true;
     }
     $this->id = initVar('id');
     if (initVar('sl_id') !== null) {
         $this->id = initVar('sl_id');
     }
     $this->act = initVar('act', 'list');
     $this->last_id = initVar('last_id');
     $this->parent_act = initVar('parent_act');
     $this->do_id = $_SESSION['do_id'];
     $this->pr_id = PageVar('pr_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->mu_id = PageVar('mu_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->mu_name = PageVar('mu_name', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->st_id = PageVar('st_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->st_name = PageVar('st_name', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->sl_full_name = PageVar('sl_full_name', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->sl_to_check = PageVar('sl_to_check', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->order = PageVar('order', '1A', $init, false, $this->baseName, $storeVar);
     $this->pg = PageVar('pg', 0, $init | $reset, false, $this->baseName, $storeVar);
     setLang(R3Locale::getLanguageCode());
     setLangInfo(array('thousands_sep' => "."));
     $this->registerAjaxFunction('getHelp');
     $this->registerAjaxFunction('getMunicipalityList');
     $this->registerAjaxFunction('getStreetList');
     $this->registerAjaxFunction('getStreetLength');
     $this->registerAjaxFunction('confirmDeleteStreetLighting');
     $this->registerAjaxFunction('submitFormData');
 }
コード例 #19
0
ファイル: obj.public_user.php プロジェクト: r3-gis/EcoGIS
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->fields = array();
     $init = array_key_exists('init', $this->request);
     $reset = array_key_exists('reset', $this->request);
     $this->id = initVar('id');
     $this->act = 'list';
     $this->order = PageVar('order', '1A', $init, false, $this->baseName);
     $this->pg = PageVar('pg', 0, $init | $reset, false, $this->baseName);
     $this->do_id = $_SESSION['do_id'];
     $storeVar = isset($_GET['act']) && $_GET['act'] == 'list' || $reset || $init;
     if ($init || $reset) {
         $storeVar = true;
     }
     $this->us_name_email = PageVar('us_name_email', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->us_status = PageVar('us_status', null, $init | $reset, false, $this->baseName, $storeVar);
     setLang(R3Locale::getLanguageCode());
     setLangInfo(array('thousands_sep' => "."));
     $this->registerAjaxFunction('askEnablePublicUser');
     $this->registerAjaxFunction('askDelPublicUser');
     $this->registerAjaxFunction('enablePublicUser');
     $this->registerAjaxFunction('delPublicUser');
 }
コード例 #20
0
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->fields = array();
     $init = array_key_exists('init', $this->request);
     $reset = array_key_exists('reset', $this->request);
     $this->id = initVar('id');
     $this->act = initVar('act', 'list');
     $this->order = PageVar('order', '1A', $init, false, $this->baseName);
     $this->pg = PageVar('pg', 0, $init | $reset, false, $this->baseName);
     $storeVar = isset($_GET['act']) && $_GET['act'] == 'list' || $reset || $init;
     // if true store the filter variables
     if ($init || $reset) {
         $storeVar = true;
     }
     $this->do_id_filter = (int) PageVar('do_id_filter', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->mu_name_collection = PageVar('mu_name_collection', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->mu_name = PageVar('mu_name', null, $init | $reset, false, $this->baseName, $storeVar);
     setLang(R3Locale::getLanguageCode());
     setLangInfo(array('thousands_sep' => "."));
     $this->registerAjaxFunction('submitFormData');
     $this->registerAjaxFunction('confirmDeleteMunicipalityCollection');
     $this->registerAjaxFunction('getAvailableMunicipalityForCollection');
 }
コード例 #21
0
ファイル: obj.base_lookup.php プロジェクト: r3-gis/EcoGIS
 /**
  * Constructor
  */
 public function __construct(array $request = array(), array $opt = array())
 {
     if (!isset($request['act'])) {
         $request['act'] = 'list';
     }
     $this->request = $request;
     $this->opt = $opt;
     $this->baseName = substr(get_class($this), strlen(CLASS_PREFIX));
     $this->filterTitle = _("Filtro:");
     $this->actions = array('SHOW', 'ADD', 'MOD', 'DEL');
     // Set the locale for text only
     //setLang(R3Locale::getLanguageCode(), LC_MESSAGES);
     //setLangInfo(array('thousands_sep'=>"."));
     if (defined('USE_JQGRID')) {
         $this->registerAjaxFunction('getListData');
     }
     $this->registerAjaxFunction('submitFormData');
     $this->registerAjaxFunction('confirmDeleteLookup');
     $init = array_key_exists('init', $this->request);
     $reset = array_key_exists('reset', $this->request);
     $this->isFilter = initVar('is_filter');
     $this->act = initVar('act', 'list');
     $this->do_id = $_SESSION['do_id'];
     $this->id = initVar('id');
     $this->order = PageVar('order', '1A', $init, false, $this->baseName);
     $this->pg = PageVar('pg', 0, $init | $reset, false, $this->baseName);
     $this->fields = $this->defFields();
     $this->setupFilterVars();
 }
コード例 #22
0
ファイル: obj.global_strategy.php プロジェクト: r3-gis/EcoGIS
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->fields = $this->defFields();
     $storeVar = isset($_GET['act']) && $_GET['act'] == 'list';
     // if true store the filter variables
     $init = array_key_exists('init', $this->request);
     $reset = array_key_exists('reset', $this->request);
     if ($init || $reset) {
         $storeVar = true;
     }
     $this->id = (int) initVar('id');
     $this->last_id = initVar('last_id');
     $this->act = initVar('act', 'list');
     $this->parent_act = initVar('parent_act');
     $this->do_id = PageVar('do_id', $_SESSION['do_id'], $init | $reset, false, $this->baseName, $storeVar);
     $this->pr_id = PageVar('pr_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->mu_id = PageVar('mu_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->mu_name = PageVar('mu_name', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->gst_name = PageVar('gst_name', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->order = PageVar('order', '1A', $init, false, $this->baseName, $storeVar);
     $this->pg = PageVar('pg', 0, $init | $reset, false, $this->baseName, $storeVar);
     setLang(R3Locale::getLanguageCode());
     setLangInfo(array('thousands_sep' => "."));
     $this->registerAjaxFunction('getHelp');
     $this->registerAjaxFunction('loadGE_GS');
     $this->registerAjaxFunction('submitFormData');
     $this->registerAjaxFunction('exportPAES');
     $this->registerAjaxFunction('exportPAESDlg');
     $this->registerAjaxFunction('getExportPAESStatus');
     $this->registerAjaxFunction('askDelGlobalStrategy');
 }
コード例 #23
0
ファイル: obj.utility.php プロジェクト: r3-gis/EcoGIS
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->fields = $this->defFields();
     $init = array_key_exists('init', $this->request);
     $reset = array_key_exists('reset', $this->request);
     $this->id = initVar('id');
     $this->last_id = initVar('last_id');
     $this->act = initVar('act', 'list');
     $this->do_id = $_SESSION['do_id'];
     // PageVar('do_id',          $_SESSION['do_id'],    $init | $reset, false, $this->baseName);
     $this->mu_id = PageVar('mu_id', null, $init | $reset, false, $this->baseName);
     $this->mu_name = PageVar('mu_name', null, $init | $reset, false, $this->baseName);
     $this->es_id = PageVar('es_id', null, $init | $reset, false, $this->baseName);
     $this->order = PageVar('order', '1A', $init, false, $this->baseName);
     $this->pg = PageVar('pg', 0, $init | $reset, false, $this->baseName);
     setLang(R3Locale::getLanguageCode());
     setLangInfo(array('thousands_sep' => "."));
     $this->registerAjaxFunction('getHelp');
     $this->registerAjaxFunction('submitFormData');
     $this->registerAjaxFunction('askDelUtility');
 }
コード例 #24
0
 /**
  * Return the data for a single customer 
  */
 public function getData($id = null)
 {
     $lang = R3Locale::getLanguageID();
     if ($id === null) {
         $id = $this->id;
     }
     $db = ezcDbInstance::get();
     $vlu = array();
     if ($this->new_udm_divider != '') {
         $lastDivider = $this->auth->setConfigValue('SETTINGS', 'GLOBAL_RESULT_LAST_UDM_DIVIDER', $this->new_udm_divider, array('permanent' => true));
     }
     $lastDivider = $this->auth->getConfigValue('SETTINGS', 'GLOBAL_RESULT_LAST_UDM_DIVIDER', 1);
     $this->udm_divider = initVar('udm_divider', $lastDivider);
     if ($this->act != 'add') {
         $sql = "SELECT mu_type FROM ecogis.global_entry_data WHERE ge_id=" . (int) $this->ge_id;
         $vlu['mu_type'] = $db->query($sql)->fetchColumn();
         $vlu['udm_divider'] = $this->udm_divider;
         $vlu['merge_municipality_data'] = $this->merge_municipality_data;
         $vlu['header'] = R3EcoGisGlobalTableHelper::getParameterList($this->kind);
         $vlu['header']['parameter_count'] = R3EcoGisGlobalTableHelper::getParameterCount($this->kind);
         $vlu['data'] = R3EcoGisGlobalTableHelper::getCategoriesData($this->ge_id, $this->kind, $this->udm_divider, true, $this->gc_id, $this->merge_municipality_data);
     } else {
         $vlu = array();
     }
     $this->data = $vlu;
     // Save the data (prevent multiple sql)
     return $vlu;
 }
コード例 #25
0
ファイル: personal_settings.php プロジェクト: r3-gis/EcoGIS
// TODO: Include function for following code (function interpreted extra_fields)
/** User extra field for the common section */
$extra_fields = $auth->getConfigValue('USER_MANAGER', 'EXTRA_FIELDS', array());
if (isset($users_extra_fields)) {
    $extra_fields = array_merge($extra_fields, $users_extra_fields);
}
readFieldArray($mdb2, $auth, $extra_fields, $data);
$canChangePassword = $auth->canChangePassword();
if (isset($data['as_change_password'])) {
    $canChangePassword = $data['as_change_password'];
}
// TODO: MULTILANGUAGE
if ($status != '' && $status != '0') {
    if (isset($txt['auth_error_' . $status])) {
        $text = $txt['auth_error_' . $status];
    } else {
        if (isset($auth_err['auth_error_' . $status])) {
            $text = $auth_err['auth_error_' . $status];
        } else {
            $text = $auth->getStatusMessage($status);
        }
    }
    $smarty->assign('status', $status);
    $smarty->assign('statusText', $text);
}
$smarty->assign('canChangePassword', $canChangePassword && $auth->getConfigValue('USER_MANAGER', 'CHANGE_USER_PASSWORD') != 'F');
$smarty->assign('extra_fields', $extra_fields);
$smarty->assign('vlu', $data);
$smarty->assign('popup', initVar('popup', 'f'));
$smarty->assign('list_uri', initVar('list_uri'));
$smarty->display('users/personal_settings.tpl');
コード例 #26
0
ファイル: obj.action_catalog.php プロジェクト: r3-gis/EcoGIS
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->fields = $this->defFields();
     $storeVar = isset($_GET['act']) && $_GET['act'] == 'list';
     // if true store the filter variables
     $init = array_key_exists('init', $this->request);
     $reset = array_key_exists('reset', $this->request);
     if ($init || $reset) {
         $storeVar = true;
     }
     $this->id = initVar('id');
     $this->last_id = initVar('last_id');
     $this->parent_act = initVar('parent_act');
     $this->tab_mode = initVar('tab_mode');
     $this->act = initVar('act', 'list');
     $this->do_id = $_SESSION['do_id'];
     $this->bu_id = initVar('bu_id');
     $this->pr_id = PageVar('pr_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->mu_id = PageVar('mu_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->mu_name = PageVar('mu_name', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->ac_name = PageVar('ac_name', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->gc_id = PageVar('gc_id', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->gpa_name = PageVar('gpa_name', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->gpa_name = PageVar('ac_alternative_simulation', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->order = PageVar('order', '1A', $init, false, $this->baseName, $storeVar);
     $this->pg = PageVar('pg', 0, $init | $reset, false, $this->baseName, $storeVar);
     $this->tableURL = array('bu_id' => $this->bu_id);
     setLang(R3Locale::getLanguageCode());
     setLangInfo(array('thousands_sep' => "."));
     $this->registerAjaxFunction('getHelp');
     $this->registerAjaxFunction('submitFormData');
     $this->registerAjaxFunction('getGlobalCategory');
     $this->registerAjaxFunction('getGlobalSubCategory');
     $this->registerAjaxFunction('getRelatedActionsList');
     $this->registerAjaxFunction('getEnergySource');
     $this->registerAjaxFunction('getEnergyUDM');
     $this->registerAjaxFunction('performActionCatalogCalc');
     $this->registerAjaxFunction('askDelActionCatalog');
     $this->registerAjaxFunction('updateActionName');
     $this->registerAjaxFunction('checkSubActionMapLink');
 }
コード例 #27
0
ファイル: obj.customer.php プロジェクト: r3-gis/EcoGIS
 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $init = array_key_exists('init', $this->request);
     $reset = array_key_exists('reset', $this->request);
     $this->id = initVar('id');
     $this->act = initVar('act', 'list');
     $this->order = PageVar('order', '1A', $init, false, $this->baseName);
     $this->pg = PageVar('pg', 0, $init | $reset, false, $this->baseName);
     $this->fields = $this->defFields();
     setLang(R3Locale::getLanguageCode());
     setLangInfo(array('thousands_sep' => "."));
     $this->registerAjaxFunction('getHelp');
     $this->registerAjaxFunction('validateDomain');
     $this->registerAjaxFunction('getSRIDDesc');
     $this->registerAjaxFunction('getMunicipality');
     $this->registerAjaxFunction('submitFormData');
     $this->registerAjaxFunction('confirmDeleteCustomer');
     $this->registerAjaxFunction('vacuum');
     $this->registerAjaxFunction('create_grid');
 }
コード例 #28
0
ファイル: logout.php プロジェクト: r3-gis/EcoGIS
    require_once R3_APP_ROOT . 'lib/r3_auth_gui_start.php';
}
if (!defined("__R3_AUTH__")) {
    require_once R3_APP_ROOT . 'lib/r3auth.php';
}
require_once R3_APP_ROOT . 'lib/storevar.php';
$auth = R3AuthInstance::get();
if (is_null($auth)) {
    $auth = new R3AuthManager($mdb2, $auth_options, APPLICATION_CODE);
    R3AuthInstance::set($auth);
}
if ($auth->status < 0) {
    /** Password expired */
    $status = AUTH_PASSWORD_EXPIRED;
} else {
    $status = initVar('status');
}
Header("location: ../logout.php?status={$status}");
die;
?>
<html>
<title>Logout</title>
<head>
<script type="text/javascript" >

window.onload=function() {
    top.document.src = '../logout.php';
};
    
</script>
</head>
コード例 #29
0
ファイル: app_manager.php プロジェクト: r3-gis/EcoGIS
$scriptStartTime = microtime(true);
define('R3_FAST_SESSION', true);
require_once dirname(__FILE__) . '/../../etc/config.php';
require_once R3_LIB_DIR . 'eco_app.php';
require_once R3_LIB_DIR . 'eco_utils.php';
require_once R3_LIB_DIR . 'storevar.php';
require_once R3_LIB_DIR . 'r3locale.php';
require_once R3_LANG_DIR . 'lang.php';
register_shutdown_function('shutdown');
/* ---------------- Startup ------------------------------------------------- */
R3AppStart('admin', array('auth' => true, 'auth_manager' => false, 'allow_change_password' => true));
/* ------------------------------ Settings ------------------------------ */
$url = initVar('url');
if ($url === null) {
    $page = initVar('page');
    if ($page === null) {
        $page = 'list';
    }
    $page .= '.php';
    if (count($_GET) > 0) {
        $page .= '?';
        foreach ($_GET as $key => $val) {
            if ($key != 'page') {
                if ($val == '') {
                    $page .= urlencode($key) . '&amp;';
                } else {
                    $page .= urlencode($key) . '=' . urlencode($val) . '&amp;';
                }
            }
        }
コード例 #30
0
ファイル: export.php プロジェクト: r3-gis/EcoGIS
        if ($ac_verb != '') {
            $fileName .= '_' . $ac_verb;
        }
        if ($ac_name != '') {
            $fileName .= '_' . $ac_name;
        }
        if ($ac_type != '') {
            $fileName .= '_' . $ac_type;
        }
    } else {
        if ($what == 'GROUP') {
            if (!$auth->hasPerm('EXPORT', 'GROUP')) {
                die("PERMISSION DENIED\n");
            }
            $app_code = pageVar('fltapp_code', null, false, false, 'general');
            $expgroup = initVar('expgroup');
            if ($expgroup != '') {
                list($app_code, $expgroup) = explode('|', $expgroup);
            }
            $data = $auth->exportGroup($app_code == '' ? null : $app_code, $expgroup == '' ? null : $expgroup, $auth->hasPerm('EXPORT', 'ACNAME'));
            $fileName = 'GROUP';
            if ($app_code != '') {
                $fileName .= '_' . $app_code;
            }
            if ($expgroup != '') {
                $fileName .= '_' . $expgroup;
            }
        }
    }
}
//Begin writing headers