aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/skin/ajax/module-naplo/html
diff options
context:
space:
mode:
authorM.Gergo2018-07-06 11:14:41 +0200
committerM.Gergo2018-07-06 11:14:41 +0200
commit43de9af71f7f4ca5731b94a06d688ae8412ba427 (patch)
tree54835de1dfcda504c02da261f0dc26885aed2e89 /mayor-orig/www/skin/ajax/module-naplo/html
parent50310b0e4513ee3fcce67351ae61e8fff851130e (diff)
downloadmayor-43de9af71f7f4ca5731b94a06d688ae8412ba427.tar.gz
mayor-43de9af71f7f4ca5731b94a06d688ae8412ba427.zip
2018/Feb/28 -i állapot hozzáadva, mint a módosítások kiindulási állapota
Diffstat (limited to 'mayor-orig/www/skin/ajax/module-naplo/html')
-rw-r--r--mayor-orig/www/skin/ajax/module-naplo/html/admin/tanevek.phtml9
-rw-r--r--mayor-orig/www/skin/ajax/module-naplo/html/base.phtml6
-rw-r--r--mayor-orig/www/skin/ajax/module-naplo/html/bejegyzesek/info.phtml11
-rw-r--r--mayor-orig/www/skin/ajax/module-naplo/html/haladasi/haladasi.phtml162
-rw-r--r--mayor-orig/www/skin/ajax/module-naplo/html/hianyzas/info.phtml18
-rw-r--r--mayor-orig/www/skin/ajax/module-naplo/html/hibabejelento/admin.phtml120
-rw-r--r--mayor-orig/www/skin/ajax/module-naplo/html/orarend/orarend.phtml148
7 files changed, 474 insertions, 0 deletions
diff --git a/mayor-orig/www/skin/ajax/module-naplo/html/admin/tanevek.phtml b/mayor-orig/www/skin/ajax/module-naplo/html/admin/tanevek.phtml
new file mode 100644
index 00000000..9f32e72e
--- /dev/null
+++ b/mayor-orig/www/skin/ajax/module-naplo/html/admin/tanevek.phtml
@@ -0,0 +1,9 @@
+<?php
+
+ function putUjTanevForm() {}
+
+ function putTanevSzemeszterekForm() {}
+
+ function putTanevAktivalForm() {}
+
+?>
diff --git a/mayor-orig/www/skin/ajax/module-naplo/html/base.phtml b/mayor-orig/www/skin/ajax/module-naplo/html/base.phtml
new file mode 100644
index 00000000..c3fe9d59
--- /dev/null
+++ b/mayor-orig/www/skin/ajax/module-naplo/html/base.phtml
@@ -0,0 +1,6 @@
+<?php
+
+ // including base
+ include('skin/classic/module-naplo/html/share/face.phtml');
+
+?>
diff --git a/mayor-orig/www/skin/ajax/module-naplo/html/bejegyzesek/info.phtml b/mayor-orig/www/skin/ajax/module-naplo/html/bejegyzesek/info.phtml
new file mode 100644
index 00000000..94c12c57
--- /dev/null
+++ b/mayor-orig/www/skin/ajax/module-naplo/html/bejegyzesek/info.phtml
@@ -0,0 +1,11 @@
+<?php
+
+ function putBejegyzesInfo($ADAT) {
+ echo '<div>';
+ echo _BEJEGYZESEK_SZAMA.': ';
+ if ($ADAT['db'] > 0) echo '<span style="color: red;">'.$ADAT['db'].'</span>';
+ else echo $ADAT['db'];
+ echo '</div>';
+ }
+
+?>
diff --git a/mayor-orig/www/skin/ajax/module-naplo/html/haladasi/haladasi.phtml b/mayor-orig/www/skin/ajax/module-naplo/html/haladasi/haladasi.phtml
new file mode 100644
index 00000000..1511b957
--- /dev/null
+++ b/mayor-orig/www/skin/ajax/module-naplo/html/haladasi/haladasi.phtml
@@ -0,0 +1,162 @@
+<?php
+/*
+ function putHaladasiBejegyzesek($data, $tankorId, $osztalyId, $tanarId, $title, $diakId, $order, $ADAT)
+ |- function putTankorNap($dt, $dNap, $doga, $order)
+ |-function putHaladasiDolgozat($dt,$doga)
+ |-function putTankorOra($dOra)
+ function putHetesForm($ADAT)
+*/
+##
+# Haladási naplo megjelenítése
+##
+
+ function putHaladasiBejegyzesek($ADAT) {
+
+ global $_TANEV;
+
+ $title = $ADAT['title'];
+ $data = $ADAT['haladasi'];
+ $order = $ADAT['order'];
+ $tankorId = $ADAT['tankorId'];
+ $osztalyId = $ADAT['osztalyId'];
+ $tanarId = $ADAT['tanarId'];
+ $diakId = $ADAT['diakId'];
+
+ echo '<input type="hidden" name="tankorId" id="haladformTankorId" value="" />'."\n";
+
+ echo '<table class="haladasiNaplo" align="center" cellpadding="1" cellspacing="1">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>';
+ echo '<th colspan="3">';
+ echo '</th>';
+ echo '<th>'._TANAR.'</th><th>'._ORASZAM.'</th><th>'._TANANYAG.'</th>';
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+ echo '<tfoot>'."\n";
+ echo '<tr><th colspan="6">';
+// if (_SHOW_DAYS_FROM > $_TANEV['kezdesDt']) echo '<input class="gomb" type="submit" name="lapoz" value="<<" tabindex="5" />'."\n";
+ echo ' '._IDOSZAK.': '.str_replace('-','.',_SHOW_DAYS_FROM) . '. - '. str_replace('-','.', _SHOW_DAYS_TO) .'. '."\n";
+// if (_SHOW_DAYS_TO < date('Y-m-d')) echo '<input class="gomb" type="submit" name="lapoz" value=">>" tabindex="6" />'."\n";
+ echo '</th></tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ $toTime = strtotime(_SHOW_DAYS_TO);
+ $fromTime = strtotime(_SHOW_DAYS_FROM);
+
+ for ($time = $toTime; $time >= $fromTime; $time = strtotime('-1 day',$time)) {
+ $dt = date('Y-m-d',$time);
+ $count = count($data[$dt]);
+ if ($count > 0) {
+// echo '<tbody class="parosNap">';
+ putTankorNap($dt, $data[$dt], $data['dolgozatok'], $order);
+// echo '</tbody>'."\n";
+ }
+ }
+
+ echo '</table>'."\n";
+
+ }
+
+
+
+
+ function putTankorNap($dt, $dNap, $doga, $order) {
+
+ $time = strtotime($dt);
+ $count = count($dNap);
+
+// if (date('w',$time) % 2 == 0) echo '<tbody class="parosNap">'."\n";
+// else echo '<tbody class="paratlanNap">'."\n";
+
+ putHaladasiDolgozat($dt,$doga);
+
+ for ($i=0; $i<$count; $i++) {
+ putTankorOra($dNap[$count-$i-1]);
+ } // órák kiírása
+
+// echo '</tbody>'."\n";
+
+ }
+
+
+ function putHaladasiDolgozat($dt,$doga) {
+
+ for ($i=0;$i<count($doga['tervezett'][$dt]);$i++) {
+ $did = $doga['tervezett'][$dt][$i];
+ echo '<tr>';
+ echo '<td colspan="8" class="dolgozat">';
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=dolgozat&dolgozatId='.$did);
+// echo '<a href="'.$href.'">';
+ echo _BEJELENTETT_DOLGOZAT . ': '. $doga[$did]['dolgozatNev'];
+ echo ' (' ;
+ for ($j=0;$j<count($doga[$did]['tankor']);$j++) {
+ if ($j != 0) echo ', ';
+ echo $doga[$did]['tankor'][$j]['tankorNev'];
+ }
+ echo ')';
+// echo '</a>';
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+
+ }
+
+
+ function putTankorOra($dOra) {
+
+ global $aHetNapjai;
+
+ $modosithatoOra = false;
+
+ if (!in_array($dOra['tipus'],array('normál','normál máskor'))) {
+ $tipus = nagybetus(substr($dOra['tipus'],0,1));
+ $tr_class = ' class="helyettesit"';
+ } else {
+ $tipus = '';
+ $tr_class = '';
+ }
+
+ echo '<tr'.$tr_class.'>';
+
+ echo '<td>';
+ echo str_replace('-','.',$dOra['dt']) .'. '. $aHetNapjai[date('w',strtotime($dOra['dt']))-1].' ';
+ echo '</td>';
+ echo '<td class="ora">';
+ echo $dOra['ora'].'.';
+ echo '</td>'."\n";
+ echo '<td>';
+ echo $tipus;
+// echo $ADAT['terem'][$dOra['teremId']]['leiras'];
+ echo '</td>'."\n";
+
+
+ // ----- Tanör(ok) -------------------------------
+ echo '<td>';
+ // Ha egy normál órának több tanára is van, és módosítható az óra, akkor lehet választani a tanárok közül
+ if (count($dOra['tanár']['id']) > 1 and $modosithatoOra) {
+ $_SEL = array($dOra['kiId'] => 'selected="selected" ');
+ echo '<select name="K_'.$dOra['oraId'].'">'."\n";
+ for ($t=0;$t<count($dOra['tanár']['id']);$t++) {
+ echo '<option value="'.$dOra['tanár']['id'][$t].'" '.$_SEL[$dOra['tanár']['id'][$t]].'>';
+ echo $dOra['tanár'][$dOra['tanár']['id'][$t]]['cn'];
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ } else {
+ echo $dOra['kiCn'];
+ }
+ echo '</td>'."\n";
+
+ echo '<td>';
+ echo $dOra['oraszam'];
+ echo '</td>'."\n";
+
+ echo '<td>'.$dOra['leiras'].'</td>'."\n";
+
+ echo '</tr>'."\n";
+ }
+
+ function putHetesForm($ADAT) { }
+
+?>
diff --git a/mayor-orig/www/skin/ajax/module-naplo/html/hianyzas/info.phtml b/mayor-orig/www/skin/ajax/module-naplo/html/hianyzas/info.phtml
new file mode 100644
index 00000000..2d206723
--- /dev/null
+++ b/mayor-orig/www/skin/ajax/module-naplo/html/hianyzas/info.phtml
@@ -0,0 +1,18 @@
+<?php
+
+ function putDiakHianyzasInfo($ADAT) {
+ foreach(array_reverse($ADAT) as $dt => $D) { if ($dt!='') break; }
+ echo '<div style="text-align: center">';
+ if ($dt == date('Y-m-d')) {
+ echo _MA.' '._AZ_ORAK.' '.$D['oranHianyzasSzazalek'].'%-n '._VOLT_HIANYZO.'.<br/>';
+ echo _MA.' '.$D['hianyzokSulyozva'].' '._DIAK.' '._HIANYZIK.'.';
+ } else {
+ list($ev,$ho,$nap) = explode('-',$dt);
+ echo decimal_to_roman($ho).'. '.$nap.'. napon '._AZ_ORAK.' '.$D['oranHianyzasSzazalek'].'%-n '._VOLT_HIANYZO.'.<br/>';
+ echo decimal_to_roman($ho).'. '.$nap.'. napon '.$D['hianyzokSulyozva'].' '._DIAK.' '._HIANYZOTT.'.';
+ }
+ echo '</div>';
+ //echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=info&toSkin='._SKIN).'">'._TOVABB.'</a>';
+ }
+
+?>
diff --git a/mayor-orig/www/skin/ajax/module-naplo/html/hibabejelento/admin.phtml b/mayor-orig/www/skin/ajax/module-naplo/html/hibabejelento/admin.phtml
new file mode 100644
index 00000000..c2d3b6a1
--- /dev/null
+++ b/mayor-orig/www/skin/ajax/module-naplo/html/hibabejelento/admin.phtml
@@ -0,0 +1,120 @@
+<?php
+ function putKerelmek($ADAT) {
+
+ echo '<ol style="list-style-type:none; margin:0px; padding:0px;">';
+ for ($i = 0; $i < count($ADAT['kerelmek']); $i++) {
+
+ if ($ADAT['kerelmek'][$i]['lezarasDt']!="") $_class = ' style="color: #777777;"' ;
+ elseif ($ADAT['kerelmek'][$i]['jovahagyasDt']!="") $_class = ' style="background-color: rgb(200,255,200);"' ;
+ else $_class = ' style="color: black;"' ;
+
+ if (__VEZETOSEG || __NAPLOADMIN) {
+ echo '<li><div style="font-style:italic; background-color:#dddddd; border-style: none none solid none; border-width:1px; border-color: #777777;">'.$ADAT['kerelmek'][$i]['userAccount'].' '.superdate($ADAT['kerelmek'][$i]['rogzitesDt']).': '.$ADAT['kerelmek'][$i]['kategoria'].'</div></li>';
+ } else {
+ echo '<li '.$_class.'>';
+ echo '<div style="font-style:italic; background-color:#dddddd; border-style: none none solid none; border-width:1px; border-color: #777777;">'.$ADAT['kerelmek'][$i]['userAccount'].' '.superdate($ADAT['kerelmek'][$i]['rogzitesDt']).': '.$ADAT['kerelmek'][$i]['kategoria'].'</div>';
+ echo '- '.htmlspecialchars($ADAT['kerelmek'][$i]['szoveg']);
+ if ($ADAT['kerelmek'][$i]['valasz']!='')
+ echo '<div style="font-weight:bold">- '.htmlspecialchars($ADAT['kerelmek'][$i]['valasz']).'</div>';
+ echo '</li>';
+ }
+ }
+ echo '</ol>';
+
+ }
+
+ function putKerelmekValasszal($ADAT) {
+
+ $K = array('jh'=>0,'njh'=>0);
+ $MAX = 1;
+ $dbKerelem = count($ADAT['kerelmek']);
+ $show = false;
+ for ($i = 0; $i < count($ADAT['kerelmek']); $i++) {
+ if ($ADAT['kerelmek'][$i]['jovahagyasDt']!='') {
+ $K['jh']++;
+ // A kérelmek a rögzítés dátuma szerint rendezettek, nem a jóváhagyás dátuma szerint!
+ if (!isset($jdt) || strtotime($jdt) < strtotime($ADAT['kerelmek'][$i]['jovahagyasDt'])) $jdt = $ADAT['kerelmek'][$i]['jovahagyasDt'];
+ } else $K['njh']++;
+ $show = true;
+ }
+ if ($show) {
+/* echo '<div style="width:90%; margin:auto; border: solid 1px rgb(50,0,50);">';
+ echo '<div style="background-color:rgb(150,100,150); color: white; padding: 5px 10px; border-bottom: solid 1px white; font-weight:bold;">Kérelmek</div>';
+ echo '<div class="onClickHideShow" style="padding: 10px 10px; background-color: #eeeeee; border-bottom: solid 1px white; border-top: solid 1px rgb(50,0,50);">';
+ echo "Várakozó kérelmek száma: ";
+ echo $K['jh'] . ' + '. $K['njh'];
+ if ($jdt !='') echo "<br/>Utolsó jóváhagyás: ".$jdt;
+ echo '</div>';
+ if (__NAPLOADMIN===true || __VEZETOSEG===true)
+ echo '<div style="background-color:rgb(150,150,200); color: white; padding: 0px; font-weight:bold; text-align: right"><a style="text-decoration: none; display: block; color: white" href="'.href('index.php?page=naplo&sub=hibabejelento&f=admin',array('policy','lang','sessionID')).'">'.'tovább...'.'</a></div>';
+ echo '</div>';
+*/
+ }
+
+ echo '<div style="display:;">';
+ for ($i = 0; $i < $dbKerelem && $i<$MAX; $i++) {
+ $_link = href('index.php?page=naplo&sub=hibabejelento&f=admin&kerelemId='.$ADAT['kerelmek'][$i]['kerelemId']);
+ $_K = $ADAT['kerelmek'][$i];
+ $kerelemId = $_K['kerelemId'];
+ $_napja = round(((strtotime(date('Y-m-d H:i:s')) - strtotime($_K['rogzitesDt']))/(24*60*60)));
+ if ($_napja>60) $_napjaBg = '#f00; outline: solid 2px orange;'; else if ($_napja>7) $_napjaBg = '#f44336; outline: solid 2px red; '; else $_napjaBg = '#aaa';
+ if ($_K['lezarasDt']!='') {
+ $_color = "#888";
+ $_class="icon-paper-clip-alt";
+ } elseif ($_K['jovahagyasDt']!='') {
+ $_color = "#64ce64";
+ $_class="icon-ok-sign";
+ } else {
+ $_color="#ce6464";
+ $_class="icon-question-sign";
+ }
+ echo '<div style="height:2px;"></div>';
+ echo '<div style="width:90%; margin: 0px auto; border: solid 1px rgb(50,0,50);">';
+ echo '<div style="font-size:10px; background-color: #3c3c64; color: white; font-weight: bold; border-bottom: solid 1px #dddddd; padding:3px 10px;">'.superdate($ADAT['kerelmek'][$i]['rogzitesDt']).'</div>';
+ echo '<div style="background-color: #cccccc; padding:10px;border-bottom: solid 1px #dddddd; padding:3px 3px; min-height:30px;">';
+ echo '<a style="color: black;" href="'.$_link.'">';
+
+ echo '<span class="'.$_class.'" style="color:'.$_color.'; float:left; font-size:30px; height:30px; line-height:30px; padding:0px 4px;"></span>';
+ echo '<span style="float:right; height:30px; background-color: '.$_napjaBg.'; color:white; padding: 0px 5px 0px 5px; font-size:25px;">';
+ echo $_napja;
+ echo '</span>';
+ echo htmlspecialchars($ADAT['kerelmek'][$i]['szoveg']);
+ echo '</a>';
+ echo '</div>';
+ echo '<div style="background-color: '.$_color.'; color: white; padding:10px; border-bottom: solid 1px #3c3c64; padding:3px 10px;">'.htmlspecialchars($ADAT['kerelmek'][$i]['valasz']).' '.$_K['jovahagyasAccount'].'</div>';
+ echo '<style type="text/css">
+ table.kerelemValasz {background-color:#ddd;}
+ table.kerelemValasz td {font-size:10px; background-color:white; padding:2px 4px; vertical-align:top;}
+ table.kerelemValasz td.dt {background-color: #eee;text-align: right;}
+ </style>';
+ if (count($ADAT['valaszok'][$kerelemId])>0) {
+ $_V = $ADAT['valaszok'][$kerelemId];
+ echo '<table class="kerelemValasz" cellpadding="1" cellspacing="1">';
+ for ($j=0; $j<count($_V); $j++) {
+ echo '<tr >';
+ echo '<td class="dt">'.superdate($_V[$j]['valaszDt']).'</td>';
+ echo '<td class="userAccount">'.$_V[$j]['userAccount'].'</td>';
+ echo '<td>'.supertext($_V[$j]['valasz']).'</td>';
+ echo '</tr>';
+ }
+ echo '</table>';
+ }
+ echo '</div>';
+ }
+ echo '</div>';
+
+ //if ($i!=$dbKerelem)
+ {echo '
+ <style type="text/css">
+ div._dotHolder {text-align:center; width:90%; margin:auto; padding:10px 0px;vertical-align:middle;}
+ div._dot {background-color:#eee;display: inline-block;border-radius: 50%;height:10px; width:10px;}
+ div._dot:hover {background-color:cornflowerblue !important;}
+ div._dotHolder:hover div._dot {background-color:#ccc;}
+ </style>
+ <div class="_dotHolder"><a href="'.href('index.php?page=naplo&sub=hibabejelento&f=admin').'" style="color:black;display:block;">';
+ for ($j=0; $j<($dbKerelem-$i); $j++) { echo '<div class="_dot"></div> '; }
+ echo '</a></div>';
+ }
+ }
+
+?>
diff --git a/mayor-orig/www/skin/ajax/module-naplo/html/orarend/orarend.phtml b/mayor-orig/www/skin/ajax/module-naplo/html/orarend/orarend.phtml
new file mode 100644
index 00000000..cb12b8cf
--- /dev/null
+++ b/mayor-orig/www/skin/ajax/module-naplo/html/orarend/orarend.phtml
@@ -0,0 +1,148 @@
+<?php
+
+ function putOrarend($ADAT) {
+
+ global $aHetNapjai;
+ if (is_array($ADAT['orarend']['assoc'])) {
+
+// dump($ADAT['csengetesiRend']);
+
+ $T = $ADAT['orarend']['assoc'];
+ echo '<table class="orarend" align="center" cellspacing="0" cellpadding="0">'."\n";
+ echo '<tbody>'."\n";
+ for($ora=$ADAT['napiMinOra']; $ora<=$ADAT['napiMaxOra']; $ora++) {
+ echo '<tr>';
+ echo '<th>'.$ora.'</th>';
+// for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) { // FIXME (getMaxNap)
+ $nap=date('w',strtotime($ADAT['dt']));
+ $dt = $ADAT['orarend']['napok'][$nap]['dt'];
+ echo '<td>';
+ $het = 0;
+ $ORARENDI = array();
+ for($i=0; $i<count($T[$nap][$ora]['orak']); $i++) {
+ $_T = $T[$nap][$ora]['orak'][$i];
+ $ORARENDI[] = $_T['tankorId'];
+ //
+ $het = $_T['het'];
+ $_ORA = $ADAT['haladasi']['orak'][$dt][$ora][$_T['tankorId']];
+ $_tankorTipus = $ADAT['tankorok'][$_T['tankorId']][0]['tankorTipus'];
+
+ // Az órarendből a jelek:
+ $_targyJel = $_T['targyJel'];
+ $_osztalyJel = $_T['osztalyJel'];
+ // figyelem, itt jön a kiírás, a _putOra fv helyett:
+ $_tipusClass = str_replace(' ','_',$_ORA['tipus']);
+
+ echo '<div class="'.$_tipusClass.'" title="'.$_ORA['tipus'].'" >';
+ $_ferohely = $ADAT['termek'][$_T['teremId']]['ferohely'];
+ $_letszam = $ADAT['tankorLetszamok'][$_T['tankorId']];
+ if ($_T['tankorId']!='') {
+ echo '<span title="'.$_targyJel.' '.$_osztalyJel.' ('.$ADAT['tankorok'][$_T['tankorId']][0]['tankorId'].') '.$_tankorTipus.'" >';
+ echo $ADAT['tankorok'][$_T['tankorId']][0]['tankorNev'];
+ echo '</span>';
+ } else {
+ echo "$_targyjel : $_osztalyJel : ";
+ }
+ echo ', ';
+ echo '<span title="'.$_ferohely.'/'.$_letszam.'" class="t'.( ($_ferohely!=0 && $_ferohely<$_letszam) ? 0 : 1).'">'.$ADAT['termek'][$_T['teremId']]['leiras'].'</span>';
+ echo '<br/>';
+ if ($_ORA['kit']!='') {
+ echo '<span class="helyett">';
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ echo '</span>';
+ if ($_ORA['ki']!='') echo ' '.$ADAT['tanarok'][$_ORA['ki']]['tanarNev'];
+ } else {
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ }
+
+ if (isset($_ORA['oo'])) echo ' &deg;'; // else tervezett
+ if ($_tankorTipus=='délutáni') echo ' &sup1';
+
+ echo '</div>';
+ if (count($T[$nap][$ora]['orak'])>$i+1) echo '<hr/>';
+ }
+ /* és ide jönnek a pluszok */
+ $j=0;
+ if (is_array($ADAT['haladasi']['orak'][$dt][$ora])) foreach ($ADAT['haladasi']['orak'][$dt][$ora] as $_tankorId => $__T) {
+ if (!is_array($ORARENDI) || !in_array($_tankorId,$ORARENDI)) {
+ if ($j!=0) echo '<hr/>'; $j++;
+ $_ORA = $ADAT['haladasi']['orak'][$dt][$ora];
+ _putOra($_ORA,$_tankorId);
+ }
+ }
+ echo '</td>'."\n";
+ //}
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>';
+ echo '</table>'."\n\n<!-- EOT -->\n\n";
+
+ } else {
+ //putOrarendPlain($ADAT);
+ echo '<div style="text-align: center">'._NO_TIMETABLE.'</div>';
+
+ }
+
+
+ }
+
+ function putOrarendPlain($ADAT) {
+ if (is_array($ADAT['orarend']['orarendiOra'])) {
+ foreach($ADAT['orarend']['orarendiOra'] as $het => $T) {
+ echo '<table class="orarend" align="center">'."\n";
+ echo '<caption>'.$het.'. heti órarend</caption>';
+ for($ora=$ADAT['napiMinOra']; $ora<=$ADAT['napiMaxOra']; $ora++) { // FIXME (getMinOra, getMaxOra konstansok!???)
+ echo '<tr>';
+ echo '<th>'.$ora.'</th>';
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) { // FIXME (getMaxNap)
+ echo '<td>';
+ $X = $ADAT['orarend']['orarendiOra'][$het][$nap][$ora];
+
+ for ($i=0; $i<count($X); $i++) {
+ echo '<div class="unfinished">';
+ echo $X[$i]['targyJel'].' : ';
+ echo $X[$i]['osztalyJel'].' : ';
+ echo $X[$i]['teremId'];
+ echo '</div>';
+ }
+ echo '</td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</table>'."\n\n<!-- EOT -->\n\n";
+ }
+ }
+ }
+
+ function _putOra($ORA,$_tankorId) {
+ global $ADAT;
+ $_ORA = $ORA[$_tankorId];
+ $_tipusClass = str_replace(' ','_',$_ORA['tipus']);
+ $_eredetClass = $_ORA['eredet'];
+ echo '<div class="'.$_tipusClass.' '.$_eredetClass.'" title="'.$_ORA['tipus'].'" >';
+
+ if ($ADAT['tankorok'][$_ORA['tankorId']][0]['tankorNev']!='') {
+ echo '<span title="'.$_targyJel.' '.$_osztalyJel.' ('.$ADAT['tankorok'][$_T['tankorId']][0]['tankorId'].')" >';
+ echo $ADAT['tankorok'][$_ORA['tankorId']][0]['tankorNev'];
+ echo '</span>';
+
+ echo ', '.$ADAT['termek'][$_ORA['teremId']]['leiras'];
+ echo '<br/>';
+ } else {
+ echo $_ORA['tipus'].' '.$_ORA['eredet'].' ('.$_ORA['feladatTipusId'].')<br/>';
+ }
+
+
+ echo '<span class="helyett">';
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ echo '</span>';
+ if ($_ORA['ki']!='') echo ' '.$ADAT['tanarok'][$_ORA['ki']]['tanarNev'];
+
+ if (isset($_ORA['oo'])) echo ' &deg;'; // else tervezett
+
+ echo '</div>';
+
+ }
+
+
+?>