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ó --- .../include/menu/parent/hu_HU/module-portal.php | 11 ++ .../include/menu/private/hu_HU/module-portal.php | 43 ++++++ .../include/menu/public/hu_HU/module-portal.php | 8 ++ .../www/include/modules/portal/base/rights.php | 10 ++ .../www/include/modules/portal/hirek/egyhir.php | 47 +++++++ .../modules/portal/kerdoiv/kerdoivAdmin.php | 32 +++++ .../www/include/modules/portal/share/hirek.php | 50 +++++++ .../www/include/modules/portal/share/kerdoiv.php | 45 ++++++ .../www/include/modules/portal/share/nevnap.php | 8 ++ .../www/lang/hu_HU/module-portal/hirek/egyhir.php | 18 +++ .../hu_HU/module-portal/kerdoiv/kerdoivAdmin.php | 5 + .../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 | 7 + .../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 + mayor-orig/www/policy/private/portal/portal.php | 0 .../policy/private/portal/portal/portal-pre.php | 35 +++++ .../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 ++++ 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 ++++ .../skin/classic/module-portal/config.php.example | 10 ++ .../classic/module-portal/css/hirek/egyhir.css | 42 ++++++ .../skin/classic/module-portal/css/hirek/hirek.css | 9 ++ .../classic/module-portal/css/hirek/hirekAdmin.css | 29 ++++ .../module-portal/css/kerdoiv/kerdoivAdmin.css | 8 ++ .../www/skin/classic/module-portal/css/portal.css | 99 +++++++++++++ .../skin/classic/module-portal/css/portal/hir.css | 5 + .../classic/module-portal/html/hirek/egyhir.phtml | 153 +++++++++++++++++++++ .../module-portal/html/hirek/hirekAdmin.phtml | 51 +++++++ .../module-portal/html/kerdoiv/kerdoivAdmin.phtml | 38 +++++ .../classic/module-portal/html/portal/hir.phtml | 16 +++ .../classic/module-portal/html/share/doboz.phtml | 32 +++++ .../classic/module-portal/html/share/hirek.phtml | 34 +++++ .../classic/module-portal/html/share/kerdoiv.phtml | 41 ++++++ .../www/skin/classic/module-portal/img/cl.gif | Bin 0 -> 99 bytes .../www/skin/classic/module-portal/img/cr.gif | Bin 0 -> 100 bytes .../skin/classic/module-portal/img/ok_button.gif | Bin 0 -> 103 bytes .../module-portal/javascript/hirek/egyhir.php | 23 ++++ .../www/skin/pda/module-portal/css/portal.css | 25 ++++ 53 files changed, 1385 insertions(+) create mode 100644 mayor-orig/www/include/menu/parent/hu_HU/module-portal.php create mode 100644 mayor-orig/www/include/menu/private/hu_HU/module-portal.php create mode 100644 mayor-orig/www/include/menu/public/hu_HU/module-portal.php create mode 100644 mayor-orig/www/include/modules/portal/base/rights.php create mode 100644 mayor-orig/www/include/modules/portal/hirek/egyhir.php create mode 100644 mayor-orig/www/include/modules/portal/kerdoiv/kerdoivAdmin.php create mode 100644 mayor-orig/www/include/modules/portal/share/hirek.php create mode 100644 mayor-orig/www/include/modules/portal/share/kerdoiv.php create mode 100644 mayor-orig/www/include/modules/portal/share/nevnap.php create mode 100644 mayor-orig/www/lang/hu_HU/module-portal/hirek/egyhir.php create mode 100644 mayor-orig/www/lang/hu_HU/module-portal/kerdoiv/kerdoivAdmin.php create mode 100644 mayor-orig/www/policy/parent/portal/portal/portal-pre.php create mode 100644 mayor-orig/www/policy/parent/portal/portal/portal.php create mode 100644 mayor-orig/www/policy/parent/portal/portal/portal_demo.classic.php create mode 100644 mayor-orig/www/policy/private/portal/hirek/egyhir-pre.php create mode 100644 mayor-orig/www/policy/private/portal/hirek/egyhir.php create mode 100644 mayor-orig/www/policy/private/portal/hirek/hirek-pre.php create mode 100644 mayor-orig/www/policy/private/portal/hirek/hirek.php create mode 100644 mayor-orig/www/policy/private/portal/hirek/hirekAdmin-pre.php create mode 100644 mayor-orig/www/policy/private/portal/hirek/hirekAdmin.php create mode 100644 mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin-pre.php create mode 100644 mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin.php create mode 100644 mayor-orig/www/policy/private/portal/portal-pre.php create mode 100644 mayor-orig/www/policy/private/portal/portal.php create mode 100644 mayor-orig/www/policy/private/portal/portal/portal-pre.php create mode 100644 mayor-orig/www/policy/private/portal/portal/portal.php create mode 100644 mayor-orig/www/policy/private/portal/portal/portal_demo.classic.php create mode 100644 mayor-orig/www/policy/private/portal/portal/portal_demo.pda.php 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 create mode 100644 mayor-orig/www/skin/classic/module-portal/config.php.example create mode 100644 mayor-orig/www/skin/classic/module-portal/css/hirek/egyhir.css create mode 100644 mayor-orig/www/skin/classic/module-portal/css/hirek/hirek.css create mode 100644 mayor-orig/www/skin/classic/module-portal/css/hirek/hirekAdmin.css create mode 100644 mayor-orig/www/skin/classic/module-portal/css/kerdoiv/kerdoivAdmin.css create mode 100644 mayor-orig/www/skin/classic/module-portal/css/portal.css create mode 100644 mayor-orig/www/skin/classic/module-portal/css/portal/hir.css create mode 100644 mayor-orig/www/skin/classic/module-portal/html/hirek/egyhir.phtml create mode 100644 mayor-orig/www/skin/classic/module-portal/html/hirek/hirekAdmin.phtml create mode 100644 mayor-orig/www/skin/classic/module-portal/html/kerdoiv/kerdoivAdmin.phtml create mode 100644 mayor-orig/www/skin/classic/module-portal/html/portal/hir.phtml create mode 100644 mayor-orig/www/skin/classic/module-portal/html/share/doboz.phtml create mode 100644 mayor-orig/www/skin/classic/module-portal/html/share/hirek.phtml create mode 100644 mayor-orig/www/skin/classic/module-portal/html/share/kerdoiv.phtml create mode 100644 mayor-orig/www/skin/classic/module-portal/img/cl.gif create mode 100644 mayor-orig/www/skin/classic/module-portal/img/cr.gif create mode 100644 mayor-orig/www/skin/classic/module-portal/img/ok_button.gif create mode 100644 mayor-orig/www/skin/classic/module-portal/javascript/hirek/egyhir.php create mode 100644 mayor-orig/www/skin/pda/module-portal/css/portal.css (limited to 'mayor-orig/www') diff --git a/mayor-orig/www/include/menu/parent/hu_HU/module-portal.php b/mayor-orig/www/include/menu/parent/hu_HU/module-portal.php new file mode 100644 index 00000000..802a2d6e --- /dev/null +++ b/mayor-orig/www/include/menu/parent/hu_HU/module-portal.php @@ -0,0 +1,11 @@ + 'naplo')); + + if (is_array($MENU['modules']['portal']['sub'][$sub])) foreach ($MENU['modules']['portal']['sub'][$sub] as $_f => $M) { + $NAV[2][] = array('page' => 'portal', 'sub' => $sub, 'f' => $_f); + } elseif (is_array($MENU['modules']['portal'])) foreach ($MENU['modules']['portal'] as $_sub => $M) { + if ($_sub != 'sub') $NAV[2][] = array('page' => 'portal', 'sub' => $_sub); + } + +?> \ No newline at end of file diff --git a/mayor-orig/www/include/menu/private/hu_HU/module-portal.php b/mayor-orig/www/include/menu/private/hu_HU/module-portal.php new file mode 100644 index 00000000..eeb70da8 --- /dev/null +++ b/mayor-orig/www/include/menu/private/hu_HU/module-portal.php @@ -0,0 +1,43 @@ + 'Portál', 'url' => 'index.php?page=portal&sub=hirek&f=egyhir')); + $MENU['portal'] = array(array('txt' => 'Kezdőlap', 'url' => 'index.php')); + $MENU['modules']['portal']['hirek'] = array(array('txt'=>'Hírek szerkesztése','url'=>'index.php?page=portal&sub=hirek&f=hirekAdmin')); + $MENU['modules']['portal']['sub']['hirek'] = array( + 'hirekAdmin'=>array(array('txt' => 'Hírek')), + 'egyhir'=>array(array('txt' => 'Új hír')), +// array('txt' => 'Új kérdés', 'url' => 'index.php?page=portal&sub=kerdoiv&f=kerdoivAdmin') + ); + $MENU['modules']['portal']['kerdoiv'] = array( + array('txt' => 'Új kérdés', 'url' => 'index.php?page=portal&sub=kerdoiv&f=kerdoivAdmin') + ); + + //if ($page != 'portal') + // $NAV[1][] = array('page'=>'portal', 'sub' => 'hirek'); + } else { + /* Mégse rakjuk ki a többieknek */ + // $MENU['portal'] = array(array('txt' => 'Hír beküldése', 'url' => 'index.php?page=portal&sub=hirek&f=egyhir')); + } + +// if (memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup'])) { +// $NAV[1][] = array('page'=>'session'); +// } else { +// $NAV[1][] = array('page'=>'session','f'=>'changeMyPassword'); +// } + + //if ($page != 'naplo') $NAV[1][] = array('page' => 'naplo'); + + + +if ($page=='portal') { + if (is_array($MENU['modules']['portal']['sub'][$sub])) foreach ($MENU['modules']['portal']['sub'][$sub] as $_f => $M) { + $NAV[2][] = array('page' => 'portal', 'sub' => $sub, 'f' => $_f); + } elseif (is_array($MENU['modules']['portal'])) foreach ($MENU['modules']['portal'] as $_sub => $M) { + if ($_sub != 'sub') $NAV[2][] = array('page' => 'portal', 'sub' => $_sub); + } +} + + + +?> diff --git a/mayor-orig/www/include/menu/public/hu_HU/module-portal.php b/mayor-orig/www/include/menu/public/hu_HU/module-portal.php new file mode 100644 index 00000000..53b4315c --- /dev/null +++ b/mayor-orig/www/include/menu/public/hu_HU/module-portal.php @@ -0,0 +1,8 @@ + 'Portál', 'url' => 'index.php?page=portal')); + +?> diff --git a/mayor-orig/www/include/modules/portal/base/rights.php b/mayor-orig/www/include/modules/portal/base/rights.php new file mode 100644 index 00000000..c1a5c039 --- /dev/null +++ b/mayor-orig/www/include/modules/portal/base/rights.php @@ -0,0 +1,10 @@ + diff --git a/mayor-orig/www/include/modules/portal/hirek/egyhir.php b/mayor-orig/www/include/modules/portal/hirek/egyhir.php new file mode 100644 index 00000000..c93a81bd --- /dev/null +++ b/mayor-orig/www/include/modules/portal/hirek/egyhir.php @@ -0,0 +1,47 @@ +0) $cid = $DATA['cid']; + $csoport = $DATA['csoport']; + if ($hirId!='' && __HIREKADMIN == false ) { + $q = "SELECT owner FROM hirek WHERE owner='%s'"; + $v = array($owner); + $_owner = db_query($q,array('modul'=>'portal','result'=>'value','values'=>$v)); + $isOwner = ($_owner===$owner); + } else $isOwner = false; + if ($hirId=='') { + $keys = array('`pic`','`owner`','`cim`','`txt`','`kdt`','`vdt`','`flag`','`class`','`lang`','`csoport`'); + $pattern = array("'%s'","'%s'","'%s'","'%s'","'%s'","'%s'","%u","%u","'%s'","'%s'"); + $v = array($pic,$owner,$cim,$txt,$kdt,$vdt,$flag,$class,$lang,$csoport); + if (isset($cid)) { + $keys[] = 'cid'; + $pattern[] = '%u'; + $v[] = $cid; + } + $q = "insert INTO `hirek` (".implode(',',$keys).") VALUES (".implode(',',$pattern).")"; + } elseif (isset($hirId) && (__HIREKADMIN || $isOwner)) { + if (isset($cid)) { + $q = "update `hirek` SET pic='%s', cim='%s', txt='%s',kdt='%s',vdt='%s',flag=%u,class=%u,lang='%s',csoport='%s',cid=%u WHERE id=%u"; + $v = array($pic,$cim,$txt,$kdt,$vdt,$flag,$class,$lang,$csoport, $cid, $hirId); + } else { + $q = "update `hirek` SET pic='%s', cim='%s', txt='%s',kdt='%s',vdt='%s',flag=%u,class=%u,lang='%s',csoport='%s' WHERE id=%u"; + $v = array($pic,$cim,$txt,$kdt,$vdt,$flag,$class,$lang,$csoport, $hirId); + } + } else $q = ''; + if ($q!='') $r = db_query($q,array('modul'=>'portal','result'=>'insert','values'=>$v)); + return $r; + } + +?> diff --git a/mayor-orig/www/include/modules/portal/kerdoiv/kerdoivAdmin.php b/mayor-orig/www/include/modules/portal/kerdoiv/kerdoivAdmin.php new file mode 100644 index 00000000..237b6dc6 --- /dev/null +++ b/mayor-orig/www/include/modules/portal/kerdoiv/kerdoivAdmin.php @@ -0,0 +1,32 @@ + 0) { + // A kérdés felvétele + $q = "INSERT INTO kerdesek (vszam,kerdes) VALUES (%u,'%s')"; + $kszam = db_query($q, array('fv' => 'addKerdoiv', 'modul' => 'portal', 'result' => 'insert', 'values' => array(count($valaszok), $kerdes))); + // A válaszok rögzítése + for ($i = 0; $i < count($valaszok); $i++) if ($valaszok[$i] != '') { $v[] = $kszam; $v[] = $valaszok[$i]; } + $q = "INSERT INTO valaszok (kszam,valasz) VALUES ".implode(',', $Pattern); + return db_query($q, array('fv' => 'addKerdoiv', 'modul' => 'portal', 'values' => $v)); + } else { + return false; + } + } + + function delKerdoivKerdes($kerdesek) { + $q = "DELETE FROM kerdesek WHERE sorszam IN (".implode(',',array_fill(0, count($kerdesek), '%u')).")"; + $v = $kerdesek; + db_query($q, array('fv' => 'delKeroivKerdes', 'modul' => 'portal', 'values'=>$v)); + $q = "DELETE FROM valaszok WHERE kszam IN (".implode(',',array_fill(0, count($kerdesek), '%u')).")"; + db_query($q, array('fv' => 'delKeroivKerdes', 'modul' => 'portal', 'values'=>$v)); + } + +?> diff --git a/mayor-orig/www/include/modules/portal/share/hirek.php b/mayor-orig/www/include/modules/portal/share/hirek.php new file mode 100644 index 00000000..f9a64f62 --- /dev/null +++ b/mayor-orig/www/include/modules/portal/share/hirek.php @@ -0,0 +1,50 @@ +'portal','result'=>'value','values'=>array($hirId))); + return ($r === _USERACCOUNT); + } + + function getKategoriak() { + $q = "SELECT * FROM kategoriak ORDER BY leiras"; + $r = db_query($q,array('modul'=>'portal','result'=>'indexed')); + return $r; + } + + function getHirek($SET = array('all'=>true,'tolDt'=>'', 'igDt'=>'', 'id' => '', 'flag'=>array(), 'class'=>array(), 'cid'=>array(), 'limit'=>'', 'lang'=>'hu_HU') ) { + $tolDt = $SET['tolDt']; $igDt = $SET['igDt']; + if ($tolDt!='') $W[] = "kdt<='$tolDt'"; + if ($igDt!='') $W[] = "vdt>='$igDt'"; + if (count($SET['flag'])>0) $W[] = "flag IN (".implode(',',$SET['flag']).")"; + if (count($SET['class'])>0) $W[] = "class IN (".implode(',',$SET['class']).")"; + if (count($SET['cid'])>0) $W[] = "cid IN (".implode(',',$SET['cid']).")"; + if ($SET['lang']!='') $W[] = "lang='".$SET['lang']."'"; + + if ($SET['limit']!='') $L = ' LIMIT '.$SET['limit']; + if ($SET['id']!='') $W[] = 'id='.$SET['id']; + + if ($SET['id']=='') { + if (is_array($SET['csoport'])) { + for ($i=0; $i0) $WOR = ' OR '.implode(' OR ',$GW); + } else { + $WOR = ''; + } + $W[] = '(csoport="" '.$WOR.')'; + } + if (is_array($W) && count($W)>0) { + $WHERE = "WHERE ".implode(' AND ',$W); + } else $WHERE = ''; + + //hack + if ($SET['all']===true) $WHERE=''; + $q = "SELECT * FROM hirek $WHERE ORDER BY kdt DESC,vdt DESC".$L; + $HIREK['szovegek'] = db_query($q, array('modul'=>'portal','result'=>'indexed')); + return $HIREK; + } + +?> diff --git a/mayor-orig/www/include/modules/portal/share/kerdoiv.php b/mayor-orig/www/include/modules/portal/share/kerdoiv.php new file mode 100644 index 00000000..36a7e8b1 --- /dev/null +++ b/mayor-orig/www/include/modules/portal/share/kerdoiv.php @@ -0,0 +1,45 @@ + 'getKerdoiv', 'modul' => 'portal', 'values'=>$v,'result' => 'record')); + + $q = "select * from valaszok where kszam=(select max(sorszam) from kerdesek WHERE policy='%s')"; + $R['valaszok'] = db_query($q, array('fv' => 'getKerdoiv', 'modul' => 'portal', 'result' => 'indexed', 'values'=>$v, 'keyfiled' => 'kszam')); + return $R; + + } + + function szavazotte($kerdoivId) { + if (defined('_USERACCOUNT') && defined('_POLICY') && _USERACCOUNT!='' && _POLICY != '') { + $q = "SELECT count(*) AS db FROM kerdoivSzavazott WHERE kerdoivId=%u AND policy='%s' AND userAccount='%s'"; + $v = array($kerdoivId, _POLICY, _USERACCOUNT); + return (db_query($q, array('fv' => 'szavaz', 'modul' => 'portal', 'result'=>'value','values' => $v))>0); + } else { + if (isset($_SESSION['kerdoivSzavazott'])) + return true; + else + return false; + } + } + + function szavaz($id, $db = 1, $kerdoivId) { + if (defined('_USERACCOUNT') && defined('_POLICY')) { + $q = "INSERT INTO kerdoivSzavazott (kerdoivId,policy,userAccount) VALUES (%u,'%s','%s')"; + $v = array($kerdoivId, _POLICY, _USERACCOUNT); + db_query($q, array('fv' => 'szavaz', 'modul' => 'portal', 'values' => $v)); + } + $q = "UPDATE valaszok SET pontszam=pontszam + (%u) WHERE sorszam=%u"; + $v = array($db, $id); + return db_query($q, array('fv' => 'szavaz', 'modul' => 'portal', 'values' => $v)); + } + + function getRegiKerdesek() { + $q = "SELECT * FROM kerdesek ORDER BY sorszam DESC LIMIT 10"; + return db_query($q, array('modul'=>'portal','result'=>'indexed')); + } + + +?> \ No newline at end of file diff --git a/mayor-orig/www/include/modules/portal/share/nevnap.php b/mayor-orig/www/include/modules/portal/share/nevnap.php new file mode 100644 index 00000000..7a9ae971 --- /dev/null +++ b/mayor-orig/www/include/modules/portal/share/nevnap.php @@ -0,0 +1,8 @@ +'portal','values'=>$v,'result'=>'value')); + } + +?> diff --git a/mayor-orig/www/lang/hu_HU/module-portal/hirek/egyhir.php b/mayor-orig/www/lang/hu_HU/module-portal/hirek/egyhir.php new file mode 100644 index 00000000..c4f6de65 --- /dev/null +++ b/mayor-orig/www/lang/hu_HU/module-portal/hirek/egyhir.php @@ -0,0 +1,18 @@ + diff --git a/mayor-orig/www/lang/hu_HU/module-portal/kerdoiv/kerdoivAdmin.php b/mayor-orig/www/lang/hu_HU/module-portal/kerdoiv/kerdoivAdmin.php new file mode 100644 index 00000000..7cf33d5f --- /dev/null +++ b/mayor-orig/www/lang/hu_HU/module-portal/kerdoiv/kerdoivAdmin.php @@ -0,0 +1,5 @@ + diff --git a/mayor-orig/www/policy/parent/portal/portal/portal-pre.php b/mayor-orig/www/policy/parent/portal/portal/portal-pre.php new file mode 100644 index 00000000..f30cdaab --- /dev/null +++ b/mayor-orig/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/www/policy/parent/portal/portal/portal.php b/mayor-orig/www/policy/parent/portal/portal/portal.php new file mode 100644 index 00000000..ef2fcd3f --- /dev/null +++ b/mayor-orig/www/policy/parent/portal/portal/portal.php @@ -0,0 +1,16 @@ + diff --git a/mayor-orig/www/policy/parent/portal/portal/portal_demo.classic.php b/mayor-orig/www/policy/parent/portal/portal/portal_demo.classic.php new file mode 100644 index 00000000..c48052fd --- /dev/null +++ b/mayor-orig/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/www/policy/private/portal/hirek/egyhir-pre.php b/mayor-orig/www/policy/private/portal/hirek/egyhir-pre.php new file mode 100644 index 00000000..f5931b9d --- /dev/null +++ b/mayor-orig/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/www/policy/private/portal/hirek/egyhir.php b/mayor-orig/www/policy/private/portal/hirek/egyhir.php new file mode 100644 index 00000000..3ad1f486 --- /dev/null +++ b/mayor-orig/www/policy/private/portal/hirek/egyhir.php @@ -0,0 +1,5 @@ + diff --git a/mayor-orig/www/policy/private/portal/hirek/hirek-pre.php b/mayor-orig/www/policy/private/portal/hirek/hirek-pre.php new file mode 100644 index 00000000..247d10d9 --- /dev/null +++ b/mayor-orig/www/policy/private/portal/hirek/hirek-pre.php @@ -0,0 +1,7 @@ +date('Y-m-d'), 'igDt'=>date('Y-m-d'),'flag'=>array(1))); + +?> diff --git a/mayor-orig/www/policy/private/portal/hirek/hirek.php b/mayor-orig/www/policy/private/portal/hirek/hirek.php new file mode 100644 index 00000000..8f17a358 --- /dev/null +++ b/mayor-orig/www/policy/private/portal/hirek/hirek.php @@ -0,0 +1,7 @@ + diff --git a/mayor-orig/www/policy/private/portal/hirek/hirekAdmin-pre.php b/mayor-orig/www/policy/private/portal/hirek/hirekAdmin-pre.php new file mode 100644 index 00000000..630c9cbd --- /dev/null +++ b/mayor-orig/www/policy/private/portal/hirek/hirekAdmin-pre.php @@ -0,0 +1,11 @@ +true)); // minden nyelvű hír + +?> diff --git a/mayor-orig/www/policy/private/portal/hirek/hirekAdmin.php b/mayor-orig/www/policy/private/portal/hirek/hirekAdmin.php new file mode 100644 index 00000000..2474b23e --- /dev/null +++ b/mayor-orig/www/policy/private/portal/hirek/hirekAdmin.php @@ -0,0 +1,5 @@ + diff --git a/mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin-pre.php b/mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin-pre.php new file mode 100644 index 00000000..8825861c --- /dev/null +++ b/mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin-pre.php @@ -0,0 +1,17 @@ + diff --git a/mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin.php b/mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin.php new file mode 100644 index 00000000..2ccaf34e --- /dev/null +++ b/mayor-orig/www/policy/private/portal/kerdoiv/kerdoivAdmin.php @@ -0,0 +1,7 @@ + diff --git a/mayor-orig/www/policy/private/portal/portal-pre.php b/mayor-orig/www/policy/private/portal/portal-pre.php new file mode 100644 index 00000000..3d9a95da --- /dev/null +++ b/mayor-orig/www/policy/private/portal/portal-pre.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/mayor-orig/www/policy/private/portal/portal.php b/mayor-orig/www/policy/private/portal/portal.php new file mode 100644 index 00000000..e69de29b diff --git a/mayor-orig/www/policy/private/portal/portal/portal-pre.php b/mayor-orig/www/policy/private/portal/portal/portal-pre.php new file mode 100644 index 00000000..2f8d7772 --- /dev/null +++ b/mayor-orig/www/policy/private/portal/portal/portal-pre.php @@ -0,0 +1,35 @@ +date('Y-m-d H:i:s'), 'igDt'=>date('Y-m-d H:i:s'),'flag'=>array(1),'class'=>array(6),'csoport'=>$AUTH['my']['categories'])); + $ADAT['kerdoiv'] = getKerdoiv(_POLICY); + + 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/www/policy/private/portal/portal/portal.php b/mayor-orig/www/policy/private/portal/portal/portal.php new file mode 100644 index 00000000..1640b057 --- /dev/null +++ b/mayor-orig/www/policy/private/portal/portal/portal.php @@ -0,0 +1,14 @@ + diff --git a/mayor-orig/www/policy/private/portal/portal/portal_demo.classic.php b/mayor-orig/www/policy/private/portal/portal/portal_demo.classic.php new file mode 100644 index 00000000..dc88056a --- /dev/null +++ b/mayor-orig/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'=>'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/www/policy/private/portal/portal/portal_demo.pda.php b/mayor-orig/www/policy/private/portal/portal/portal_demo.pda.php new file mode 100644 index 00000000..62a2de0c --- /dev/null +++ b/mayor-orig/www/policy/private/portal/portal/portal_demo.pda.php @@ -0,0 +1,3 @@ + 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 ''; + 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/www/policy/public/portal/portal/portal_demo.pda.php b/mayor-orig/www/policy/public/portal/portal/portal_demo.pda.php new file mode 100644 index 00000000..3123adcd --- /dev/null +++ b/mayor-orig/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 '
'; + } + +?> diff --git a/mayor-orig/www/skin/classic/module-portal/config.php.example b/mayor-orig/www/skin/classic/module-portal/config.php.example new file mode 100644 index 00000000..fe68ca47 --- /dev/null +++ b/mayor-orig/www/skin/classic/module-portal/config.php.example @@ -0,0 +1,10 @@ + + + '; +} + +?> \ No newline at end of file diff --git a/mayor-orig/www/skin/classic/module-portal/css/hirek/egyhir.css b/mayor-orig/www/skin/classic/module-portal/css/hirek/egyhir.css new file mode 100644 index 00000000..8be4a7c3 --- /dev/null +++ b/mayor-orig/www/skin/classic/module-portal/css/hirek/egyhir.css @@ -0,0 +1,42 @@ + + + + div.egyhir { + margin-left: 50px; + } + + div.egyhir form { + font-weight: bold; + } + + div.egyhir label { + + } + + div.egyhir input { + background-color: white; + border: solid 1px #667766; + } + + div.egyhir textarea { + width: 80%; + height: 300px; + border: solid 1px #667766; + background-color: white; + } + + table.egyhirdetail { + background-color: #eeeeee; + border-bottom: solid 2px #667766; + } + table.egyhirdetail td { + border: solid 1px #667766; + } + table.egyhirdetail th { + background-color: #667766; + color: white; + height:30px; + border-bottom: solid 2px #001100; + } + + .mceEditor iframe { border: blue 1px solid; } diff --git a/mayor-orig/www/skin/classic/module-portal/css/hirek/hirek.css b/mayor-orig/www/skin/classic/module-portal/css/hirek/hirek.css new file mode 100644 index 00000000..8887a347 --- /dev/null +++ b/mayor-orig/www/skin/classic/module-portal/css/hirek/hirek.css @@ -0,0 +1,9 @@ + + div.hirCim { + font-style: italic; + font-size: 14px; + color: #000088; + font-weight: bold; + margin-top:1em; + padding-bottom: 0.5em; + } diff --git a/mayor-orig/www/skin/classic/module-portal/css/hirek/hirekAdmin.css b/mayor-orig/www/skin/classic/module-portal/css/hirek/hirekAdmin.css new file mode 100644 index 00000000..9e05068d --- /dev/null +++ b/mayor-orig/www/skin/classic/module-portal/css/hirek/hirekAdmin.css @@ -0,0 +1,29 @@ + + div.hirCim { + font-style: italic; + font-size: 14px; + color: #000088; + font-weight: bold; + margin-top:1em; + padding-bottom: 0.5em; + } + + table.hAdmin { + background-color: #445560; + + } + table.hAdmin tr td { + background-color: #eeeeee; + } + + + table.hAdmin tr.unk td { + background-color: #993456; + } + table.hAdmin tr.old td { + background-color: #999999; + } + + table.hAdmin a { display: block; color: black; } + + label { margin:0px; padding:0px; } diff --git a/mayor-orig/www/skin/classic/module-portal/css/kerdoiv/kerdoivAdmin.css b/mayor-orig/www/skin/classic/module-portal/css/kerdoiv/kerdoivAdmin.css new file mode 100644 index 00000000..41dd7dd2 --- /dev/null +++ b/mayor-orig/www/skin/classic/module-portal/css/kerdoiv/kerdoivAdmin.css @@ -0,0 +1,8 @@ + + form.kerdoiv { padding: 30px; width:300px; float:left; } + form.kerdoiv p { background-color: #556677; padding:2px; color:white; margin-bottom:0px; border-bottom: solid 1px white;} + form.kerdoiv input { border: solid 1px #556677; } + form.kerdoiv ol { background-color: #aabbcc; margin-top:0px;} + form.kerdoiv ol li { padding:2px; } + form.kerdoiv ul { background-color: #ccbbcc; margin-top:0px;} + form.kerdoiv ul li { padding:2px; } diff --git a/mayor-orig/www/skin/classic/module-portal/css/portal.css b/mayor-orig/www/skin/classic/module-portal/css/portal.css new file mode 100644 index 00000000..60c89501 --- /dev/null +++ b/mayor-orig/www/skin/classic/module-portal/css/portal.css @@ -0,0 +1,99 @@ + + div.hirCim { + font-style: italic; + font-size: 14px; + color: #000088; + font-weight: bold; + margin-top:1em; + padding-bottom: 0.5em; + } + + div.hirCim a { + color: #000088; + text-decoration: none; + } + div.hirCim a:hover { color: #1E90FF } + + table.portalMain { width: 100%; } + + table.portalMain td.bal { + width:140px; + vertical-align: top; + font-size: 10px; + } + table.portalMain td.kozep { + vertical-align: top; + padding:4px; + } + + table.portalMain td.jobb { + width:160px; + vertical-align: top; + font-size: 10px; + } + + table.portalMain div.doboz { width:100%; padding:0em; margin-bottom: 4px; margin-right: 2px; margin-left: 2px; } + table.portalMain div.doboz ul { padding-left:20px; margin: 0px 0px 0px 0px; } + table.portalMain div.doboz ul li { padding:0px 0px 0px 0px; margin: 0px 0px 0px 0px; } + table.portalMain div.doboz ul li a { color: black; text-decoration: none; } + table.portalMain div.doboz ul li a:hover { color: black; text-decoration: underline; } + + + table.portalMain td.bal div.doboz div.dobozCim { + width:100%; font-size:11px;font-weight: bold; padding: 0.1em 0em; color: white; border-bottom: solid 1px #676767; + border-top-right-radius: 5px; + border-top-left-radius: 5px; + } + table.portalMain td.jobb div.doboz div.dobozCim { + width:100%; font-size:11px;font-weight: bold; padding: 0.1em 0em; color: white; border-bottom: solid 1px #676767; + border-top-right-radius: 5px; + border-top-left-radius: 5px; + } + div.doboz div.dobozCim span { padding-left: 0.8em; } + div.doboz div.dobozCim a { color:white; text-decoration: none;} + div.doboz div.dobozCim a:hover { text-decoration: underline; } + + div.doboz:hover div.dobozCim { opacity: 0.8; } + +/* + div.doboz div.dobozCim , div.doboz div.dobozCim { border-bottom: solid 1px black; } + div.doboz div.dobozCim tr th {color:white; font-weight:bold; text-align: left; font-size:10px;} +*/ + + table.kerdoiv { font-size:10px; } + div.kerdes { text-align: center; font-weight:bold; } + table.kerdoiv tr td.j { text-align: right } + + div.egyHir {position:relative;} + div.egyHir div.hir a { color:#325C99; } + div.egyHir div.hir a:hover { color:#1E90FF; } +/* +div.egyHir div.hirCim:after {position:absolute; display:block; content:""; background-color:#eeeeee; height:1px; width:100%; +bottom:0px; right:0px; } +*/ + +/*Az a hr mindig a halálom volt :) */ +div.egyHir:after { + clear: both; + height: 0px; + margin-top: 2em; + margin-bottom: 2em; + width: 100%; + background-color: #777777; + border-style: solid; + border-color: #eeeeee; + border-width: 0px 0px 1px 0px; + content: " "; + display: block; +} +hr {display: none;} + + table.portalMain div.dobozTart a { color: black } + + + +@media (max-width: 850px) { + .bal, .jobb { + display: none; + } +} \ No newline at end of file diff --git a/mayor-orig/www/skin/classic/module-portal/css/portal/hir.css b/mayor-orig/www/skin/classic/module-portal/css/portal/hir.css new file mode 100644 index 00000000..84d9cbcd --- /dev/null +++ b/mayor-orig/www/skin/classic/module-portal/css/portal/hir.css @@ -0,0 +1,5 @@ + + div.hir { margin:20px; } + div.hir h1 { color: #008; } + div.hir h1 a { text-decoration: underline} + div.hir p { line-height:1.5em; } diff --git a/mayor-orig/www/skin/classic/module-portal/html/hirek/egyhir.phtml b/mayor-orig/www/skin/classic/module-portal/html/hirek/egyhir.phtml new file mode 100644 index 00000000..c75b2756 --- /dev/null +++ b/mayor-orig/www/skin/classic/module-portal/html/hirek/egyhir.phtml @@ -0,0 +1,153 @@ +'; + echo ''; + for ($i=0; $i'.$ADAT['kategoriak'][$i]['leiras'].''; + } + echo ''; + + } + + function putHirForm($HIR,$ADAT) { + global $LANGUAGES, $AUTH; + + $CLASSS = array(1 => _KULSO_HIR, 2 => _KIS_HIR, 6 => _CSAK_BELSO, 0 => _ISMERETLEN); + $FLAGSS = array(0 => _NEM_LATSZIK, 1 => _LATSZIK, 2 => 2, 3 => 3); + + $FLAGS = Array(0,1); + + echo '
'; + + echo '

'.__TITLE.'

'; + + formBegin(); + + if (__HIREKADMIN===true) { + + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + + echo ''; + echo ''; + echo ''; + echo ''; + + echo '
'._BEALLITASOK.'
'; + + echo _TOLDT.':
'; + echo _IGDT.': '; + + echo '
'; + + reset($LANGUAGES); + echo ''; + + _putKategoriak($ADAT,$HIR['cid']); + + echo ''; + echo $HIR['owner']; + echo '
'; + + + reset($FLAGS); + for($i=0; $i'; + echo ''; + echo '
'; + } + + + + echo '
'; + + //$POLICIES = Array('private','parent','public'); + $POLICIES = Array(1,6); + reset($POLICIES); + for($i=0; $i'; + $_CHK = ($POLICIES[$i]==$HIR['class']) ? ' checked="checked" ':''; + echo ''; + echo ''; + echo '
'; + } + + echo '
'; + for($i=0; $i'; + echo ''; + } + for($i=0; $i'; + echo ''; + } + echo '
'; + + + } else { + echo ''; + } + + echo '

'; + + + echo ''; + echo ''; + + echo '
'; + echo "\n".''."\n"; + + echo '
'; + echo _KEP; + echo '
'; + echo ''; + echo ''; + echo ''; + echo '

'; + + + formEnd(); + + echo '
'; + + + if (__HIREKADMIN===true) { + echo '
'; + echo '
'.($HIR['cim']).'
'; + echo '
'.($HIR['txt']).'
'; + for ($j=0; $j'; + //echo $ADAT['hirek']['linkek'][$HIR['id']][$j]['szoveg']; + echo ''; + } + echo '
'; + } + + } + +?> diff --git a/mayor-orig/www/skin/classic/module-portal/html/hirek/hirekAdmin.phtml b/mayor-orig/www/skin/classic/module-portal/html/hirek/hirekAdmin.phtml new file mode 100644 index 00000000..6dc5900d --- /dev/null +++ b/mayor-orig/www/skin/classic/module-portal/html/hirek/hirekAdmin.phtml @@ -0,0 +1,51 @@ +'külső hír',2=>'kis hír',6=>'csak belső',0=>'ISMERETLEN'); + $FLAGS = array(0=>'nem látszik', 1=>'látszik', 2=>2, 3=>3); + $now = time(); + echo ''; + echo ''."\n"; + for ($i=0; $i'; + echo ''; + + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo "\n\n"; + } + echo '
'; + echo $D['lang']; + echo ''; + echo ''; + echo ($D['cim']=='')?'nincs cím':htmlspecialchars($D['cim']); + echo ''; + echo ''; + echo $CLASS[$D['class']]; + echo ''; + echo $FLAGS[$D['flag']]; + echo ' '.$D['csoport']; + echo ''; + echo $D['owner']; + echo ''; + echo $D['kdt']; + echo $D['vdt']; + echo '
'; + + } + +?> diff --git a/mayor-orig/www/skin/classic/module-portal/html/kerdoiv/kerdoivAdmin.phtml b/mayor-orig/www/skin/classic/module-portal/html/kerdoiv/kerdoivAdmin.phtml new file mode 100644 index 00000000..2d657a27 --- /dev/null +++ b/mayor-orig/www/skin/classic/module-portal/html/kerdoiv/kerdoivAdmin.phtml @@ -0,0 +1,38 @@ +'kerdoiv')); + echo ''; + echo '

'; + echo ''."\n"; + echo ''; + echo '

'; + echo '
    '; + for ($i = 0; $i < 15; $i++) { + echo '
  1. '; + } + echo '
'; + echo ''; + formEnd(); + + } + + function putRegiKerdesek($ADAT) { + formBegin(array('class'=>'kerdoiv')); + echo ''; + echo '

Törlendők

'; + echo '
    '; + for ($i=0; $i'; + echo ''; + echo $ADAT[$i]['kerdes']; + echo ''; + } + echo '
'; + echo ''; + formEnd(); + + } + +?> diff --git a/mayor-orig/www/skin/classic/module-portal/html/portal/hir.phtml b/mayor-orig/www/skin/classic/module-portal/html/portal/hir.phtml new file mode 100644 index 00000000..30be4289 --- /dev/null +++ b/mayor-orig/www/skin/classic/module-portal/html/portal/hir.phtml @@ -0,0 +1,16 @@ +'; + echo '

'.$H['cim'].'

'; + echo '

'.$H['txt'].'

'; + //echo '
'.$H['kdt'].'
'; + echo ''; + if (_OG_ENABLED===true) { + echo '
'; + } + } + +?> \ No newline at end of file diff --git a/mayor-orig/www/skin/classic/module-portal/html/share/doboz.phtml b/mayor-orig/www/skin/classic/module-portal/html/share/doboz.phtml new file mode 100644 index 00000000..7c903e27 --- /dev/null +++ b/mayor-orig/www/skin/classic/module-portal/html/share/doboz.phtml @@ -0,0 +1,32 @@ +0) { + $str = '
    '; + for ($i=0; $i'; + $str .= $L['szoveg']; + $str .= ''; + $str .= ''."\n"; + } + $str .= '
'; + } + return $str; + } + + function putDoboz($cime, $bele, $SET = array('width'=>'100%','background-color'=> '#eeeeee', 'header-color'=>'#444444', 'header-link'=>'')) { + + $bgcolor = ($SET['background-color']=='') ? '#eeeeee' : $SET['background-color'] ; + $width = ($SET['width']=='') ? '100%':$SET['width']; + if ($SET['header-link']!='') $cime = ''.$cime.''; + echo '
'; + echo '
'.$cime.'
'; + echo '
'.$bele.'
'; + echo '
'; + + } + +?> diff --git a/mayor-orig/www/skin/classic/module-portal/html/share/hirek.phtml b/mayor-orig/www/skin/classic/module-portal/html/share/hirek.phtml new file mode 100644 index 00000000..9b586cd7 --- /dev/null +++ b/mayor-orig/www/skin/classic/module-portal/html/share/hirek.phtml @@ -0,0 +1,34 @@ +
'; + echo 'MaYoR elektronikus napló'; + echo '
'; + echo 'Szabadszoftver a közoktatási intézmények napi adminisztrációjához.'; + echo ''; + echo '
'; +*/ + } else { + for ($i=0; $i'; + $D = $ADAT['hirek']['szovegek'][$i]; + list ($a,$b) = explode('',$D['txt']); + echo ''; + echo '
'; + echo $a; + if ($b!="") echo ' Tovább...'; + echo '
'; + for ($j=0; $j'; + echo $ADAT['hirek']['linkek'][$D['id']][$j]['szoveg']; + echo ''; + } + echo '
'; + echo ''; + } + } + } + +?> diff --git a/mayor-orig/www/skin/classic/module-portal/html/share/kerdoiv.phtml b/mayor-orig/www/skin/classic/module-portal/html/share/kerdoiv.phtml new file mode 100644 index 00000000..4e8ab0e6 --- /dev/null +++ b/mayor-orig/www/skin/classic/module-portal/html/share/kerdoiv.phtml @@ -0,0 +1,41 @@ +false)); + $r .= ''; + $r .= ''; + $r .= '
'.$ADAT['kerdes']['kerdes'].'
'; + + $r.=''; + + if (count($VALASZOK)>15 && $ADAT['szavazott']!==true) { + $r .= ''."\n"; + } else { + for ($i = 0; $i < count($VALASZOK); $i++) { + $r .= ''; + } + } + $r .= '
'; + $r .= ''; + $r .= '
'; + if ($ADAT['szavazott'] != true) $r .= ''; + $r .= ''; + $r .= ''; + $r .= ''; + $r .= $VALASZOK[$i]['pontszam']; + $r .= '
'."\n"; + if ($ADAT['szavazott'] != true) $r .= ''; + $r .= formEnd(array("print"=>false)); + + return $r; + + } + +?> diff --git a/mayor-orig/www/skin/classic/module-portal/img/cl.gif b/mayor-orig/www/skin/classic/module-portal/img/cl.gif new file mode 100644 index 00000000..9f2f2c22 Binary files /dev/null and b/mayor-orig/www/skin/classic/module-portal/img/cl.gif differ diff --git a/mayor-orig/www/skin/classic/module-portal/img/cr.gif b/mayor-orig/www/skin/classic/module-portal/img/cr.gif new file mode 100644 index 00000000..9fe3cad0 Binary files /dev/null and b/mayor-orig/www/skin/classic/module-portal/img/cr.gif differ diff --git a/mayor-orig/www/skin/classic/module-portal/img/ok_button.gif b/mayor-orig/www/skin/classic/module-portal/img/ok_button.gif new file mode 100644 index 00000000..f703e173 Binary files /dev/null and b/mayor-orig/www/skin/classic/module-portal/img/ok_button.gif differ diff --git a/mayor-orig/www/skin/classic/module-portal/javascript/hirek/egyhir.php b/mayor-orig/www/skin/classic/module-portal/javascript/hirek/egyhir.php new file mode 100644 index 00000000..bbaa9f91 --- /dev/null +++ b/mayor-orig/www/skin/classic/module-portal/javascript/hirek/egyhir.php @@ -0,0 +1,23 @@ + \ No newline at end of file diff --git a/mayor-orig/www/skin/pda/module-portal/css/portal.css b/mayor-orig/www/skin/pda/module-portal/css/portal.css new file mode 100644 index 00000000..04b6b0ad --- /dev/null +++ b/mayor-orig/www/skin/pda/module-portal/css/portal.css @@ -0,0 +1,25 @@ +/* ------ PDA ----------- */ + + h1 { font-size: large; font-weight: bold; text-align: center; } + div.set { text-align: center; margin: 10px 2px; } + + a { border-radius: 4px;} + + a.diak { text-decoration: none; background-color: rgb(60,60,150); color: white; padding: 4px; margin: 2px; } + a.szulo { text-decoration: none; background-color: rgb(60,150,60); color: white; padding: 4px; margin: 2px; } + a.tanar { text-decoration: none; background-color: rgb(150,60,60); color: white; padding: 4px; margin: 2px; } + a.forum { text-decoration: none; background-color: rgb(60,60,60); color: white; padding: 4px; margin: 2px; } + a.diak:hover { background-color: rgb(90,90,200); } + a.szulo:hover { background-color: rgb(90,200,90); } + a.tanar:hover { background-color: rgb(200,90,90); } + a.forum:hover { background-color: rgb(90,90,90); } + + a.orarend { text-decoration: none; background-color: rgb(60,100,100); color: white; padding: 4px; margin: 2px; } + a.helyettesites { text-decoration: none; background-color: rgb(100,100,60); color: white; padding: 4px; margin: 2px; } + a.hirek { text-decoration: none; background-color: rgb(100,60,100); color: white; padding: 4px; margin: 2px; } + a.osztalyozo { text-decoration: none; background-color: #77aa99; color: white; padding: 4px; margin: 2px; } + a.hianyzas { text-decoration: none; background-color: #778899; color: white; padding: 4px; margin: 2px; } + a.kilepes { text-decoration: none; background-color: magenta; color: white; padding: 4px; margin: 2px; } + a.orarend:hover { background-color: rgb(90,200,200); } + a.helyettesites:hover { background-color: rgb(200,200,90); } + a.hirek:hover { background-color: rgb(200,90,200); } -- cgit v1.2.3