diff options
author | M.Gergo | 2019-04-14 12:15:49 +0200 |
---|---|---|
committer | M.Gergo | 2019-04-14 12:15:49 +0200 |
commit | 2982e19bfc1c79aa84ad93654a12dee8d61c0e27 (patch) | |
tree | 2a34e0d277e37c0f3d35c4d58c464f9e3030782a /mayor-orig/mayor-naplo/www/skin/classic | |
parent | 78d4c90716008073d654b7c8d311f67367ee3c88 (diff) | |
download | mayor-2982e19bfc1c79aa84ad93654a12dee8d61c0e27.tar.gz mayor-2982e19bfc1c79aa84ad93654a12dee8d61c0e27.zip |
Rev: 4508
Diffstat (limited to 'mayor-orig/mayor-naplo/www/skin/classic')
3 files changed, 32 insertions, 1 deletions
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/haladasi.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/haladasi.css index 4eae0808..f3899611 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/haladasi.css +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/haladasi.css @@ -295,6 +295,18 @@ table.haladasiBejegyzesek tbody tr td.ora a.tankorStat {display:none;} table.haladasiBejegyzesek tbody tr:hover td.ora a.tankorStat { display:inline;} + form.exportForm { text-align: right; width:95%; } + form.exportForm input{ + cursor: pointer; + border: solid 1px #888; + color: #888; + background-color: #eee; + border-radius: 4px; + padding: 2px 4px; + opacity: 0.9; + } + form.exportForm input:hover { color:black; border-color: black; background-color: white; opacity: 1; } + form.exportForm input:active { background-color: cornflowerblue; color:white; } } @media print { table.haladasiBejegyzesek thead tr th { border-bottom: solid 1px black;} diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/haladasi.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/haladasi.phtml index 11c42ede..0638edf6 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/haladasi.phtml +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/haladasi.phtml @@ -1,6 +1,17 @@ <?php global $SZLO; + function putExportForm($ADAT) { + $tankorId = $ADAT['tankorId']; + + formBegin(array('action'=>href('index.php?page=naplo&sub=haladasi&f=haladasi'), 'name'=>'haladasiExport', 'class'=>'exportForm')); + echo '<input type="hidden" name="action" value="haladasiExport" />'."\n"; + echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />'."\n"; + echo '<input type="hidden" name="formatum" value="xml" />'."\n"; + echo '<input type="submit" name="Export" value="Export"/>'."\n"; + formEnd(); + } + function putHaladasiBejegyzesek($ADAT) { global $_TANEV,$SZLO; @@ -19,6 +30,8 @@ if ($tankorId!='') $AKTIV_TH['tankor'] = true; + if ($tankorId!='') putExportForm($ADAT); + $FORM = array('action'=>href('index.php?page=naplo&sub=haladasi&f=haladasi'), 'name'=>'haladasiOrabeiras', 'class'=>'onChangeRequest'); formBegin($FORM); echo '<input type="hidden" name="igDt" value="'._SHOW_DAYS_TO.'" />'."\n"; diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/haladasi.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/haladasi.jquery.min.js index 578a6f0e..68881382 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/haladasi.jquery.min.js +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/haladasi.jquery.min.js @@ -26,6 +26,12 @@ $(function() { /* onload */ if (x.hasClass('gomb DOA')) x.prop('disabled', false); }); + $('.exportForm').click(function(event) { + $('table.haladasiBejegyzesek input[type="text"].data').prop('readonly',true); + $('table.haladasiBejegyzesek input[type="text"].data').prop('disabled',true); + $('table.haladasiBejegyzesek input[type="submit"].gomb').prop('readonly',true); + $('table.haladasiBejegyzesek input[type="submit"].gomb').prop('disabled',true); + }); /* $('body').change(function(event) { var x = $(event.target); // itt kezelhetnénk a haladasi tankorvaltasbol adodo dolgot @@ -49,7 +55,7 @@ $(function() { /* onload */ }); processJSON = function(json) { - console.log(json.toDo); + // console.log(json.toDo); var elementId = "#ORAID_"+json.oraId.toString(); if (json.toDo=='oraElmarad') { |