From f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Fri, 8 Mar 2019 21:20:34 +0100 Subject: további rendrakás --- .../www/policy/parent/portal/portal/portal-pre.php | 16 ++++++ .../www/policy/parent/portal/portal/portal.php | 16 ++++++ .../parent/portal/portal/portal_demo.classic.php | 47 +++++++++++++++++ .../www/policy/private/portal/hirek/egyhir-pre.php | 42 +++++++++++++++ .../www/policy/private/portal/hirek/egyhir.php | 5 ++ .../www/policy/private/portal/hirek/hirek-pre.php | 8 +++ .../www/policy/private/portal/hirek/hirek.php | 7 +++ .../policy/private/portal/hirek/hirekAdmin-pre.php | 11 ++++ .../www/policy/private/portal/hirek/hirekAdmin.php | 5 ++ .../private/portal/kerdoiv/kerdoivAdmin-pre.php | 17 +++++++ .../policy/private/portal/kerdoiv/kerdoivAdmin.php | 7 +++ .../www/policy/private/portal/portal-pre.php | 5 ++ .../www/policy/private/portal/portal.php | 0 .../policy/private/portal/portal/portal-pre.php | 41 +++++++++++++++ .../www/policy/private/portal/portal/portal.php | 14 +++++ .../private/portal/portal/portal_demo.classic.php | 59 ++++++++++++++++++++++ .../private/portal/portal/portal_demo.pda.php | 3 ++ .../www/policy/public/portal/portal/hir-pre.php | 24 +++++++++ .../www/policy/public/portal/portal/hir.php | 11 ++++ .../www/policy/public/portal/portal/portal-pre.php | 37 ++++++++++++++ .../www/policy/public/portal/portal/portal.php | 37 ++++++++++++++ .../public/portal/portal/portal_demo.classic.php | 43 ++++++++++++++++ .../public/portal/portal/portal_demo.pda.php | 29 +++++++++++ 23 files changed, 484 insertions(+) create mode 100644 mayor-orig/mayor-portal/www/policy/parent/portal/portal/portal-pre.php create mode 100644 mayor-orig/mayor-portal/www/policy/parent/portal/portal/portal.php create mode 100644 mayor-orig/mayor-portal/www/policy/parent/portal/portal/portal_demo.classic.php create mode 100644 mayor-orig/mayor-portal/www/policy/private/portal/hirek/egyhir-pre.php create mode 100644 mayor-orig/mayor-portal/www/policy/private/portal/hirek/egyhir.php create mode 100644 mayor-orig/mayor-portal/www/policy/private/portal/hirek/hirek-pre.php create mode 100644 mayor-orig/mayor-portal/www/policy/private/portal/hirek/hirek.php create mode 100644 mayor-orig/mayor-portal/www/policy/private/portal/hirek/hirekAdmin-pre.php create mode 100644 mayor-orig/mayor-portal/www/policy/private/portal/hirek/hirekAdmin.php create mode 100644 mayor-orig/mayor-portal/www/policy/private/portal/kerdoiv/kerdoivAdmin-pre.php create mode 100644 mayor-orig/mayor-portal/www/policy/private/portal/kerdoiv/kerdoivAdmin.php create mode 100644 mayor-orig/mayor-portal/www/policy/private/portal/portal-pre.php create mode 100644 mayor-orig/mayor-portal/www/policy/private/portal/portal.php create mode 100644 mayor-orig/mayor-portal/www/policy/private/portal/portal/portal-pre.php create mode 100644 mayor-orig/mayor-portal/www/policy/private/portal/portal/portal.php create mode 100644 mayor-orig/mayor-portal/www/policy/private/portal/portal/portal_demo.classic.php create mode 100644 mayor-orig/mayor-portal/www/policy/private/portal/portal/portal_demo.pda.php create mode 100644 mayor-orig/mayor-portal/www/policy/public/portal/portal/hir-pre.php create mode 100644 mayor-orig/mayor-portal/www/policy/public/portal/portal/hir.php create mode 100644 mayor-orig/mayor-portal/www/policy/public/portal/portal/portal-pre.php create mode 100644 mayor-orig/mayor-portal/www/policy/public/portal/portal/portal.php create mode 100644 mayor-orig/mayor-portal/www/policy/public/portal/portal/portal_demo.classic.php create mode 100644 mayor-orig/mayor-portal/www/policy/public/portal/portal/portal_demo.pda.php (limited to 'mayor-orig/mayor-portal/www/policy') diff --git a/mayor-orig/mayor-portal/www/policy/parent/portal/portal/portal-pre.php b/mayor-orig/mayor-portal/www/policy/parent/portal/portal/portal-pre.php new file mode 100644 index 00000000..f30cdaab --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/parent/portal/portal/portal-pre.php @@ -0,0 +1,16 @@ +date('Y-m-d H:i:s'), 'igDt'=>date('Y-m-d H:i:s'),'flag'=>array(1),'class'=>array(6))); + + require('skin/classic/module-portal/html/share/doboz.phtml'); + require('skin/classic/module-portal/html/share/hirek.phtml'); + +?> diff --git a/mayor-orig/mayor-portal/www/policy/parent/portal/portal/portal.php b/mayor-orig/mayor-portal/www/policy/parent/portal/portal/portal.php new file mode 100644 index 00000000..ef2fcd3f --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/parent/portal/portal/portal.php @@ -0,0 +1,16 @@ + diff --git a/mayor-orig/mayor-portal/www/policy/parent/portal/portal/portal_demo.classic.php b/mayor-orig/mayor-portal/www/policy/parent/portal/portal/portal_demo.classic.php new file mode 100644 index 00000000..c48052fd --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/parent/portal/portal/portal_demo.classic.php @@ -0,0 +1,47 @@ +href('index.php?page=naplo&sub=osztalyozo&f=diak'),'szoveg' => 'Osztályozó napló'), + array('href'=>href('index.php?page=naplo&sub=hianyzas&f=diak'),'szoveg' => 'Hiányzások'), + array('href'=>href('index.php?page=naplo&sub=uzeno&f=uzeno'),'szoveg' => 'Üzenő'), + array('href'=>href('index.php?page=naplo&sub=hirnok&f=hirnok'),'szoveg' => 'Hírnök'), + ); + + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo '
'; + + putDoboz('Napló',genLinkek($LINKEK['inside']),array('header-color'=>'cornflowerblue')); + putDoboz('Bejegyzések',ajaxUpdaterForm('bejegyzesek','index.php?page=naplo&sub=bejegyzesek&f=info',array(),'post',true), + array('header-color'=>'rgb(150,100,150)')); + + echo ''; + + echo ajaxUpdaterForm('intezmenyNev','index.php?page=naplo&sub=tools&f=intezmenyNev',array(),'post',true); + echo ''; + echo ''; + echo ajaxUpdaterForm('hirnok','index.php?page=naplo&sub=hirnok&f=hirnok',array(),'post',true); + putHirek($ADAT); + + echo ''; + echo ajaxUpdaterForm('uzenoKozep','index.php?page=naplo&sub=uzeno&f=uzeno',array(),'post',true); + + echo ''; + + echo ''; + $_refStamp = mktime(date('H')+8,0,0,date('m'), date('d'), date('Y')); + $dt = date('Y-m-d', $_refStamp); + putDoboz('Órarend '.str_replace('-','.',$dt).'.',ajaxUpdaterForm('orarend','index.php?page=naplo&sub=tanev&f=orarend',array('dt' => $dt),'post',true) + ,array('header-color'=>'#f06')); + +// putDoboz('Hangya',ajaxUpdaterForm('hangya','index.php?page=naplo&sub=hibabejelento&f=admin',array(),'post',true), +// array('header-color'=>'rgb(150,100,150)')); + + echo '
'; + +?> diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/hirek/egyhir-pre.php b/mayor-orig/mayor-portal/www/policy/private/portal/hirek/egyhir-pre.php new file mode 100644 index 00000000..f5931b9d --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/private/portal/hirek/egyhir-pre.php @@ -0,0 +1,42 @@ +$hirId)); + elseif ($hirId!='') + $_SESSION['alert'][] = 'page:not_owner'; + + $ADAT['kategoriak'] = getKategoriak(); + + + +?> diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/hirek/egyhir.php b/mayor-orig/mayor-portal/www/policy/private/portal/hirek/egyhir.php new file mode 100644 index 00000000..3ad1f486 --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/private/portal/hirek/egyhir.php @@ -0,0 +1,5 @@ + diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/hirek/hirek-pre.php b/mayor-orig/mayor-portal/www/policy/private/portal/hirek/hirek-pre.php new file mode 100644 index 00000000..db6e321f --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/private/portal/hirek/hirek-pre.php @@ -0,0 +1,8 @@ +date('Y-m-d H:i:s'), 'igDt'=>date('Y-m-d H:i:s'),'flag'=>array(1),'class'=>array(1,6)); + $ADAT['hirek'] = getHirek($FILTER); + +?> diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/hirek/hirek.php b/mayor-orig/mayor-portal/www/policy/private/portal/hirek/hirek.php new file mode 100644 index 00000000..8f17a358 --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/private/portal/hirek/hirek.php @@ -0,0 +1,7 @@ + diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/hirek/hirekAdmin-pre.php b/mayor-orig/mayor-portal/www/policy/private/portal/hirek/hirekAdmin-pre.php new file mode 100644 index 00000000..630c9cbd --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/private/portal/hirek/hirekAdmin-pre.php @@ -0,0 +1,11 @@ +true)); // minden nyelvű hír + +?> diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/hirek/hirekAdmin.php b/mayor-orig/mayor-portal/www/policy/private/portal/hirek/hirekAdmin.php new file mode 100644 index 00000000..2474b23e --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/private/portal/hirek/hirekAdmin.php @@ -0,0 +1,5 @@ + diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/kerdoiv/kerdoivAdmin-pre.php b/mayor-orig/mayor-portal/www/policy/private/portal/kerdoiv/kerdoivAdmin-pre.php new file mode 100644 index 00000000..8825861c --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/private/portal/kerdoiv/kerdoivAdmin-pre.php @@ -0,0 +1,17 @@ + diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/kerdoiv/kerdoivAdmin.php b/mayor-orig/mayor-portal/www/policy/private/portal/kerdoiv/kerdoivAdmin.php new file mode 100644 index 00000000..2ccaf34e --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/private/portal/kerdoiv/kerdoivAdmin.php @@ -0,0 +1,7 @@ + diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/portal-pre.php b/mayor-orig/mayor-portal/www/policy/private/portal/portal-pre.php new file mode 100644 index 00000000..3d9a95da --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/private/portal/portal-pre.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/portal.php b/mayor-orig/mayor-portal/www/policy/private/portal/portal.php new file mode 100644 index 00000000..e69de29b 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 new file mode 100644 index 00000000..dc4e79d5 --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal-pre.php @@ -0,0 +1,41 @@ +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'); + if ($ev % 4 ==0) {if ($ev % 100 !==0) {$szokoev=true;} else {if ($ev % 400==0) {$szokoev=true;}}} else {$szokoev=false;} + if (!$szokoev && $honap==2 && $nap>=24) {$nap=$nap+1;} + $ADAT['nevnap']['ma'] = getNevnap($honap,$nap); + $ADAT['nevnap']['holnap'] = getNevnap($honap,$nap+1); + + if (in_array($AUTH[_POLICY]['backend'],array('mysql','ads')) && _POLICY=='private') { + $ADAT['hirekAdmin'] = getGroupInfo('hirekadmin','private',array('withNewAccounts' => false)); + $ADAT['vezetoseg'] = getGroupInfo('vezetoseg','private',array('withNewAccounts' => false)); + $ADAT['titkarsag'] = getGroupInfo('titkarsag','private',array('withNewAccounts' => false)); + $ADAT['useradmin'] = getGroupInfo('useradmin','private',array('withNewAccounts' => false)); + $ADAT['diakadmin'] = getGroupInfo('diakadmin','private',array('withNewAccounts' => false)); + } + $kerdoivId = $ADAT['kerdoiv']['kerdes']['sorszam']; + $vId = readVariable($_POST['vId'],'numeric'); + $szavazotte = szavazotte($kerdoivId); + // Kérdőív - <<<< + if ($action == 'szavaz' && !$szavazotte) { + szavaz($vId,1,$kerdoivId); + $szavazotte=true; + $_SESSION['kerdoivSzavazott'] = true; + } + $ADAT['kerdoiv'] = getKerdoiv(_POLICY); + $ADAT['kerdoiv']['szavazott'] = $szavazotte; + // Kérdőív - >>>> + + require('skin/classic/module-portal/html/share/doboz.phtml'); + require('skin/classic/module-portal/html/share/hirek.phtml'); + require('skin/classic/module-portal/html/share/kerdoiv.phtml'); + +?> diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal.php b/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal.php new file mode 100644 index 00000000..1640b057 --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal.php @@ -0,0 +1,14 @@ + diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal_demo.classic.php b/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal_demo.classic.php new file mode 100644 index 00000000..d71d745b --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal_demo.classic.php @@ -0,0 +1,59 @@ +href('index.php?page=naplo'), + 'szoveg' => 'Napló'), + array('href'=>href('index.php?page=portal&sub=hirek&f=egyhir'), + 'szoveg' => 'Hír beküldés'), + ); + + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo '
'; + + // putDoboz('Napló',genLinkek($LINKEK['inside']),array('header-color'=>'#778877')); + putDoboz('Születésnaposok :)',ajaxUpdaterForm('szulinap','index.php?page=naplo&sub=&f=szulinap',array(),'post',true), + array('header-color'=>'rgb(100,100,150)')); +// putDoboz('Hiányzók',ajaxUpdaterForm('hianyzok','index.php?page=naplo&sub=hianyzas&f=info',array(),'post',true), +// array('header-color'=>'rgb(100,150,150)')); + if (in_array('diák',$AUTH['my']['categories'])) + putDoboz('Bejegyzések',ajaxUpdaterForm('bejegyzesek','index.php?page=naplo&sub=bejegyzesek&f=info',array(),'post',true), + array('header-color'=>'rgb(150,100,150)')); + + echo ''; + + echo ajaxUpdaterForm('intezmenyNev','index.php?page=naplo&sub=tools&f=intezmenyNev',array(),'post',true); + echo ''; + echo ''; + echo ajaxUpdaterForm('hangya2','index.php?page=naplo&sub=hibabejelento&f=admin&view=2',array(),'post',true); + echo ajaxUpdaterForm('hirnok','index.php?page=naplo&sub=hirnok&f=hirnok',array(),'post',true); + //echo ajaxUpdaterForm('naploHaladasi','index.php?page=naplo',array(),'post',true); + //echo ajaxUpdaterForm('hangya2','index.php?page=naplo&sub=hibabejelento&f=admin&view=2',array(),'post',true); + +// echo ''; +// echo ajaxUpdaterForm('uzenoKozep','index.php?page=naplo&sub=uzeno&f=uzeno',array(),'post',true); + + putHirek($ADAT); + + echo ''; + + if (is_array($ADAT['kerdoiv']['kerdes']) && count($ADAT['kerdoiv']['kerdes']) > 0) + putDoboz('Kérdőív', genKerdoiv($ADAT['kerdoiv']), array('header-color'=>'rgb(140,160,120)')); + + echo ''; + $_refStamp = mktime(date('H')+8,0,0,date('m'), date('d'), date('Y')); + $dt = date('Y-m-d', $_refStamp); + putDoboz('Órarend '.$dt,ajaxUpdaterForm('orarend','index.php?page=naplo&sub=orarend&f=orarend',array('dt' => $dt),'post',true) + ,array('header-link'=>href('index.php?page=naplo&sub=orarend&f=orarend'),'header-color'=>'#f06')); + + // putDoboz('Hangya',ajaxUpdaterForm('hangya','index.php?page=naplo&sub=hibabejelento&f=admin',array(),'post',true), + // array('header-color'=>'rgb(150,100,150)')); + + echo '
'; + +?> diff --git a/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal_demo.pda.php b/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal_demo.pda.php new file mode 100644 index 00000000..62a2de0c --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/private/portal/portal/portal_demo.pda.php @@ -0,0 +1,3 @@ + diff --git a/mayor-orig/mayor-portal/www/policy/public/portal/portal/hir-pre.php b/mayor-orig/mayor-portal/www/policy/public/portal/portal/hir-pre.php new file mode 100644 index 00000000..7e88f0f3 --- /dev/null +++ b/mayor-orig/mayor-portal/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/mayor-portal/www/policy/public/portal/portal/hir.php b/mayor-orig/mayor-portal/www/policy/public/portal/portal/hir.php new file mode 100644 index 00000000..6a7ee860 --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/public/portal/portal/hir.php @@ -0,0 +1,11 @@ + 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 new file mode 100644 index 00000000..d02f5484 --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/public/portal/portal/portal-pre.php @@ -0,0 +1,37 @@ +=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/mayor-portal/www/policy/public/portal/portal/portal.php b/mayor-orig/mayor-portal/www/policy/public/portal/portal/portal.php new file mode 100644 index 00000000..96275bf4 --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/public/portal/portal/portal.php @@ -0,0 +1,37 @@ + diff --git a/mayor-orig/mayor-portal/www/policy/public/portal/portal/portal_demo.classic.php b/mayor-orig/mayor-portal/www/policy/public/portal/portal/portal_demo.classic.php new file mode 100644 index 00000000..31aebc95 --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/public/portal/portal/portal_demo.classic.php @@ -0,0 +1,43 @@ + +
+ +
+ + +
+'; + + + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo '
'; + + putDoboz('MaYoR-じしょ',$TXT['japszotar'],array('header-color'=>'#bb0088')); + + echo ''; + + putHirek($ADAT); + + 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 '
'; + +?> diff --git a/mayor-orig/mayor-portal/www/policy/public/portal/portal/portal_demo.pda.php b/mayor-orig/mayor-portal/www/policy/public/portal/portal/portal_demo.pda.php new file mode 100644 index 00000000..3123adcd --- /dev/null +++ b/mayor-orig/mayor-portal/www/policy/public/portal/portal/portal_demo.pda.php @@ -0,0 +1,29 @@ +Belépés +
+ diák + szülő + tanár'; + + if (defined('__FORUM_INSTALLED') && __FORUM_INSTALLED===true) + echo 'fórum'; + echo '
'; + + echo '

Szolgáltatások

+
+ órarend + helyettesítés + hírek'; + echo '
'; + } + +?> -- cgit v1.2.3