From 095e5987eadbe3786be5e12ef385bda9640155b0 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Fri, 6 Jul 2018 11:34:04 +0200 Subject: checkupdate.sh + portal 2018/Feb kiinduló --- .../www/policy/public/portal/portal/hir-pre.php | 24 ++++++++++ mayor-orig/www/policy/public/portal/portal/hir.php | 11 +++++ .../www/policy/public/portal/portal/portal-pre.php | 53 ++++++++++++++++++++++ .../www/policy/public/portal/portal/portal.php | 37 +++++++++++++++ .../public/portal/portal/portal_demo.classic.php | 43 ++++++++++++++++++ .../public/portal/portal/portal_demo.pda.php | 29 ++++++++++++ 6 files changed, 197 insertions(+) create mode 100644 mayor-orig/www/policy/public/portal/portal/hir-pre.php create mode 100644 mayor-orig/www/policy/public/portal/portal/hir.php create mode 100644 mayor-orig/www/policy/public/portal/portal/portal-pre.php create mode 100644 mayor-orig/www/policy/public/portal/portal/portal.php create mode 100644 mayor-orig/www/policy/public/portal/portal/portal_demo.classic.php create mode 100644 mayor-orig/www/policy/public/portal/portal/portal_demo.pda.php (limited to 'mayor-orig/www/policy/public/portal') diff --git a/mayor-orig/www/policy/public/portal/portal/hir-pre.php b/mayor-orig/www/policy/public/portal/portal/hir-pre.php new file mode 100644 index 00000000..7e88f0f3 --- /dev/null +++ b/mayor-orig/www/policy/public/portal/portal/hir-pre.php @@ -0,0 +1,24 @@ +=1) { + if (_POLICY=='private') + $FILTER=array('id'=>$hirId); + else + $FILTER=array('id'=>$hirId,'flag'=>array(1),'class'=>array(1)); + + if (defined('__PORTAL_RESTRICT_CID')) + $FILTER['cid'] = explode(',',__PORTAL_RESTRICT_CID); + + $ADAT['hirek'] = getHirek($FILTER); + /* opengraph attributumok */ + $OG = array('title'=>$ADAT['hirek']['szovegek'][0]['cim'],'getparameter'=>'hirId='.$hirId); + if ($ADAT['hirek']['szovegek'][0]['pic']!='') { + $OG['image'] = $ADAT['hirek']['szovegek'][0]['pic']; + } + } + + +?> diff --git a/mayor-orig/www/policy/public/portal/portal/hir.php b/mayor-orig/www/policy/public/portal/portal/hir.php new file mode 100644 index 00000000..6a7ee860 --- /dev/null +++ b/mayor-orig/www/policy/public/portal/portal/hir.php @@ -0,0 +1,11 @@ + diff --git a/mayor-orig/www/policy/public/portal/portal/portal-pre.php b/mayor-orig/www/policy/public/portal/portal/portal-pre.php new file mode 100644 index 00000000..7ef3ebca --- /dev/null +++ b/mayor-orig/www/policy/public/portal/portal/portal-pre.php @@ -0,0 +1,53 @@ +=24) { + $nap=$nap+1; + } + + $ADAT['nevnap']['ma'] = getNevnap($honap,$nap); + $ADAT['nevnap']['holnap'] = getNevnap($honap,$nap+1); + +// $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)); + if (defined('__PORTAL_RESTRICT_CID')) + $FILTER['cid'] = explode(',',__PORTAL_RESTRICT_CID); + + $ADAT['hirek'] = getHirek($FILTER); + $ADAT['kerdoiv'] = getKerdoiv(_POLICY); + + $kerdoivId = readVariable($_POST['kerdoivId'],'numeric',$ADAT['kerdoiv']['kerdes']['sorszam']); + $vId = readVariable($_POST['vId'],'numeric'); + $szavazotte = szavazotte($kerdoivId); + // Kérdőív - <<<< + if ($action == 'szavaz' && $szavazotte==false) { + szavaz($vId,1,$kerdoivId); + $szavazotte = true; + $_SESSION['kerdoivSzavazott'] = true; + } + $ADAT['kerdoiv'] = getKerdoiv(); + $ADAT['kerdoiv']['szavazott'] = $szavazotte; + // Kérdőív - >>>> + +?> diff --git a/mayor-orig/www/policy/public/portal/portal/portal.php b/mayor-orig/www/policy/public/portal/portal/portal.php new file mode 100644 index 00000000..96275bf4 --- /dev/null +++ b/mayor-orig/www/policy/public/portal/portal/portal.php @@ -0,0 +1,37 @@ + diff --git a/mayor-orig/www/policy/public/portal/portal/portal_demo.classic.php b/mayor-orig/www/policy/public/portal/portal/portal_demo.classic.php new file mode 100644 index 00000000..31aebc95 --- /dev/null +++ b/mayor-orig/www/policy/public/portal/portal/portal_demo.classic.php @@ -0,0 +1,43 @@ + +
+'; + + + echo ''; + + putDoboz('MaYoR-じしょ',$TXT['japszotar'],array('header-color'=>'#bb0088')); + + echo ' | '; + echo ''; + + putHirek($ADAT); + + echo ' | '; + echo '';
+
+ putDoboz('Névnapok','Ma: '.$ADAT['nevnap']['ma'].' Holnap: '.$ADAT['nevnap']['holnap'],array('header-color'=>'rgb(138,128,238)')); + + + if (is_array($ADAT['kerdoiv']['kerdes']) && count($ADAT['kerdoiv']['kerdes']) > 0) + putDoboz('Kérdőív', genKerdoiv($ADAT['kerdoiv']), array('header-color'=>'rgb(238,82,38)')); + + echo ' | ';
+ echo '