本文整理汇总了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');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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);
}
示例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' => "."));
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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);
}