diff options
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">'; |