From 8ba4eb09ddb764eaf01fabe30bdd49a202858d4d Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Sun, 29 Sep 2024 04:28:14 +0200 Subject: Rev: 4859 --- .../classic/module-naplo/html/orarend/orarendModosito.phtml | 13 +++++++------ .../classic/module-naplo/html/orarend/orarendTankor.phtml | 9 ++++++++- 2 files changed, 15 insertions(+), 7 deletions(-) (limited to 'mayor-orig/mayor-naplo/www/skin') diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendModosito.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendModosito.phtml index 60095e83..c5158391 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendModosito.phtml +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendModosito.phtml @@ -146,7 +146,7 @@ } echo ', '; echo ''.$ADAT['termek'][$_T['teremId']]['leiras'].''; - _putTerem(array('name'=>'T_'.$het.'_'.$nap.'_'.$ora.'_'.$_T['tanarId'].'_'.$_kulcsTolDt, 'teremId'=>$_T['teremId']),$ADAT['termek']); + _putTerem(array('name'=>'T_'.$het.'_'.$nap.'_'.$ora.'_'.$_T['tanarId'].'_'.$_kulcsTolDt, 'teremId'=>$_T['teremId'], 'szabadTermek'=> $ADAT['szabadTermek'][$dt][$ora]),$ADAT['termek']); echo '
'; if ($_ORA['kit']!='') { echo ''; @@ -346,12 +346,13 @@ for ($oi=0; $oi'.''."\n"; foreach ($TERMEK as $_teremId => $_T) { // leiras|ferohely|tipus|telephely $_SEL = ($ADAT['teremId']==$_T['teremId']) ? ' selected="selected" ' : ''; + $_elerheto = (in_array($_teremId,$ADAT['szabadTermek'])) ? '': ($_SEL=='' ? ' FOGLALT! ': '***'); if ($_T['tipus'] == $_T['leiras']) $_leiras = $_T['tipus']; else $_leiras = $_T['leiras'].' ('.$_T['tipus'].')'; - if ($ADAT['teremId']==$_T['teremId']) { - echo ''."\n"; - } else { - echo ''."\n"; - } + if ($ADAT['teremId']==$_T['teremId']) { + echo ''."\n"; + } else { + echo ''."\n"; + } } echo ''; } diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendTankor.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendTankor.phtml index 08144c53..315dba0c 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendTankor.phtml +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendTankor.phtml @@ -38,7 +38,14 @@ $_targyJel = $T[$nap][$ora][$i]['targyJel']; $_osztalyJel = $T[$nap][$ora][$i]['osztalyJel']; $_teremId = ($T[$nap][$ora][$i]['teremId']=='')?'-':$T[$nap][$ora][$i]['teremId']; - echo '
';
+
+            // INFOBOX
+            if ($ADAT['assoc'][$nap][$ora]['orak'][$i]['tankorId'] >0 ) {
+              $_cls="background-color: lightgreen; ";
+            } else {
+              $_cls='';
+            }
+            echo '
';
 				    echo "targyJel:    $_targyJel\n";
 				    echo "osztalyJel:  $_osztalyJel\n";
 				    echo "teremId:     $_teremId\n";
-- 
cgit v1.2.3