diff options
author | M.Gergo | 2019-07-15 12:16:55 +0200 |
---|---|---|
committer | M.Gergo | 2019-07-15 12:16:55 +0200 |
commit | 389e70b9aff181663269ab3e7ca3c16ab58f3e0f (patch) | |
tree | 2886248de98edd44a0d1d73e1c6244b7f69c5104 /mayor-orig/mayor-naplo/www/skin/classic | |
parent | b91cdd7ba1a9e9c8c605640cc3c910acd25bf767 (diff) | |
download | mayor-rev4519.tar.gz mayor-rev4519.zip |
Rev: 4519rev4519
Diffstat (limited to 'mayor-orig/mayor-naplo/www/skin/classic')
-rw-r--r-- | mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/kretaZarojegyImport.phtml | 48 | ||||
-rw-r--r-- | mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/base.phtml | 2 |
2 files changed, 49 insertions, 1 deletions
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/kretaZarojegyImport.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/kretaZarojegyImport.phtml new file mode 100644 index 00000000..ed4c0e69 --- /dev/null +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/admin/kretaZarojegyImport.phtml @@ -0,0 +1,48 @@ +<?php + + function putKretaZarojegyImport($ADAT) { + + if ($ADAT['osztalyId']==0) { + echo '<h1 style="text-align: center">Először válassz osztályt!</h1>'; + return; + } else { + echo '<h1 style="text-align: center">Évfolyamjel: '.$ADAT['osztalyAdat']['evfolyamJel'].'</h1>'; + } + + $oszlopIndex = 0; + if (count($ADAT['targyMatrix'])>0) { + formBegin(); + echo '<table style="margin-left:40px;">'; + foreach ($ADAT['targyMatrix'] as $targyOszlopNev => $targyAdat) { + echo '<tr><td>'.($oszlopIndex).'</td><td>'.$targyOszlopNev.'</td>'; + echo '<td>'; + if (!is_array($targyAdat)) { + echo '-'; + } elseif (count($targyAdat)==1) { + echo $targyAdat[0]['targyNev']; // kovetelmeny, munkakozosseg + echo ' ('.$targyAdat[0]['targyId'].')'; // kovetelmeny, munkakozosseg + echo '<input type="hidden" name="oszlop_'.intval($oszlopIndex).'" value="'.$targyAdat[0]['targyId'].'" />'; + } else { + echo '<select name="oszlop_'.$oszlopIndex.'">'; + echo '<option value="">Válassz!</option>'; + for ($i=0; $i<count($targyAdat); $i++) { + $_SEL = ($_POST['oszlop_'.($oszlopIndex)] == $targyAdat[$i]['targyId']) ? ' selected="selected" ':''; + echo '<option value="'.$targyAdat[$i]['targyId'].'" '.$_SEL.'>'.$targyAdat[$i]['targyNev'].' - '.$targyAdat[$i]['targyJelleg'].' ('.$targyAdat[$i]['mkNev'].' munkaközösség) '.$targyAdat[$i]['zaroKovetelmeny'].' ('.$targyAdat[$i]['targyId'].')</option>'; + } + echo '</select>'; + } + echo '</td>'; + echo '</tr>'; + $oszlopIndex++; + } + echo '</table>'; + echo '<input type="hidden" name="osztalyId" value="'.intval($ADAT['osztalyId']).'" />'; + echo '<input type="checkbox" name="MODIFYSQL" value="1" />'; + echo '<input type="submit" />'; + formEnd(); + } + // dump($ADAT['oszlop2targyId']); + + + } +?>
\ No newline at end of file diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/base.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/base.phtml index 4753fbf4..3a67bf6c 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/base.phtml +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/base.phtml @@ -47,7 +47,7 @@ echo '<td class="toolBarTitle" id="toolBarTitle" colspan="3">'; if (defined('__PAGETITLE')) echo __PAGETITLE.'<br/>'; - else echo 'MaYoR eleketronikus napló'.'<br/>'; + else echo 'MaYoR elektronikus napló'.'<br/>'; echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=valtas').'">'; if (defined('__TELEPHELYID')) echo '<span id="toolBarIntezmeny" title="TelephelyId:".'.__TELEPHELYID.'>'.__INTEZMENY .', ' . __TANEV.'/'.(__TANEV+1).'</span>'; else echo '<span id="toolBarIntezmeny">'.__INTEZMENY . '/' . __TANEV.'</span>'; |