diff options
author | M.Gergo | 2024-09-29 04:28:14 +0200 |
---|---|---|
committer | M.Gergo | 2024-09-29 04:28:14 +0200 |
commit | 8ba4eb09ddb764eaf01fabe30bdd49a202858d4d (patch) | |
tree | 4404fa5f0a74644a8ce425fb5d125b60560f1951 /mayor-orig/mayor-naplo/www/skin/classic | |
parent | 9acd050ff186f06079b0bdb396d2f17bbbdc5336 (diff) | |
download | mayor-8ba4eb09ddb764eaf01fabe30bdd49a202858d4d.tar.gz mayor-8ba4eb09ddb764eaf01fabe30bdd49a202858d4d.zip |
Rev: 4859
Diffstat (limited to 'mayor-orig/mayor-naplo/www/skin/classic')
-rw-r--r-- | mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendModosito.phtml | 13 | ||||
-rw-r--r-- | mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarendTankor.phtml | 9 |
2 files changed, 15 insertions, 7 deletions
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 '<span title="'.$_ferohely.'/'.$_letszam.'" class="t'.( ($_ferohely!=0 && $_ferohely<$_letszam) ? 0 : 1).'">'.$ADAT['termek'][$_T['teremId']]['leiras'].'</span>'; - _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 '<br/>'; if ($_ORA['kit']!='') { echo '<span class="helyett tanarAdat tanarNev" data-tanarid="'.$_T['tanarId'].'">'; @@ -346,12 +346,13 @@ for ($oi=0; $oi<count($ADAT['orarendioraTankor']['orarendiOra'][$het][$nap][$ora echo '<option value="NULL" >'.'</option>'."\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 '<option class="orig" value="" '.$_SEL.'>***'.$_T['leiras'].' ['.$_T['ferohely'].'] '.$_T['tipus'].'</option>'."\n"; - } else { - echo '<option value="'.$_T['teremId'].'" '.$_SEL.'>'. $_leiras .' ['.$_T['ferohely'].']'.'</option>'."\n"; - } + if ($ADAT['teremId']==$_T['teremId']) { + echo '<option class="orig" value="" '.$_SEL.'>***'.$_T['leiras'].' ['.$_T['ferohely'].'] '.$_T['tipus'].' '.$_elerheto.'</option>'."\n"; + } else { + echo '<option value="'.$_T['teremId'].'" '.$_SEL.'>'. $_leiras .' ['.$_T['ferohely'].']'.$_elerheto.'</option>'."\n"; + } } echo '</select>'; } 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 '<pre style="text-align: left">'; + + // INFOBOX + if ($ADAT['assoc'][$nap][$ora]['orak'][$i]['tankorId'] >0 ) { + $_cls="background-color: lightgreen; "; + } else { + $_cls=''; + } + echo '<pre style="text-align: left ;'.$_cls.'">'; echo "targyJel: $_targyJel\n"; echo "osztalyJel: $_osztalyJel\n"; echo "teremId: $_teremId\n"; |