diff options
author | M.Gergo | 2020-11-19 14:20:03 +0100 |
---|---|---|
committer | M.Gergo | 2020-11-19 14:20:03 +0100 |
commit | 5d168373f8d3de040dd0f696f2f783958b1304de (patch) | |
tree | ba509bd157776b62f5c82d8de74bda73f4ec196f /mayor-orig/mayor-portal/www/policy | |
parent | c279e479aa9c943fd0fc2b396638a5208c78cfb9 (diff) | |
download | mayor-rev4710.tar.gz mayor-rev4710.zip |
Rev: 4710rev4710
Diffstat (limited to 'mayor-orig/mayor-portal/www/policy')
-rw-r--r-- | mayor-orig/mayor-portal/www/policy/private/portal/portal/portal-pre.php | 8 | ||||
-rw-r--r-- | mayor-orig/mayor-portal/www/policy/public/portal/portal/portal-pre.php | 9 |
2 files changed, 15 insertions, 2 deletions
diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal-pre.php b/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal-pre.php index dc4e79d5..d8026e35 100644 --- a/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal-pre.php +++ b/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal-pre.php @@ -5,7 +5,13 @@ require_once('include/modules/portal/share/kerdoiv.php'); require_once('include/modules/session/groupInfo.php'); - $ADAT['hirek'] = getHirek(array('cid'=>array(0),'tolDt'=>date('Y-m-d H:i:s'), 'igDt'=>date('Y-m-d H:i:s'),'flag'=>array(1),'class'=>array(1,6),'csoport'=>$AUTH['my']['categories'])); + $ADAT['kategoriak'] = getKategoriak(); + for ($i=0; $i<count($ADAT['kategoriak']); $i++) { + $RESTRICTKATEGORIA[] = intval($ADAT['kategoriak'][$i]['id']); + } + $kategoriaId = readVariable($_GET['kategoriaId'],'id',null,$RESTRICTKATEGORIA); + $ADAT['kategoriaId'] = $kategoriaId; + $ADAT['hirek'] = getHirek(array('kategoria'=>array($kategoriaId),'cid'=>array(0),'tolDt'=>date('Y-m-d H:i:s'), 'igDt'=>date('Y-m-d H:i:s'),'flag'=>array(1),'class'=>array(1,6),'csoport'=>$AUTH['my']['categories'])); $ADAT['kerdoiv'] = getKerdoiv(_POLICY); $ev=date('Y');$honap=date('m');$nap=date('d'); diff --git a/mayor-orig/mayor-portal/www/policy/public/portal/portal/portal-pre.php b/mayor-orig/mayor-portal/www/policy/public/portal/portal/portal-pre.php index d02f5484..44906949 100644 --- a/mayor-orig/mayor-portal/www/policy/public/portal/portal/portal-pre.php +++ b/mayor-orig/mayor-portal/www/policy/public/portal/portal/portal-pre.php @@ -14,7 +14,14 @@ // $ADAT['nevnap']['ma'] = getNevnap(date('m'),date('d')); // $ADAT['nevnap']['holnap'] = getNevnap(date('m'),date('d')+1); - $FILTER=array('tolDt'=>date('Y-m-d H:i:s'), 'igDt'=>date('Y-m-d H:i:s'),'flag'=>array(1),'class'=>array(1)); + $ADAT['kategoriak'] = getKategoriak(); + for ($i=0; $i<count($ADAT['kategoriak']); $i++) { + $RESTRICTKATEGORIA[] = intval($ADAT['kategoriak'][$i]['id']); + } + $kategoriaId = readVariable($_GET['kategoriaId'],'id',null,$RESTRICTKATEGORIA); + $ADAT['kategoriaId'] = $kategoriaId; + + $FILTER=array('tolDt'=>date('Y-m-d H:i:s'), 'igDt'=>date('Y-m-d H:i:s'),'flag'=>array(1),'class'=>array(1),'kategoria'=>array($kategoriaId)); if (defined('__PORTAL_RESTRICT_CID')) $FILTER['cid'] = explode(',',__PORTAL_RESTRICT_CID); |