aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/skin/classic/module-naplo/html
diff options
context:
space:
mode:
authorM.Gergo2018-09-15 02:14:34 +0200
committerM.Gergo2018-09-15 02:14:34 +0200
commit146a089e39ccbf0e0675543c9d97a4567e321414 (patch)
tree06b831ede7745eb8fea8aff049aaba89d7f72792 /mayor-orig/www/skin/classic/module-naplo/html
parent0d6f6b3f16c50eeecf013b576090e1b9c087b6e5 (diff)
downloadmayor-146a089e39ccbf0e0675543c9d97a4567e321414.tar.gz
mayor-146a089e39ccbf0e0675543c9d97a4567e321414.zip
Rev: 4368
Diffstat (limited to 'mayor-orig/www/skin/classic/module-naplo/html')
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankor.phtml2
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/stat.phtml32
2 files changed, 19 insertions, 15 deletions
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankor.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankor.phtml
index 7517709b..2401da8f 100644
--- a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankor.phtml
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankor.phtml
@@ -100,7 +100,7 @@
echo '<tr>'."\n";
echo '<th>'._TANKORCN.'</th>';
echo '<td colspan="2">';
- echo '<input type="text" name="tankorCn" value="'.$TOPOST['tankoradat']['cn'].'" />';
+ echo '<input type="text" name="tankorCn" value="'.$TOPOST['tankoradat']['tankorCn'].'" />';
echo '</td>';
echo '</tr>'."\n";
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/stat.phtml b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/stat.phtml
index 40f2a3bd..4ede6060 100644
--- a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/stat.phtml
+++ b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/stat.phtml
@@ -9,7 +9,8 @@
echo '<tr>';
echo '<th>'._SZEMPONT.'</th>';
for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
- echo '<th>';
+ $nyekClass = in_array($ADAT['osztaly'][$i]['osztalyJellegId'],$ADAT['nyekJellegu']) ? ' style="background-color: #f60"':'';
+ echo '<th '.$nyekClass.'>';
if ($ADAT['osztaly'][$i]['osztalyJel'] != '') echo $ADAT['osztaly'][$i]['osztalyJel'];
else echo $ADAT['osztaly'][$i]['kezdoTanev'].'/'.$ADAT['osztaly'][$i]['jel'];
echo '</th>';
@@ -143,33 +144,36 @@
echo '</tbody>';
-/*
-
---TODO
-
+ $_nyvColor = array('#8bc34a','#2196f3','#e91e63','#263238');
if (is_array($ADAT['targyak'])) {
- foreach($ADAT['vizsgaSzint'] as $vizsgaSzint) {
+ $_szintIndex=0;
+ foreach($ADAT['vizsgaSzint'] as $vizsgaSzint) {
echo '<tbody>';
- echo '<th colspan="'.(count($ADAT['osztaly'])+1).'">'.$vizsgaSzint.' <span class="icon-globe-alt"></span></th>';
- foreach ($ADAT['targyak'] as $i => $targyAdat) {
- if ($targyAdat['targyJelleg'] == 'nyelv') {
- echo '<tr>';
+ echo '<th style="color:white; background-color: '.$_nyvColor[($_szintIndex)].'" colspan="'.(count($ADAT['osztaly'])+1).'">Nyelvvizsgák – '.$vizsgaSzint.' <span class="icon-globe-alt"></span></th>';
+ foreach ($ADAT['mindenTargy'] as $_index => $targyAdat) {
+ if ($targyAdat['targyJelleg'] == 'nyelv' && count($ADAT['nyelvvizsgak'][$targyAdat['targyId']])>0) {
+ echo '<tr>';
echo '<td>';
echo $targyAdat['targyNev'];
echo '</td>';
$_c = 0;$_sum=0;
for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
- echo '<td>';
- echo '-';
+ $_db = count($ADAT['nyelvvizsgak'][$targyAdat['targyId']][$ADAT['osztaly'][$i]['osztalyId']][$vizsgaSzint]);
+ if ($_db>0) {
+ $nyekClass = in_array($ADAT['osztaly'][$i]['osztalyJellegId'],$ADAT['nyekJellegu']) ? ' style="color: white; background-color: #f60"':'style="color:white; background-color: #648c82"';
+ echo '<td '.$nyekClass.'>';
+ }
+ else echo '<td>';
+ if ($_db>0) echo $_db;
echo '</td>';
}
- echo '</tr>'."\n";
+ echo '</tr>'."\n";
}
}
echo '</tbody>';
+ $_szintIndex++;
}
}
-*/
echo '</table>';