diff options
author | M.Gergo | 2020-01-12 12:53:59 +0100 |
---|---|---|
committer | M.Gergo | 2020-01-12 12:53:59 +0100 |
commit | 7891f65fb7544f3b1a126f8e0688889d6a6954f3 (patch) | |
tree | 9c5a1122a1e3aba3de81f888dafed14a1cb78282 /mayor-orig/mayor-naplo | |
parent | 502843a035833f82321ed990ada1eda23612ed92 (diff) | |
download | mayor-7891f65fb7544f3b1a126f8e0688889d6a6954f3.tar.gz mayor-7891f65fb7544f3b1a126f8e0688889d6a6954f3.zip |
Rev: 4589rev4589
Diffstat (limited to 'mayor-orig/mayor-naplo')
18 files changed, 118 insertions, 23 deletions
diff --git a/mayor-orig/mayor-naplo/log/mayor-naplo.rev b/mayor-orig/mayor-naplo/log/mayor-naplo.rev index 7b690e22..0da8daf7 100644 --- a/mayor-orig/mayor-naplo/log/mayor-naplo.rev +++ b/mayor-orig/mayor-naplo/log/mayor-naplo.rev @@ -1 +1 @@ -4574 +4589 diff --git a/mayor-orig/mayor-naplo/www/include/modules/naplo/base/zcheck.php b/mayor-orig/mayor-naplo/www/include/modules/naplo/base/zcheck.php index 91e3905a..12b7dea5 100644 --- a/mayor-orig/mayor-naplo/www/include/modules/naplo/base/zcheck.php +++ b/mayor-orig/mayor-naplo/www/include/modules/naplo/base/zcheck.php @@ -99,4 +99,6 @@ if (count($KERELEM_TAG) ==0) $KERELEM_TAG = array('névsor','jogviszony','órarend, haladási','hiányzás, igazolás','jegy, zárójegy'); + if (!defined('__HABEL_GYURI_DEBUG')) define('__HABEL_GYURI_DEBUG',false); + ?> diff --git a/mayor-orig/mayor-naplo/www/include/modules/naplo/share/hirnok.php b/mayor-orig/mayor-naplo/www/include/modules/naplo/share/hirnok.php index 1ffdda96..94ffa865 100644 --- a/mayor-orig/mayor-naplo/www/include/modules/naplo/share/hirnok.php +++ b/mayor-orig/mayor-naplo/www/include/modules/naplo/share/hirnok.php @@ -232,6 +232,22 @@ global $SZEMESZTER; ); } } + + // utolsó óra + if (__TANAR === true || (__NAPLOADMIN===true && $tanarId>0)) { + if (defined('__USERTANARID') && is_numeric(__USERTANARID)) { // cron esetén nincs ilyen + $q = "SELECT *,getOraTolTime(ora.oraId) AS tolTime, getOraIgTime(ora.oraId) AS igTime FROM (SELECT dt,max(ora) AS utolsooraateremben,teremId,terem.leiras AS teremNev FROM ora LEFT JOIN ".__INTEZMENYDBNEV.".terem USING (teremId) WHERE dt=curdate() AND teremId IS NOT NULL GROUP BY teremId) AS x LEFT JOIN ora ON (ora.dt = x.dt AND x.utolsooraateremben = ora.ora AND x.teremId = ora.teremId) WHERE ora.ki=%u"; + $v = array(__USERTANARID); + $r = db_query($q, array('fv'=>'getHirnokFolyam/haladasi2','modul'=>'naplo','result'=>'indexed','values'=>$v)); + for ($i=0; $i<count($r); $i++) { + $R[mktime()][] = array( + 'hirnokTipus'=>'utolsoora', + 'adat'=>$r[$i] + ); + } + } + } + // Üzenő // /* 20170418 initSzerep(); diff --git a/mayor-orig/mayor-naplo/www/include/modules/naplo/share/kereso.php b/mayor-orig/mayor-naplo/www/include/modules/naplo/share/kereso.php index b2bf2cf6..867fe15e 100644 --- a/mayor-orig/mayor-naplo/www/include/modules/naplo/share/kereso.php +++ b/mayor-orig/mayor-naplo/www/include/modules/naplo/share/kereso.php @@ -5,19 +5,19 @@ $q = "SELECT DISTINCT diak.diakId, TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)) AS diakNev, oId, osztalyJel FROM `diak` LEFT JOIN osztalyDiak ON (osztalyDiak.diakId=diak.diakId AND osztalyDiak.beDt<=NOW() AND (osztalyDiak.kiDt>=NOW() OR osztalyDiak.kiDt IS NULL)) LEFT JOIN " . __TANEVDBNEV . ".osztalyNaplo USING (osztalyId) - HAVING (diakNev LIKE '%s' OR oId LIKE '%s') ORDER BY diakNev LIMIT 100"; + HAVING (diakNev LIKE '%s' OR oId LIKE '%s') ORDER BY diakNev"; $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed','values'=>array('%'.$pattern.'%','%'.$pattern.'%'))); return $r; } function getTanarokByPattern($pattern) { if ($pattern=='') return false; - $q = "SELECT tanarId, TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)) AS tanarNev FROM `tanar` WHERE (kiDt IS NULL OR kiDt >=NOW()) HAVING tanarNev LIKE '%s' ORDER BY tanarNev LIMIT 100"; + $q = "SELECT tanarId, TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)) AS tanarNev FROM `tanar` WHERE (kiDt IS NULL OR kiDt >=NOW()) HAVING tanarNev LIKE '%s' ORDER BY tanarNev"; $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed','values'=>array('%'.$pattern.'%'))); return $r; } function getTankorokByPattern($pattern) { if ($pattern=='') return false; - $q = "SELECT tankorId, tankorNev AS tankorNev FROM `tankor`HAVING tankorNev LIKE '%s' ORDER BY tankorNev LIMIT 100"; + $q = "SELECT tankorId, tankorNev AS tankorNev FROM `tankor`HAVING tankorNev LIKE '%s' ORDER BY tankorNev"; $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed','values'=>array('%'.$pattern.'%'))); return $r; } @@ -25,7 +25,7 @@ if ($pattern=='') return false; if ($SET['diakokkal']!==true) { $p= "TRIM(CONCAT_WS(' ',nevElotag, csaladinev, utonev)) "; - $q = "SELECT szuloId, $p AS szuloNev FROM `szulo` HAVING szuloNev LIKE '%s' ORDER BY szuloNev LIMIT 100"; + $q = "SELECT szuloId, $p AS szuloNev FROM `szulo` HAVING szuloNev LIKE '%s' ORDER BY szuloNev"; $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed','values'=>array('%'.$pattern.'%'))); } else { @@ -42,13 +42,12 @@ $subquery = 'LEFT JOIN diak ON (szuloId IN (anyaId,apaId,neveloId,gondviseloId))'; $p = "CONCAT(TRIM(CONCAT_WS(' ',nevElotag, csaladinev, utonev)), ' (',TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)),')' ) "; - $q2 = "SELECT szuloId, $p AS szuloNev FROM `szulo` $subquery WHERE TRIM(CONCAT_WS(' ',nevElotag, csaladinev, utonev)) LIKE '%s' $W LIMIT 100"; + $q2 = "SELECT szuloId, $p AS szuloNev FROM `szulo` $subquery WHERE TRIM(CONCAT_WS(' ',nevElotag, csaladinev, utonev)) LIKE '%s' $W "; if (count($DIAKIDS)>0) { - $q1 = "SELECT szuloId, $p AS szuloNev FROM `szulo`$subquery WHERE diakId IN (".implode(',',$DIAKIDS).") $W LIMIT 100"; + $q1 = "SELECT szuloId, $p AS szuloNev FROM `szulo`$subquery WHERE diakId IN (".implode(',',$DIAKIDS).") $W "; $q = "$q1 UNION ($q2)"; } else $q = "($q2)"; $r = db_query("$q ORDER BY szuloNev", array('modul'=>'naplo_intezmeny','result'=>'indexed','values'=>array('%'.$pattern.'%'))); - } return $r; } diff --git a/mayor-orig/mayor-naplo/www/include/modules/naplo/share/orarend.php b/mayor-orig/mayor-naplo/www/include/modules/naplo/share/orarend.php index 0e2a5836..5dae295a 100644 --- a/mayor-orig/mayor-naplo/www/include/modules/naplo/share/orarend.php +++ b/mayor-orig/mayor-naplo/www/include/modules/naplo/share/orarend.php @@ -424,4 +424,16 @@ return db_query($q, array('fv'=>'orarendvane','modul'=>'naplo','result'=>'value')); } + function getUtolsoorak() { + $q = "SELECT *,getOraTolTime(ora.oraId) AS tolTime, getOraIgTime(ora.oraId) AS igTime +FROM (SELECT dt,max(ora) AS utolsooraateremben,teremId,terem.leiras AS teremNev FROM ora LEFT JOIN ".__INTEZMENYDBNEV.".terem +USING (teremId) WHERE teremId IS NOT NULL GROUP BY dt,teremId) AS x LEFT JOIN ora ON (ora.dt = x.dt AND x.utolsooraateremben = ora.ora AND x.teremId = ora.teremId)"; + $r = db_query($q, array('fv'=>'getUtolsoorak','modul'=>'naplo','result'=>'indexed')); + $RES = array(); + for ($i=0; $i<count($r); $i++) { + $RES[$r[$i]['dt']][$r[$i]['teremId']] = $r[$i]; + } + return $RES; + } + ?> diff --git a/mayor-orig/mayor-naplo/www/include/modules/naplo/uzeno/uzeno.php b/mayor-orig/mayor-naplo/www/include/modules/naplo/uzeno/uzeno.php index de157fa3..561c97ff 100644 --- a/mayor-orig/mayor-naplo/www/include/modules/naplo/uzeno/uzeno.php +++ b/mayor-orig/mayor-naplo/www/include/modules/naplo/uzeno/uzeno.php @@ -180,9 +180,13 @@ $txt = ($ADAT['txt']); $dbName = 'naplo_'.__INTEZMENY.'_'.$ADAT['tanev']; - $q = "INSERT INTO `%s`.uzeno (dt,txt,feladoId,feladoTipus,cimzettId,cimzettTipus) VALUES (NOW(), '%s', %u, '%s', %u, '%s')"; - $v = array($dbName, $txt, $feladoId, $feladoTipus, $cimzettId, $cimzettTipus); - return db_query($q,array('fv' => 'uzeno/postUzenet', 'modul' => 'naplo_intezmeny', 'values' => $v)); + if ($cimzettId>0 && $feladoId>0 && $txt!='') { + $q = "INSERT INTO `%s`.uzeno (dt,txt,feladoId,feladoTipus,cimzettId,cimzettTipus) VALUES (NOW(), '%s', %u, '%s', %u, '%s')"; + $v = array($dbName, $txt, $feladoId, $feladoTipus, $cimzettId, $cimzettTipus); + return db_query($q,array('fv' => 'uzeno/postUzenet', 'modul' => 'naplo_intezmeny', 'values' => $v)); + } else { + return false; + } } // v3.1 diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/hibabejelento/admin.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/hibabejelento/admin.php index f34d5eed..8296185e 100644 --- a/mayor-orig/mayor-naplo/www/policy/private/naplo/hibabejelento/admin.php +++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/hibabejelento/admin.php @@ -2,9 +2,9 @@ if (_RIGHTS_OK !== true) die(); - global $Kerelmek,$telephelyId,$TELEPHELY; + global $Kerelmek,$telephelyId,$TELEPHELY, $kerelemId; - if ($skin=='classic') putHibabejelento($telephelyId); + if ($skin=='classic' && !($kerelemId>0)) putHibabejelento($telephelyId); if (is_array($Kerelmek) && count($Kerelmek)>0) { if ($_GET['view']==2){ diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/hirnok/cronFutar-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/hirnok/cronFutar-pre.php index 5691de0f..c183ba30 100644 --- a/mayor-orig/mayor-naplo/www/policy/private/naplo/hirnok/cronFutar-pre.php +++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/hirnok/cronFutar-pre.php @@ -15,9 +15,15 @@ for ($i=0; $i<count($r); $i++) { $d = $r[$i]; + if (defined('_DEVEL') && _DEVEL===true) $d['email'] = 'konczy+test@gmail.com'; // over $TOLDTBYUSER[$d['naploTipus']][$d['naploId']] = ($d['utolsoEmailDt']=='') ? $_TANEV['kezdesDt'] : $d['utolsoEmailDt']; // setDt if (!in_array($d['naploId'],$USER[$d['naploTipus']])) $USER[$d['naploTipus']][] = $d['naploId']; - $ADAT['feliratkozas'][$d['naploTipus']][$d['naploId']][] = array('userAccount'=>$d['userAccount'], 'policy'=>$d['policy'], 'email'=>$d['email'], 'setDt'=> $refDt); + $ADAT['feliratkozas'][$d['naploTipus']][$d['naploId']][] = array( + 'userAccount'=>$d['userAccount'], + 'policy'=>$d['policy'], + 'email'=>$d['email'], + 'setDt'=> $refDt + ); } // Megszorítás: egy naplóbeli entitás utolsoEmailDt-je együtt kell, hogy mozogjon ebben a feldolgozási rendszerben. diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarend-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarend-pre.php index a7022d00..6421687a 100644 --- a/mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarend-pre.php +++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/orarend/orarend-pre.php @@ -224,6 +224,7 @@ $ADAT['dt'] = $dt; // show this... ha a skin ajax $ADAT['csengetesiRend'] = getCsengetesiRend(); + $ADAT['utolsoorak'] = getUtolsoorak(); $ADAT['telephelyId'] = $telephelyId; $ADAT['napiMinOra'] = getMinOra(); $ADAT['napiMaxOra'] = getMaxOra(); diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/uzeno/postas-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/uzeno/postas-pre.php index 8f44cd8c..e1f28bc7 100644 --- a/mayor-orig/mayor-naplo/www/policy/private/naplo/uzeno/postas-pre.php +++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/uzeno/postas-pre.php @@ -27,6 +27,7 @@ $ADAT['cimzett'] = readVariable($_POST['cimzett'],'string'); $ADAT['diakokkal'] = readVariable($_POST['diakokkal'],'bool'); // ez mindig true $ADAT['txt'] = readVariable($_POST['txt'],'string'); + $ADAT['tanev'] = readVariable($_POST['tanev'],'numeric',__TANEV); list($_cimzettTipus,$_cimzettId) = explode('|',$ADAT['cimzett']); $ADAT['cimzettTipus'] = readVariable($_cimzettTipus,'strictstring',null); @@ -77,13 +78,15 @@ 'txt'=> $ADAT['txt'] ); if (postUzenet($P) === true) { - /* Ha sikered */ + /* Ha sikeres */ unset($_POST); header('Location: '.location('index.php?page=naplo&sub=uzeno&f=uzeno')); } else { $_SESSION['alert'][] = 'page::uzenorogziteshiba'; } + } else { + $_SESSION['alert'][] = 'page::uzenorogziteshiba'; } ?> diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/uzeno/postas.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/uzeno/postas.php index 18ccddef..6d899712 100644 --- a/mayor-orig/mayor-naplo/www/policy/private/naplo/uzeno/postas.php +++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/uzeno/postas.php @@ -1,5 +1,6 @@ <?php global $ADAT; - putUzenoPostazo($ADAT); + if ($skin=='ajax') putUzenoPostazo($ADAT); + if (__HABEL_GYURI_DEBUG===true) dump($ADAT); ?> diff --git a/mayor-orig/mayor-naplo/www/skin/ajax/module-naplo/html/hibabejelento/admin.phtml b/mayor-orig/mayor-naplo/www/skin/ajax/module-naplo/html/hibabejelento/admin.phtml index 69585645..cc889416 100644 --- a/mayor-orig/mayor-naplo/www/skin/ajax/module-naplo/html/hibabejelento/admin.phtml +++ b/mayor-orig/mayor-naplo/www/skin/ajax/module-naplo/html/hibabejelento/admin.phtml @@ -68,8 +68,8 @@ $_color='#ff5722'; $_class="icon-question-sign"; } - echo '<div style="width:90%; margin: 0px auto; border: solid 1px #aaa; border-radius: 2px; ">'; - echo '<div style="font-size:10px; background-color: #3c3c64; color: white; font-weight: normal; border-bottom: solid 1px #dddddd; padding:4px 10px;">Hangya - '.superdate($ADAT['kerelmek'][$i]['rogzitesDt']).'</div>'; + echo '<div style="width:90%; margin: 0px auto; border: solid 0px #aaa; border-radius: 2px; ">'; + echo '<div style="border-radius: 4px 4px 0px 0px; font-size:10px; background-color: #3c3c64; color: white; font-weight: normal; border-bottom: solid 1px #dddddd; padding:4px 10px;">Hangya - '.superdate($ADAT['kerelmek'][$i]['rogzitesDt']).'</div>'; echo '<div style="background-color: #eee; padding:10px;border-bottom: solid 0px #dddddd; padding:3px 3px; min-height:30px;">'; echo '<a style="color: black;" href="'.$_link.'">'; @@ -85,7 +85,7 @@ //padding:10px; border-bottom: solid 1px #3c3c64; padding:3px 10px;">'. //htmlspecialchars($ADAT['kerelmek'][$i]['valasz']).' '.$_K['jovahagyasAccount'].'</div>'; echo '<style type="text/css"> - table.kerelemValasz {background-color:#ddd;width:100%;} + table.kerelemValasz {background-color: #ddd;width:100%;} table.kerelemValasz td {font-size:10px; background-color:white; padding:2px 4px; vertical-align:top;} table.kerelemValasz td.dt {background-color: #eee;text-align: right;} </style>'; diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarend.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarend.css index 0cfda59b..fab07933 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarend.css +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/orarend/orarend.css @@ -71,6 +71,11 @@ table.orarend tbody tr td div.oraMostVan { border-color: lightgreen; border-width: 0px 4px 0px 4px; border-radius:2px; } +table.orarend tbody tr td div.utolsoora { + border-style: solid; + border-color: orange; border-width: 0px 0px 2px 0px; border-radius:2px; +} + table.orarend tbody tr td div.dolgozat { background-color: orange; color:white; border-radius:2px; padding:2px; diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/uzeno/uzeno.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/uzeno/uzeno.css index 04d5ea37..29c35b1a 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/uzeno/uzeno.css +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/uzeno/uzeno.css @@ -128,6 +128,9 @@ a span.icon-network { color: #aaa; } a:hover span.icon-network { color: cornflowerblue; } + #uzenoSearchIcon { cursor:pointer; background-color: #bbb; border-radius:2px; padding:3px 3px 2px 2px; color:white; } + #uzenoSearchIcon:hover { background-color: cornflowerblue; } + @media (max-width: 764px) { table.uzeno tbody tr td.felado { min-width:80px;} diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/cronFutar.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/cronFutar.phtml index 84d59777..ffd8ed68 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/cronFutar.phtml +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/cronFutar.phtml @@ -51,6 +51,24 @@ return $RETURN_STR; } + function generateFutar_utolsoora($D) { + $a_az[0] = 'a'; + $a_az[1] = 'az'; + $a_az[2] = 'a'; + $a_az[3] = 'a'; + $a_az[4] = 'a'; + $a_az[5] = 'az'; + $a_az[6] = 'a'; + $a_az[7] = 'a'; + $a_az[8] = 'a'; + $a_az[9] = 'a'; + $a_az[10] = 'a'; + $a_az[11] = 'a'; + $a_az[12] = 'a'; + $RETURN_STR .='Ma a haladási napló szerint a(z) <b>'.$D['adat']['teremNev'].'</b> teremben '.$a_az[$D['adat']['utolsooraateremben']].' <b>'.$D['adat']['utolsooraateremben'].'. óra</b> után már nincs óra!'; + return $RETURN_STR; + } + function generateFutarBadge_jegy($D) { // return '<i class="material-icons">face</i>'; } diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/hirnok.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/hirnok.phtml index a70662e9..61352d81 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/hirnok.phtml +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/hirnok/hirnok.phtml @@ -55,6 +55,9 @@ function putHirnokBadge_idoszak($D) { echo '<span class="icon-calendar-sign"></span>'; } + function putHirnokBadge_utolsoora($D) { + echo '<span class="icon-broom" style="background-color: #00bcd4"></span>'; + } function putHirnokBadge_haladasiBeiratlan($D) { if ($D['db']!=0) @@ -113,6 +116,23 @@ echo 'Aktív <b>'.$D['idoszakAdat']['tipus'].'</b> időszak: '.$D['idoszakAdat']['tolDt'].' – '.$D['idoszakAdat']['igDt']; } + function putHirnok_utolsoora($D) { + $a_az[0] = 'a'; + $a_az[1] = 'az'; + $a_az[2] = 'a'; + $a_az[3] = 'a'; + $a_az[4] = 'a'; + $a_az[5] = 'az'; + $a_az[6] = 'a'; + $a_az[7] = 'a'; + $a_az[8] = 'a'; + $a_az[9] = 'a'; + $a_az[10] = 'a'; + $a_az[11] = 'a'; + $a_az[12] = 'a'; + echo 'Ma a haladási napló szerint a(z) <b>'.$D['adat']['teremNev'].'</b> teremben '.$a_az[$D['adat']['utolsooraateremben']].' <b>'.$D['adat']['utolsooraateremben'].'. óra</b> után már nincs óra!'; + } + function putHirnokBadge_hianyzas($D) { $ICON = array('késés'=>'timer','felmentés'=>'accessible','felszerelés hiány'=>'accessibility', 'hiányzás'=>'location_off'); // location_off, grid_off, blur_off diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarend.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarend.phtml index b8d74048..f8b8d393 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarend.phtml +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarend.phtml @@ -24,6 +24,9 @@ function putOrarend($ADAT) { global $aHetNapjai,$skin; + // $ADAT['utolsoorak'][$teremId]['oraId'] + + /* Képzés-Mátrix */ //dump($ADAT['kepzesOraterv']); if (is_array($ADAT['kepzesOraterv']) && count($ADAT['kepzesOraterv'])>0) { @@ -237,6 +240,7 @@ $_tankorTipus = $ADAT['tankorok'][$_T['tankorId']][0]['tankorTipus']; $_tankorTipusId = $ADAT['tankorok'][$_T['tankorId']][0]['tankorTipusId']; $_oraMostVan = (in_array($_ORA['oraId'],$ADAT['orakMost'])); + $_utolsoora = ($_ORA['oraId']!='' && $_ORA['oraId'] == $ADAT['utolsoorak'][$dt][$_valosTeremId]['oraId']); // if ($kepzes_figyel &&$ADAT['tankorTipus'][$_tankorTipusId]['oratervi'] == 'óratervi' @@ -249,14 +253,15 @@ $_osztalyJel = $_T['osztalyJel']; // figyelem, itt jön a kiírás, a _putOra fv helyett: $_tipusClass = str_replace(' ','_',$_ORA['tipus']); - $_oraMostVanClass = ($_oraMostVan) ? ' oraMostVan':''; + $_oraMostVanClass = ($_oraMostVan) ? ' oraMostVan ':''; + $_utolsooraClass = ($_utolsoora) ? ' utolsoora ':''; if ($_T['jelleg']=='osztályfüggetlen') { $_tipusClass .= ' osztályfüggetlen'; } $_oraAdat = (isset($_ORA['oo']) && _POLICY!='public') ? 'oraAdat' : ''; // haladási $_hianyzasAdat = $ADAT['hianyzas'][$_ORA['oraId']][0]; $_hianyzasClass = (is_array($_hianyzasAdat) && $_hianyzasAdat['hTipus']=='hiányzás') ? ' nemVoltBent ':''; - echo '<div class="'.$_tipusClass.$_frissClass.$_oraMostVanClass.$_hianyzasClass.' '.$_oraAdat.'" data-oraid="'.$_ORA['oraId'].'" title="'.$_ORA['tipus'].'" >'; + echo '<div class="'.$_tipusClass.$_frissClass.$_oraMostVanClass.$_utolsooraClass.$_hianyzasClass.' '.$_oraAdat.'" data-oraid="'.$_ORA['oraId'].'" title="'.$_ORA['tipus'].'" >'; if (is_array($_hianyzasAdat)) { echo '<span class="hianyzasTicker '.ekezettelen($_hianyzasAdat['hTipus']).' '.ekezettelen($_hianyzasAdat['statusz']).' '.ekezettelen($_hianyzasAdat['igazolas']).'">'; diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/uzeno/postas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/uzeno/postas.phtml index 65a45fae..0ac05060 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/uzeno/postas.phtml +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/uzeno/postas.phtml @@ -24,7 +24,7 @@ echo '<input type="hidden" name="mayorToken" class="mayorToken" value="'.$_SESSION['mayorToken'].'" />'; // rendhagyó eset, mert az egész tartalmat lecseréli az onLoadUpdate, és a form-tól kezdjük... echo '<input type="hidden" name="kuuk" value="'.$ADAT['kuuk'].'" />'; echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'; - echo '<table class="ujUzenet" align="center">'; + echo '<table class="ujUzenet" align="center" style="background-color: rgba(240,240,240,0.4);">'; echo '<tr><th>'._UJ_UZENET; if (__UZENOADMIN ===true && $ADAT['user']['feladoTipus']!='admin') { echo ' <select id="asWho" name="asWho" class="onChangeUpdate">'; @@ -38,7 +38,7 @@ echo '<tr><td>'; echo _CIMZETT.': '; // echo '<span style="" id="uzenoSearchIcon"><img src="/skin/classic/module-naplo/img/toolSearch.png" alt="ዖ" style="height:15px; width:15px;" align="middle" class="searchIcon"/>'.'</span>'; - echo '<span style="font-size:15px; cursor:pointer" id="uzenoSearchIcon">⌕</span>'; + echo '<span id="uzenoSearchIcon" class="icon-search"></span>'; echo '<input style="display:none" type="text" name="pattern" id="pattern" class="onChangeUpdate" placeholder="'._NEV.'" />'; echo '<button style="display:none" type="button">'._KERES.'</button>'; if (is_array($ADAT['r'])) { |