diff options
author | M.Gergo | 2021-10-28 15:10:04 +0200 |
---|---|---|
committer | M.Gergo | 2021-10-28 15:10:04 +0200 |
commit | 3a1c1811413c635c5ee6e40cb7d497de7313dbe1 (patch) | |
tree | df7591ff0287ef6b96b18da723b1914fd5dc3e20 /mayor-orig/mayor-naplo/www/skin | |
parent | a6185f7270c04c7469ea1a785e5cb35d2c3fdea6 (diff) | |
download | mayor-rev4820.tar.gz mayor-rev4820.zip |
Rev: 4820rev4820
Diffstat (limited to 'mayor-orig/mayor-naplo/www/skin')
-rw-r--r-- | mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tanarok.phtml | 21 | ||||
-rw-r--r-- | mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/valtas.phtml | 11 |
2 files changed, 26 insertions, 6 deletions
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tanarok.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tanarok.phtml index e01375dc..42c84c3f 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tanarok.phtml +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tanarok.phtml @@ -104,6 +104,9 @@ div.tanarGrid .item { padding:4px 4px; border-radius:2px; } +div.tanarGrid .item.kulsos { + background-color:#ddd; +} h1.osztaly,h2.osztalyfonok,h3.kepzes { text-align:center; } @@ -121,14 +124,22 @@ div.besorolas { font-size:x-small; color: #aaa;} echo '<div class="tanarGrid">'; for($i=0; $i<count($ADAT['tanarok']); $i++) { - $T = $ADAT['tanarok'][$i]; - echo '<div class="item tanarNev" data-tanarid="'.$T['tanarId'].'">'; + $T = $ADAT['tanarok'][$i]; + + $_kulsos = ($T['statusz']=='külső óraadó'); + $_kulsosClassName = ($_kulsos) ? 'kulsos':''; + + if (isset($ADAT['kulsosview'])) { + if ($ADAT['kulsosview']===true && $T['statusz']!='külső óraadó') continue; + elseif ($ADAT['kulsosview']!==true && $T['statusz']=='külső óraadó') continue; + } + echo '<div class="item tanarNev '.$_kulsosClassName.'" data-tanarid="'.$T['tanarId'].'">'; if (($_img = getFaceURI($T['tanarId'],'tanar')) != '') echo '<img src="'.$_img.'" class="arckep">'; else { - echo '<div class="arckepPlaceholder" style="display:flex; flex-direction: column">'; - // echo '<div class="icon-adult" style="font-size:120px; color:#eee;"></div>'; - echo '</div>'; + echo '<div class="arckepPlaceholder" style="display:flex; flex-direction: column">'; + // echo '<div class="icon-adult" style="font-size:120px; color:#eee;"></div>'; + echo '</div>'; } echo '<br/>'; diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/valtas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/valtas.phtml index 0a2e7fde..6ed78912 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/valtas.phtml +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/valtas.phtml @@ -41,7 +41,16 @@ div.besorolas { font-size:x-small; color: #aaa;} for($i=0; $i<count($ADAT['tanarok']); $i++) { $T = $ADAT['tanarok'][$i]; - echo '<div class="item tanarNev" data-tanarid="'.$T['tanarId'].'">'; + $_kulsos = ($T['statusz']=='külső óraadó'); + $_kulsosClassName = ($_kulsos) ? 'kulsos':''; + + if (isset($ADAT['kulsosview'])) { + if ($ADAT['kulsosview']===true && $T['statusz']!='külső óraadó') continue; + elseif ($ADAT['kulsosview']!==true && $T['statusz']=='külső óraadó') continue; + } + + echo '<div class="item tanarNev '.$_kulsosClassName.'" data-tanarid="'.$T['tanarId'].'">'; + if (($_img = getFaceURI($T['tanarId'],'tanar')) != '') echo '<img src="'.$_img.'" class="arckep">'; else { echo '<div class="arckepPlaceholder" style="display:flex; flex-direction: column">'; |