當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PageVar函數代碼示例

本文整理匯總了PHP中PageVar函數的典型用法代碼示例。如果您正苦於以下問題:PHP PageVar函數的具體用法?PHP PageVar怎麽用?PHP PageVar使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了PageVar函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 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');
 }
開發者ID:r3-gis,項目名稱:EcoGIS,代碼行數:25,代碼來源:obj.global_plain_gauge.php

示例2: __construct

 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');
 }
開發者ID:r3-gis,項目名稱:EcoGIS,代碼行數:25,代碼來源:obj.import_seap.php

示例3: __construct

 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');
 }
開發者ID:r3-gis,項目名稱:EcoGIS,代碼行數:26,代碼來源:obj.stat_type.php

示例4: __construct

 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->ge_id = (int) initVar('ge_id');
     $this->gs_id = (int) initVar('gs_id');
     $this->gc_id = initVar('gc_id');
     $this->act = initVar('act', initVar('parent_act', 'mod'));
     $this->parent_act = initVar('parent_act', 'mod');
     $this->kind = strToUpper(initVar('kind'));
     $this->new_udm_divider = initVar('udm_divider');
     $this->merge_municipality_data = PageVar('merge_municipality_data', 'T') == 'T' ? true : false;
     $this->toggle_subcategory = initVar('toggle_subcategory');
     $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->bpu_id = PageVar('bpu_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('toggleSubcategory');
     $this->registerAjaxFunction('updateLastOpenCloseStatus');
 }
開發者ID:r3-gis,項目名稱:EcoGIS,代碼行數:27,代碼來源:obj.global_result_table.php

示例5: __construct

 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');
 }
開發者ID:r3-gis,項目名稱:EcoGIS,代碼行數:29,代碼來源:obj.global_result.php

示例6: __construct

 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $this->act = 'mod';
     $this->module = PageVar('module', null, false, false, $this->baseName);
     $this->registerAjaxFunction('submitFormData');
     $this->registerAjaxFunction('resetTableColumnToDefault');
 }
開發者ID:r3-gis,項目名稱:EcoGIS,代碼行數:8,代碼來源:obj.setup_table_column.php

示例7: __construct

 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');
 }
開發者ID:r3-gis,項目名稱:EcoGIS,代碼行數:12,代碼來源:obj.global_action_builder.php

示例8: __construct

 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);
 }
開發者ID:r3-gis,項目名稱:EcoGIS,代碼行數:12,代碼來源:obj.about.php

示例9: __construct

 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' => "."));
 }
開發者ID:r3-gis,項目名稱:EcoGIS,代碼行數:13,代碼來源:obj.street_lighting_consumption.php

示例10: __construct

 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');
 }
開發者ID:r3-gis,項目名稱:EcoGIS,代碼行數:16,代碼來源:obj.device.php

示例11: __construct

 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');
 }
開發者ID:r3-gis,項目名稱:EcoGIS,代碼行數:47,代碼來源:obj.building.php

示例12: __construct

 public function __construct(array $request = array(), array $opt = array())
 {
     parent::__construct($request, $opt);
     $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->gc_id_filter = PageVar('gc_id_filter', null, $init | $reset, false, $this->baseName, $storeVar);
     $this->gp_name = PageVar('gp_name', null, $init | $reset, false, $this->baseName, $storeVar);
     setLang(R3Locale::getLanguageCode());
     setLangInfo(array('thousands_sep' => "."));
     $this->registerAjaxFunction('getHelp');
     $this->registerAjaxFunction('countGaugeAndMonitor');
 }
開發者ID:r3-gis,項目名稱:EcoGIS,代碼行數:17,代碼來源:obj.global_plain_action.php

示例13: __construct

 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');
 }
開發者ID:r3-gis,項目名稱:EcoGIS,代碼行數:18,代碼來源:obj.consumption.php

示例14: __construct

 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');
 }
開發者ID:r3-gis,項目名稱:EcoGIS,代碼行數:19,代碼來源:obj.document.php

示例15: ThumbShoeMakeThumb

function ThumbShoeMakeThumb($pagename, $picpath, $w = 128, $h = 128)
{
    global $ThumbShoeThumbBg, $ThumbShoeThumbPrefix;
    global $UploadDir;
    $uploaddir = PageVar($pagename, '$TSAttachDir');
    $name = PageVar($pagename, '$Name');
    $thumbpath = "{$uploaddir}/{$ThumbShoeThumbPrefix}{$name}.png";
    if (!file_exists($picpath)) {
        return;
    }
    // if the thumbnail has already been created
    // and it is newer than the original image, return.
    if (file_exists($thumbpath) && filemtime($thumbpath) > filemtime($picpath)) {
        return;
    }
    if (!file_exists($uploaddir)) {
        mkdirp($uploaddir);
    }
    $bg = $ThumbShoeThumbBg;
    $tmp1 = "{$uploaddir}/{$name}_tmp.png";
    $area = $w * $h;
    # Need to use the following conversion because of
    # ImageMagick version earlier than 6.3
    $cmdfmt = 'convert -thumbnail \'%dx%d>\' -bordercolor %s -background %s -border 50 -gravity center  -crop %dx%d+0+0 +repage %s %s';
    $cl = sprintf($cmdfmt, $w, $h, $bg, $bg, $w, $h, $picpath, $tmp1);
    $r = exec($cl, $o, $status);
    if (intval($status) != 0) {
        Abort("convert returned <pre>{$r}\n" . print_r($o, true) . "'</pre> with a status '{$status}'.<br/> Command line was '{$cl}'.");
    }
    if (!file_exists($tmp1)) {
        Abort("Failed to create '{$tmp1}';<br/> Command line was '{$cl}'.");
    }
    // fluff
    $cmdfmt = 'convert -mattecolor %s -frame 6x6+3+0 %s %s';
    $cl = sprintf($cmdfmt, $bg, $tmp1, $thumbpath);
    $r = exec($cl, $o, $status);
    if (intval($status) != 0) {
        Abort("convert returned <pre>{$r}\n" . print_r($o, true) . "'</pre> with a status '{$status}'.<br/> Command line was '{$cl}'.");
    }
    unlink($tmp1);
}
開發者ID:rubykat,項目名稱:pmwiki-thumbshoe,代碼行數:41,代碼來源:thumbs.php


注:本文中的PageVar函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。