From 936098df78b3426c0a0d642921edd33e81b7a4c7 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Wed, 18 Mar 2020 18:41:53 +0100 Subject: Rev: 4624 --- mayor-orig/mayor-base/log/mayor-base.rev | 2 +- mayor-orig/mayor-felveteli/log/mayor-felveteli.rev | 2 +- mayor-orig/mayor-fenntarto/log/mayor-fenntarto.rev | 2 +- .../mayor-installer-orig/log/mayor-installer.rev | 2 +- .../log/mayor-installer-sulix.rev | 2 +- mayor-orig/mayor-jatek/log/mayor-jatek.rev | 2 +- .../log/mayor-locales-de_DE.rev | 2 +- .../log/mayor-locales-en_US.rev | 2 +- .../log/mayor-locales-jp_JP.rev | 2 +- mayor-orig/mayor-naplo/log/mayor-naplo.rev | 2 +- .../policy/private/naplo/haladasi/haladasi-pre.php | 10 ++++---- .../classic/module-naplo/css/haladasi/haladasi.css | 11 ++++----- .../module-naplo/html/haladasi/haladasi.phtml | 28 ++++++++++++++++------ mayor-orig/mayor-portal/log/mayor-portal.rev | 2 +- mayor-orig/mayor-wiki/log/mayor-wiki.rev | 2 +- mayor-orig/md5sum | 26 ++++++++++---------- mayor-orig/rev.txt | 2 +- rev.txt | 2 +- 18 files changed, 57 insertions(+), 46 deletions(-) diff --git a/mayor-orig/mayor-base/log/mayor-base.rev b/mayor-orig/mayor-base/log/mayor-base.rev index 899315a9..c000845d 100644 --- a/mayor-orig/mayor-base/log/mayor-base.rev +++ b/mayor-orig/mayor-base/log/mayor-base.rev @@ -1 +1 @@ -4623 +4624 diff --git a/mayor-orig/mayor-felveteli/log/mayor-felveteli.rev b/mayor-orig/mayor-felveteli/log/mayor-felveteli.rev index 899315a9..c000845d 100644 --- a/mayor-orig/mayor-felveteli/log/mayor-felveteli.rev +++ b/mayor-orig/mayor-felveteli/log/mayor-felveteli.rev @@ -1 +1 @@ -4623 +4624 diff --git a/mayor-orig/mayor-fenntarto/log/mayor-fenntarto.rev b/mayor-orig/mayor-fenntarto/log/mayor-fenntarto.rev index 899315a9..c000845d 100644 --- a/mayor-orig/mayor-fenntarto/log/mayor-fenntarto.rev +++ b/mayor-orig/mayor-fenntarto/log/mayor-fenntarto.rev @@ -1 +1 @@ -4623 +4624 diff --git a/mayor-orig/mayor-installer-orig/log/mayor-installer.rev b/mayor-orig/mayor-installer-orig/log/mayor-installer.rev index 899315a9..c000845d 100644 --- a/mayor-orig/mayor-installer-orig/log/mayor-installer.rev +++ b/mayor-orig/mayor-installer-orig/log/mayor-installer.rev @@ -1 +1 @@ -4623 +4624 diff --git a/mayor-orig/mayor-installer-sulix/log/mayor-installer-sulix.rev b/mayor-orig/mayor-installer-sulix/log/mayor-installer-sulix.rev index 899315a9..c000845d 100644 --- a/mayor-orig/mayor-installer-sulix/log/mayor-installer-sulix.rev +++ b/mayor-orig/mayor-installer-sulix/log/mayor-installer-sulix.rev @@ -1 +1 @@ -4623 +4624 diff --git a/mayor-orig/mayor-jatek/log/mayor-jatek.rev b/mayor-orig/mayor-jatek/log/mayor-jatek.rev index 899315a9..c000845d 100644 --- a/mayor-orig/mayor-jatek/log/mayor-jatek.rev +++ b/mayor-orig/mayor-jatek/log/mayor-jatek.rev @@ -1 +1 @@ -4623 +4624 diff --git a/mayor-orig/mayor-locales-de_DE/log/mayor-locales-de_DE.rev b/mayor-orig/mayor-locales-de_DE/log/mayor-locales-de_DE.rev index 899315a9..c000845d 100644 --- a/mayor-orig/mayor-locales-de_DE/log/mayor-locales-de_DE.rev +++ b/mayor-orig/mayor-locales-de_DE/log/mayor-locales-de_DE.rev @@ -1 +1 @@ -4623 +4624 diff --git a/mayor-orig/mayor-locales-en_US/log/mayor-locales-en_US.rev b/mayor-orig/mayor-locales-en_US/log/mayor-locales-en_US.rev index 899315a9..c000845d 100644 --- a/mayor-orig/mayor-locales-en_US/log/mayor-locales-en_US.rev +++ b/mayor-orig/mayor-locales-en_US/log/mayor-locales-en_US.rev @@ -1 +1 @@ -4623 +4624 diff --git a/mayor-orig/mayor-locales-jp_JP/log/mayor-locales-jp_JP.rev b/mayor-orig/mayor-locales-jp_JP/log/mayor-locales-jp_JP.rev index 899315a9..c000845d 100644 --- a/mayor-orig/mayor-locales-jp_JP/log/mayor-locales-jp_JP.rev +++ b/mayor-orig/mayor-locales-jp_JP/log/mayor-locales-jp_JP.rev @@ -1 +1 @@ -4623 +4624 diff --git a/mayor-orig/mayor-naplo/log/mayor-naplo.rev b/mayor-orig/mayor-naplo/log/mayor-naplo.rev index 899315a9..c000845d 100644 --- a/mayor-orig/mayor-naplo/log/mayor-naplo.rev +++ b/mayor-orig/mayor-naplo/log/mayor-naplo.rev @@ -1 +1 @@ -4623 +4624 diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php index 3dbf4c9d..9b397670 100644 --- a/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php +++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/haladasi-pre.php @@ -102,7 +102,7 @@ if ( $skin == 'ajax' // egy tanár ($tanarId) vagy osztály ($osztaly) összes órája --> lapozni kell // reading sensitive data - $igDt = readVariable($_POST['igDt'], 'datetime', date('Y-m-d')); + $igDt = readVariable($_POST['igDt'], 'datetime', date('Y-m-d', strtotime('next saturday'))); $tolDt = readVariable($_POST['tolDt'], 'datetime'); $lapoz = readVariable($_POST['lapoz'], 'enum', null, array('<<','>>','nextWeek','prevWeek')); $lapoz1 = readVariable($_POST['lapoz1'], 'enum', null, array('<<','>>','nextWeek','prevWeek')); @@ -133,7 +133,7 @@ if ( $skin == 'ajax' if ($csakUres || strtotime($tolDt) < strtotime($_TANEV['kezdesDt'])) $tolDt = date('Y-m-d',strtotime($_TANEV['kezdesDt'])); // Ha ezt kiveszem, akkor mindig kirakja a teljes hetet, de a jövőbeli órákat nem lehet beírni! // Itt a post értékét nem használjuk fel, csak vizsgáljuk. - if ((!isset($_POST['igDt']) || $_POST['igDt'] == '')&& strtotime($igDt) > time()) $igDt = date('Y-m-d'); +// if ((!isset($_POST['igDt']) || $_POST['igDt'] == '')&& strtotime($igDt) > time()) $igDt = date('Y-m-d'); define('_SHOW_DAYS_FROM',$tolDt); define('_SHOW_DAYS_TO',$igDt); @@ -144,7 +144,6 @@ if ( $skin == 'ajax' define('_SHOW_DAYS_TO',date('Y-m-d')); } - /* ------------------------------------------------- */ // Jogosultság ellenőrzés, tanév aktív-e... @@ -176,14 +175,13 @@ if ( $skin == 'ajax' ) ) { // checkNaplo (2020) - /* - checkNaplo($igDt); + if (strtotime('next saturday')>=strtotime($igDt)) { $_dt = $igDt; while (strtotime($_dt)>time()) { $_dt = date('Y-m-d',strtotime('-1 day',strtotime($_dt))); checkNaplo($_dt); } - */ + } // action if ($action == 'haladasiNaploBeiras' && ( is_array($_POST['oraId']) diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/haladasi.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/haladasi.css index 063488d4..4477f75c 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/haladasi.css +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/haladasi.css @@ -31,12 +31,11 @@ table.haladasiBejegyzesek tbody tr.torolt input.ajaxRequestDone { display:none; } table.haladasiBejegyzesek tbody tr.torolt span.INFO.ajaxRequestDone { display:none; } - table.haladasiBejegyzesek tbody.parosNap { - background-color: #dddddd; - } - table.haladasiBejegyzesek tbody.paratlanNap { - background-color: #eeeeee; - } + table.haladasiBejegyzesek tbody.parosNap { background-color: #dddddd; } + table.haladasiBejegyzesek tbody.paratlanNap { background-color: #eeeeee; } + table.haladasiBejegyzesek tbody.ma { background-color: #c5cae9; } + table.haladasiBejegyzesek tbody.jovo { background-color: #aaa; color:white; } + table.haladasiBejegyzesek tbody td.ora { text-align: center; } diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/haladasi.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/haladasi.phtml index e6377aeb..3c36e9f2 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/haladasi.phtml +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/haladasi.phtml @@ -166,6 +166,9 @@ $time = strtotime($dt); $count = count($dNap); + $jovoDt = (strtotime($dt)>strtotime(date('Y-m-d'))); + $maDt = (strtotime($dt)==strtotime(date('Y-m-d'))); + $tipus = $orarendiHet = $megjegyzes = array(); if (is_array($napInfos)) foreach ($napInfos as $ni) { if (!in_array($ni['tipus'], $tipus)) $tipus[] = $ni['tipus']; @@ -174,19 +177,24 @@ } $tanitasiNap = false; if (in_array('tanítási nap', $tipus) || in_array('speciális tanítási nap', $tipus)) { - if (date('w',$time) % 2 == 0) echo '
'."\n"; - else echo ''."\n"; + if (date('w',$time) % 2 == 0) $_class[]="parosNap"; + else $_class[]="paratlanNap"; $tanitasiNap = true; } elseif (in_array('tanítás nélküli munkanap', $tipus)) { - echo ''."\n"; + $_class[]="tanitasNelkul"; } elseif (in_array('szorgalmi időszakon kívüli munkanap', $tipus)) { - echo ''."\n"; + $_class[]="szorgalmiIdoszakonKivul"; } else { - echo ''."\n"; + $_class[]="szunet"; } + + if ($jovoDt) $_class[]="jovo"; + if ($maDt) $_class[]="ma"; + + echo ''."\n"; echo '