aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/www/skin
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/mayor-naplo/www/skin')
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/import/tantargyFelosztas.css0
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/import/tantargyFelosztas.phtml139
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/munkakozosseg.phtml3
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/tankorCsoport.phtml31
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/import/tantargyFelosztas.jquery.min.js11
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/munkakozosseg.jquery.min.js15
6 files changed, 199 insertions, 0 deletions
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/import/tantargyFelosztas.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/import/tantargyFelosztas.css
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/import/tantargyFelosztas.css
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/import/tantargyFelosztas.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/import/tantargyFelosztas.phtml
new file mode 100644
index 00000000..3cd8691b
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/import/tantargyFelosztas.phtml
@@ -0,0 +1,139 @@
+<?php
+
+ function putTTFimport($ADAT) {
+ /*
+ formBegin();
+ echo '<input type="hidden" name="action" value="upload" />';
+ echo '<input type="file">';
+ echo '<input type="submit">';
+ formEnd();
+
+ formBegin(array('enctype'=>"multipart/form-data",'class'=>'diak'));
+ echo '<fieldset><legend>'.'</legend>'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />';
+ echo '<input type="hidden" name="action" value="upload" />';
+ echo '<input type="file" name="upfile" />';
+ echo '<input type="submit" class="diakSubmit" value="ok" />';
+ echo '</fieldset>';
+ formEnd();
+ */
+
+ echo '<style type="text/css">
+
+ table.ttf { background-color: #eee;}
+ table.ttf tr.tankorHozzarendel2.exact td { background-color: cornflowerblue}
+ table.ttf tr.tankorHozzarendel td { background-color: yellow}
+ table.ttf tr.tankorHozzarendel2 td { background-color: orange}
+ table.ttf tr.tankorHozzarendel3 td { background-color: #f44336; }
+
+ table.ttf tr.createTankor td { background-color: magenta;}
+ table.ttf tr.done td { background-color: lightgreen;}
+ table.ttf tr td {padding:4px;}
+
+ </style>';
+
+ // FILTEREZÉS
+
+
+
+ formBegin();
+
+ echo '<input type="submit" />';
+ echo '<input type="hidden" name="action" value="do" />';
+ echo '<input type="hidden" name="selectedTanarId" value="'.$ADAT['selectedTanarId'].'" />';
+ echo '<input type="hidden" name="selectedTargyId" value="'.$ADAT['selectedTargyId'].'" />';
+ echo '<table class="ttf" cellspacing="1">';
+
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th>';
+ echo 'Csoportnév';
+ echo '</th>';
+ echo '<th>';
+ echo "Névsor";
+ echo '</th>';
+ echo '<th>';
+ echo '</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th colspan="6">';
+ foreach ( array('tankorHozzarendel','tankorHozzarendel2','tankorHozzarendel3','done','createTankor') as $k => $v) {
+ echo '<input type="checkbox" name="'.$v.'" value="'.$v.'" checked="checked" />';
+ }
+ echo '</th>';
+ echo '</tr>';
+ echo '</thead>';
+
+ for ($i=0; $i<count($ADAT['records']); $i++) {
+ $D = $ADAT['records'][$i];
+ for ($j=0; $j<count($ADAT['szemeszterek']); $j++) {
+ $_oraszamok[] = 'SZ'.$ADAT['szemeszterek'][$j].'='.$D['oraszam'];
+ }
+ $_O = (implode('&',$_oraszamok));
+ $_osztalyok = implode(',',$ADAT['csoportAdat'][$D['csoportNev']]['osztalyok']);
+
+ if (in_array($D['action'],array('tankorHozzarendel','tankorHozzarendel2','tankorHozzarendel3')) && count($D['displayTankor'])==1) {
+ $_class = 'exact';
+ } else {
+ $_class = '';
+ }
+ echo '<tr class="'.$D['action'].' '.$_class.'">';
+ echo '<td>'.$D['csoportNev'].'</td>';
+ echo '<td style="font-size:10px">';
+ echo '<div>';
+ for ($j=0;$j<count($ADAT['csoportAdat'][$D['csoportNev']]['diakNevsor']); $j++) {
+ echo $ADAT['csoportAdat'][$D['csoportNev']]['diakNevsor'][$j];
+ echo '<br/>';
+ }
+ echo '</div>';
+
+ echo '</td>';
+ echo '<td>'.$D[2].' '.'('.$D['targyId'].')</td>';
+ echo '<td>'.$D[3].' '.'</td>';
+ echo '<td class="tanarNev" data-tanarId="'.$D['tanarId'].'">'.$D[4].' ('.$D['tanarId'].')</td>';
+ echo '<td>';
+
+ if (in_array($D['action'],array('tankorHozzarendel','tankorHozzarendel2','tankorHozzarendel3'))) {
+
+
+ echo '<select name="tankor2csoport[]">';
+ echo '<option>--'.$D['action'].'--</option>';
+ for ($j=0; $j<count($D['displayTankor']); $j++) {
+ $_SEL = (count($D['displayTankor'])==1) ? ' selected="selected" ': '';
+ echo '<option value="'.$D['csoportId'].':####:'.$D['tanarId'].':####:'.$D['displayTankor'][$j]['tankorId'].':####:'.$D['oraszam'].'" '.$_SEL.'>'.$D['displayTankor'][$j]['tankorNev'].'</option>';
+ }
+ echo '</select>';
+ echo '<div style="font-size:10px;">';
+ for ($j=0; $j<count($D['displayTankor']); $j++) {
+ $_tankorId = $D['displayTankor'][$j]['tankorId'];
+ $_diffCount = count(array_diff(
+ $ADAT['csoportAdat'][$D['csoportNev']]['diakIds'],
+ $ADAT['tankorDiak'][$_tankorId]
+ ));
+
+ echo '<br/><span class="tankorAdat" data-tankorid="'.$D['displayTankor'][$j]['tankorId'].'">'.$D['displayTankor'][$j]['tankorNev'].'</span>';
+ echo '('.$_tankorId.') tag: '.count($ADAT['tankorDiak'][$_tankorId]);
+
+ echo " -- diff:" .$_diffCount;
+ if ($_diffCount == 0) echo '*******';
+ }
+ echo '</div>';
+ // ha ezt összehasonlítom a mayorban rögzített névsorral, akkor eldönhető lehet, hogy melyik a jó választás!
+ echo ' Új tankör:';
+ echo '<input type="checkbox" name="ujTankor[]" value="'.$D['csoportId'].':####:'.$D['tanarId'].':####:'.$_osztalyok.':####:'.$D['targyId'].'.'.':####:'.$_O.':####:'.$D[1].'" />';
+ } elseif ($D['action'] == 'createTankor') {
+ echo 'Új tankör létrehozása: <input type="text" name="ujTankor[]" value="'.$D['csoportId'].':####:'.$D['tanarId'].':####:'.$_osztalyok.':####:'.$D['targyId'].'.'.':####:'.$_O.':####:'.$D[1].'" />';
+ } else {
+ echo '<div class="tankor tankorAdat tankorNev" data-tankorid="'.$D['tankorId'].'">'.$D['tankorId'].'</div>';
+ }
+
+ echo '</td>';
+ echo '</tr>';
+ }
+ echo '</table>';
+ formEnd();
+
+ }
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/munkakozosseg.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/munkakozosseg.phtml
index b35f799e..2b2c8c9f 100644
--- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/munkakozosseg.phtml
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/munkakozosseg.phtml
@@ -147,6 +147,9 @@
echo '</li><li>';
echo _KIRTARGY.': ';
putKirTargySelect($ADAT['kirTargyak'],$ADAT['targyAdat']['kirTargyId']);
+ echo '</li><li>';
+ echo _TARGY_KRETA_NEV.': <input type="text" maxlength="64" id="kretaTargyNev" name="kretaTargyNev" value="'.$ADAT['targyAdat']['kretaTargyNev'].'"/>'."\n";
+ echo ' <span class="icon-refresh" data-targynev="'.$ADAT['targyAdat']['targyNev'].'"></span>';
echo '</li></ul>';
echo '<input type="submit" value="'._OK.'" />';
formEnd();
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/tankorCsoport.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/tankorCsoport.phtml
index e6bd23f8..dda6a6dc 100644
--- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/tankorCsoport.phtml
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/tanev/tankorCsoport.phtml
@@ -119,4 +119,35 @@
}
+ function putTankorCsoportAdat($ADAT) {
+
+ formBegin(array('class'=>'csoportKereses'));
+
+ echo '<input type="hidden" name="action" value="tankorCsoportokKeresese" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+
+ echo '<table>'."\n";
+ echo '<tr>';
+ echo '<th colspan="2">'._CSOPORTNEV.'</th>';
+ echo '<th>'._TANKOROK.'</th>';
+ echo '</tr>'."\n";
+ foreach ($ADAT['tankorCsoportAdat'] as $csoportId => $TANKORCSOPORT) {
+ echo '<tr>'."\n";
+ echo '<th>'.$TANKORCSOPORT[0]['csoportNev'].'</th>';
+ echo '<th>'.$csoportId.'</th>';
+ echo '<td>';
+ for ($i=0; $i<count($TANKORCSOPORT); $i++) {
+ $D = $TANKORCSOPORT[$i];
+ echo '<span class="tankorAdat" data-tankorid="'.$D['tankorId'].'" style="padding:4px 2px;">'.$D['tankorNev'].'</span>';
+
+ }
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+ echo '</table>'."\n";
+
+ formEnd();
+
+ }
+
?>
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/import/tantargyFelosztas.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/import/tantargyFelosztas.jquery.min.js
new file mode 100644
index 00000000..f1a2f730
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/import/tantargyFelosztas.jquery.min.js
@@ -0,0 +1,11 @@
+
+$(function() {
+ $('table.ttf thead input[type="checkbox"]').bind('click', function(event) {
+ element = $(event.target);
+ // Az összes elem kiválasztása...
+ cls = element.val();
+ $('table.ttf tr.'+element.val()).toggle();
+ });
+});
+
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/munkakozosseg.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/munkakozosseg.jquery.min.js
new file mode 100644
index 00000000..f2d0e6ef
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/munkakozosseg.jquery.min.js
@@ -0,0 +1,15 @@
+
+
+$(function() {
+
+ $('body').click(function(event) {
+
+ element = $(event.target);
+ if (element.hasClass('icon-refresh')) {
+ targyNev=($(element).data('targynev'));
+ $('#kretaTargyNev').val ( targyNev );
+ }
+
+ });
+
+}); \ No newline at end of file