'.''."\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