diff options
author | M.Gergo | 2021-05-17 17:50:05 +0200 |
---|---|---|
committer | M.Gergo | 2021-05-17 17:50:05 +0200 |
commit | ef8b3fd973fa34b303370d5acc21744e57bca507 (patch) | |
tree | 67a42f55b0f36f024c33d8892c1112e8c5746556 /mayor-orig/mayor-naplo/www/skin/classic | |
parent | fb24a50c54d5776468e49def08aea44c4077eb47 (diff) | |
download | mayor-ef8b3fd973fa34b303370d5acc21744e57bca507.tar.gz mayor-ef8b3fd973fa34b303370d5acc21744e57bca507.zip |
Rev: 4787rev4787
Diffstat (limited to 'mayor-orig/mayor-naplo/www/skin/classic')
15 files changed, 1036 insertions, 23 deletions
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/dokumentum/dokumentum.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/dokumentum/dokumentum.css new file mode 100644 index 00000000..01db5fb2 --- /dev/null +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/dokumentum/dokumentum.css @@ -0,0 +1,16 @@ + h1.dokumentumLista { text-align:center; } + span.dokumentumMegjegyzes { padding-left: 0.5em; font-size: x-small; } + table.dokumentumLista {margin-top: 2em; margin-bottom:4em; } + table.dokumentumLista thead tr th { background-color: #eee; padding: 10px 10px;} + table.dokumentumLista tbody tr th { background-color: #eee; padding: 10px 10px;} + table.dokumentumLista div.inline-block {display: inline-block; padding:4px 10px;} + table.dokumentumLista tr td a { color: #444; padding-left: 1em;} + table.dokumentumLista tr td:hover a { color: #111; } + table.dokumentumLista tr td a:hover { text-decoration: underline; color: cornflowerblue;} + + table.dokumentumLista tbody tr.private th { background-color: cornflowerblue; color:white; } + table.dokumentumLista tbody tr.private td span.icon-lock { color: cornflowerblue; margin-left: 1em; } + + + table.dokumentumLista tbody tr td span.material-icons { display: inline-block; font-size:12px;padding-right:2px; color: white; } + table.dokumentumLista tbody tr td:hover span.material-icons { display: inline-block; font-size:12px;padding-right:2px; color: #444; } diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/felveteli/szobeli.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/felveteli/szobeli.css new file mode 100644 index 00000000..aedb3e68 --- /dev/null +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/felveteli/szobeli.css @@ -0,0 +1,163 @@ +@media screen { + + table.lekerdezes { + width:320px; + margin-top:20px; + margin-bottom:20px; + background-color: #eeeee0; + color:; + font-size:13px; + } + table.lekerdezes tfoot input { } + table.lekerdezes thead th { + background-color: rgb(245, 223, 77); +#eeeee0; + padding-top:5px; + padding-bottom: 4px; + border-style: none none solid none; + border-width: 1px; + border-color: #aaaaa0; + } + table.lekerdezes tbody th { + padding-left: 10px; + padding-right: 10px; + text-align: right; + font-weight:normal; + } + table.lekerdezes tfoot th { + color: #888880; + } + + #felvierr { margin-left: auto; margin-right:auto; + margin-top:20px; margin-bottom: 50px; + width:300px; + background-color: #770000; + border: solid 1px red; + color: white; + padding:5px; + text-align: center; + } + + #felviinfo { margin-left: auto; margin-right:auto; + margin-top:20px; margin-bottom: 50px; + width:300px; + background-color: cornflowerblue; + border: solid 1px black; + color: white; + padding:5px; + text-align: center; + box-shadow: 2px 2px .1em #ddd; + } + + table.szobeli { + margin-top:10px; margin-bottom: 50px; + width:; + } + table.szobeli thead th { background-color: #eeeee0; + padding-top:5px; + padding-bottom: 4px; + border-style: none none solid none; + border-width: 2px; + border-color: #aaaaa0; + background-color: #9e0059; color:white; + } + table.szobeli tbody th { + padding-left: 10px; + padding-right: 10px; + text-align: left; + border-style: none none solid none; + border-width: 1px; + border-color: #aaaaa0; + + } + table.szobeli tbody td { + text-align: right; + margin-right:10px; + border-style: none none solid none; + border-width: 1px; + border-color: #aaaaa0; + } + table.szobeli tbody th.nincsbehivva { + border-style: none none none solid; + border-width:3px; + border-color:red; + } + table.szobeli tbody th.behivva { + border-style: none none none solid; + border-width:3px; + border-color: #33ff00; + } + + table.felveteliAdatok { + margin-top:10px; margin-bottom: 20px; + min-width:320px; + background-color: #f1faee; + font-size: 13px; +/* background-color:#556670;*/ + background-color: #eeeee0; + + } + table.felveteliAdatok thead th { background-color: #eeeee0; + padding-top:5px; + padding-bottom: 4px; + border-style: none none solid none; + border-width: 1px; + border-color: #aaa; + background-color: #a8dadc; + background-color: #ff0054; + color:white; + background-color: darkcyan; + } + table.felveteliAdatok tfoot th { + background-color: #457b9d; + font-size:10px; + color:white; + text-align:right; + font-weight:normal; + } + table.felveteliAdatok tbody th { + padding-left: 10px; + padding-right: 10px; + text-align: left; + font-weight: normal; + } + table.felveteliAdatok tbody td { + text-align: left; + margin-right:10px; + } + + table.vegeredmeny tr td { + height: 3em; + background-color: #223344; + text-align: center; + } + + + div#felviWait { + padding-top: 5px; + padding-bottom: 5px; + margin:10px auto; + width:300px; + border: solid 2px #667780; + display: none; + } + div#felviWait img { + vertical-align: baseline; + } + + div#tajekoztato { + border: solid 2px #ddd; + background: #eee; + color: black; + width: 600px; + margin: auto; + padding: 20px; + } + + + +} +@media print { + table.szobeli { /*display: none;*/ } + table.lekerdezes { display: none; } +}
\ No newline at end of file diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepzesOraterv.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepzesOraterv.css index 21fb65e4..cbb0f593 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepzesOraterv.css +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/kepzesOraterv.css @@ -60,10 +60,12 @@ width:70px; } +/* form.kepzesOraterv table td input:focus, form.kepzesOraterv table td select:focus { - background-color: rgb(140,160,180); color:white; } - + background-color: rgb(140,160,180); color:white; + } +*/ form.kepzesOraterv table td select option { font-size:smaller;} form.kepzesOraterv table td.lezart input { background-color: black } @@ -97,4 +99,4 @@ */ form#oratervMasolas { background-color: darkorange; width: 98%; margin: auto; text-align: center; padding-bottom: 5px; } - form#oratervMasolas h1 { border-bottom: 2px yellow solid; font-size: 14px; font-weight: bold; background-color: #a40; color: white; padding: 4px; }
\ No newline at end of file + form#oratervMasolas h1 { border-bottom: 2px yellow solid; font-size: 14px; font-weight: bold; background-color: #a40; color: white; padding: 4px; } diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tanar.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tanar.css index 2f80f013..037dd2ee 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tanar.css +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tanar.css @@ -57,4 +57,4 @@ form.tanar input.ajaxRequestDone { color: white; background-color: rgb(0,130,0); } form.tanar select.ajaxRequestDone { color: white; background-color: rgb(0,130,0); } form.tanar input.ajaxRequestError { color: white; background-color: rgb(130,0,0); } - form.tanar select.ajaxRequestError { color: white; background-color: rgb(130,0,0); }
\ No newline at end of file + form.tanar select.ajaxRequestError { color: white; background-color: rgb(130,0,0); } diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tanarok.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tanarok.css new file mode 100644 index 00000000..2d55e18a --- /dev/null +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/intezmeny/tanarok.css @@ -0,0 +1,10 @@ +table.tanarLista {max-width:90%} +table.tanarLista td { vertical-align:top; padding-bottom: 1.1em;} +table.tanarLista span.tanarNev { font-weight: 600; line-height:1.4em; font-size: 14px; color: black;} +table.tanarLista div.titulus { font-size: smaller; color:; /*font-style: italic;*/ font-weight:100;} +table.tanarLista div.besorolas { font-size: smaller; color:#ccc;} +table.tanarLista div.munkakozossegVezeto, +table.tanarLista div.kepesites, +table.tanarLista div.osztalyfonok {color:#aaa; font-size: smaller;} +table.tanarLista div.email, +table.tanarLista div.elerhetoseg { color: #888; font-size:smaller; padding-top:4px;} 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 0c5f7937..5f57ef58 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 @@ -94,7 +94,7 @@ } elseif (isset($params['tipus']) && $params['tipus'] == 'sor') { $sorDb++; } } - if (__PAGE_PRESET===true) { + if (defined('__PAGE_RESET') && __PAGE_PRESET===true) { echo '<th>'; putToolFormStart('preSetSave', ''); diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/dokumentum/dokumentum.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/dokumentum/dokumentum.phtml new file mode 100644 index 00000000..5284321d --- /dev/null +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/dokumentum/dokumentum.phtml @@ -0,0 +1,149 @@ +<?php + + function putDokumentumAdmin($ADAT) { + formBegin(); + echo '<input type="hidden" name="action" value="addDokumentum">'; + + echo '<table align="center" class="dokumentumLista">'; + echo '<tr><th colspan="2">'; + echo 'Új dokumentum</th><td></tr>'; + echo '<tr>'; + echo '<th>Sorrend:</th>'; + echo '<td><input type="text" id="frm_dokumentumSorrend" name="dokumentumSorrend" value="'.(count($ADAT)+1).'" size="3" /></td>'; + echo '</tr>'; + echo '<tr>'; + echo '<th>Leírás:</th>'; + echo '<td><input type="text" id="frm_dokumentumLeiras" name="dokumentumLeiras" placeholder="Szervezeti és Működési Szabályzat" size="60" /></td>'; + echo '</tr>'; + echo '<tr>'; + echo '<th>Link szöveg:</th>'; + echo '<td><input type="text" id="frm_dokumentumRovidLeiras" name="dokumentumRovidLeiras" placeholder="SzMSz" size="60" /></td>'; + echo '</tr>'; + echo '<tr>'; + echo '<th>Url:</th>'; + echo '<td><input type="text" id="frm_dokumentumUrl" name="dokumentumUrl" placeholder="https://mayor.edu.hu/doksi/meno_tanmenet.pdf" size="100" /></td>'; + echo '</tr>'; + echo '<tr>'; + echo '<th>Megjegyzés a link mögött:</th>'; + echo '<td><input type="text" id="frm_dokumentumMegjegyzes" name="dokumentumMegjegyzes" placeholder="kiadás: 2021. május 8." size="10" /></td>'; + echo '</tr>'; + echo '<tr>'; + echo '<th>Láthatóság:</th>'; + echo '<td>'; + echo '<div class="inline-block">'; + echo '<input type="radio" name="dokumentumTipus" value="general" id="dokumentumTipus_general" /><label for="dokumentumTipus_general">általános/állandó</label>'; + echo '<input type="radio" name="dokumentumTipus" value="tanev" id="dokumentumTipus_tanev" checked="checked" /><label for="dokumentumTipus_tanev">tanév/éves</label>'; + echo '</div>'; + echo '<div class="inline-block">'; + echo '<input type="radio" name="dokumentumPolicy" value="public" id="dokumentumPolicy_public" checked="checked" /><label for="dokumentumPolicy_public">publikus</label>'; + echo '<input type="radio" name="dokumentumPolicy" value="private" id="dokumentumPolicy_private" /><label for="dokumentumPolicy_private">privát</label>'; + echo '</div>'; + echo '</td>'; + echo '</td>'; + echo '</td></tr>'; + echo '<tr><th colspan="2">'; + echo '<input type="submit">'; + echo '</td></tr>'; + echo '</table>'; + + formEnd(); + } + + + function putDokumentumListaAdmin($ADAT, $admin=false) { + + if ($admin===true) { + formBegin(); + echo '<input type="hidden" name="action" value="delDokumentum">'; + } + echo '<h1 class="dokumentumLista">Adminisztráció</h1>'; + echo '<table class="dokumentumLista" align="center" cellspacing="1">'; + // echo '<thead><tr><th colspan="2">'.'</th></tr></thead>'; + if ($admin===true) { + echo '<tfoot><tr><th colspan="6" style="text-align:right">'; + echo '<input type="submit">'; + echo '</th></tr></thead>'; + } + echo '<tbody>'; + for ($i=0; $i<count($ADAT); $i++) { + $D = $ADAT[$i]; + echo '<tr>'; + echo '<th>'; + echo $D['dokumentumId']; + echo '</th>'; + echo '<td>'; + echo $D['dokumentumDt']; + echo '</td>'; + echo '<th>'; + echo $D['dokumentumLeiras']; + echo '</th>'; + echo '<td>'; + echo '<a href="'.($D['dokumentumUrl']).'" target="_blank">'; + echo '<span class="material-icons" style="">'; + if (stristr($D['dokumentumUrl'],'.pdf')!==false) echo 'picture_as_pdf'; + elseif (stristr($D['dokumentumUrl'],'.htm')!==false) echo 'integration_instructions'; + else echo 'open_in_new'; + echo '</span>'; + + echo htmlspecialchars($D['dokumentumRovidLeiras']); + echo '</a>'; + if ($D['dokumentumMegjegyzes']!='') echo '<span class="dokumentumMegjegyzes">('.$D['dokumentumMegjegyzes'].')</span>'; + + + echo '</td>'; + if ($admin===true) { + echo '<th>'.$D['dokumentumTipus'].'</th>'; + echo '<th>'.$D['dokumentumPolicy'].'</th>'; + echo '<th>'.$D['dokumentumSorrend'].'</th>'; + echo '<td><input type="checkbox" name="dokumentumId[]" value="'.$D['dokumentumId'].'" /></td>'; + } + echo '</tr>'; + } + echo '</tbody>'; + echo '</table>'; + if ($admin===true) { + formEnd(); + } + + } + + + function putDokumentumLista($ADAT, $admin=false) { + global $policy; + echo '<h1 class="dokumentumLista">Dokumentumok</h1>'; + echo '<table class="dokumentumLista" align="center" cellspacing="1">'; + echo '<tbody>'; + if (is_array($ADAT)) foreach($ADAT as $tipus=>$DAT) + if (is_array($DAT)) foreach($DAT as $tanev=>$AT) { + echo '<tr>'; + echo '<th colspan="2">'; + if ($tipus=='general') echo 'Általános dokumentumok'; + else echo $tanev.'/'.($tanev+1); + echo '</th>'; + echo '</tr>'; + for ($i=0; $i<count($AT); $i++) { + $D = $AT[$i]; + if ($policy=='public' && $D['dokumentumPolicy']!='public') continue; + echo '<tr class="'.$D['dokumentumTipus'].' '.$D['dokumentumPolicy'].'">'; + echo '<th>'; + echo $D['dokumentumLeiras']; + echo '</th>'; + echo '<td>'; + echo '<a href="'.($D['dokumentumUrl']).'" target="_blank">'; + echo htmlspecialchars($D['dokumentumRovidLeiras']); + // echo '<span class="icon-download"></span> '; + echo '</a>'; + if ($D['dokumentumMegjegyzes']!='') echo '<span class="dokumentumMegjegyzes">('.$D['dokumentumMegjegyzes'].')</span>'; + if ($D['dokumentumPolicy']=='private') echo '<span class="icon-lock"></span>'; + echo '</td>'; + echo '</tr>'; + } + + } + echo '</tbody>'; + echo '</table>'; + + } + + +?>
\ No newline at end of file diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/felveteli/szobeli.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/felveteli/szobeli.phtml new file mode 100644 index 00000000..38b00a89 --- /dev/null +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/felveteli/szobeli.phtml @@ -0,0 +1,521 @@ +<?php + + + function putEredmenyKereso($nev,$diak,$oId) { + + global $ADAT; + if (_SZOBELI_LEKERDEZHETO==false) { + echo '<div align="center" style="margin:100px;border: solid 2px #aabbc0; background-color:darkcyan;color:white; padding:12px;"> + <span class="icon-info-sign"></span> + A lekérdezés ebben az időszakban nem aktív, kérjük látogasson vissza '; + if ($ADAT['szobeliPublikalasDt']!='') { + echo date('Y. M. d. H:i:s',strtotime($ADAT['szobeliPublikalasDt']));echo '-kor!'; + } else { + echo 'később!'; + } + echo '</div>'; + } + + if (_SZOBELI_LEKERDEZHETO===false) { + return; + $_DIS = 'disabled="disabled" readonly="readonly"'; + } + //echo '<form id="fform" name="fform" method="post" action="" onsubmit="xt=document.fform.gomb;xt.value=\''._PLEASE_WAIT.'\';xt.disabled=true">'."\n"; + echo formBegin(array('id'=>'fform', 'name'=>'fform')); + echo '<input type="hidden" name="action" id="action" value="szobeliLekerdezes" />'; + echo '<table align="center" class="lekerdezes">'; + echo '<thead><tr><th colspan="2">'; + echo _LEKERDEZES; + if (__FELVETELIADMIN===true) { + echo ' - ADMIN'; + } + echo '</th></tr></thead>'."\n"; + echo '<tfoot>'; + echo '<tr><th colspan="2">'; + echo '<input type="submit" id="gomb" value="'._LEKERDEZ.'" '.$_DIS.' />'; + echo '</th></tr>'; + echo '<tr><th colspan="2">'; + //echo _BEHIVOTTAK.': '.date('Y. M. d. H:i:s',strtotime(_BEHIVOTTAK_PUBLIKALAS_DT)); + echo '</th></tr>'; + echo '</tfoot>'."\n"; + echo '<tbody>'; + echo '<tr>'; + echo '<th><label for="nev">'._NEV_JELIGE.'</label></th>'."\n"; + echo '<td>'; + echo '<input type="text" name="nev" id="nev" value="'.$nev.'" '.$_DIS.' placeholder="Gipsz Jakab Samu" />'; + echo '</td>'."\n"; + echo '</tr><tr>'; + echo '<th><label for="oId">'._OID.'</label></th>'."\n"; + echo '<td>'; + echo '<input type="text" name="oId" size="11" id="oId" value="' . $oId .'" '.$_DIS.' placeholder="7xxxxxxxxxx" />'; + echo '</td>'."\n"; + echo '</tr>'; + echo '</tbody>'; + echo '</table>'; + formEnd(); + } + + function putFelvetelizoAdatok($DATA) { + + if (__FELVETELIADMIN===true) { + formBegin(); + echo '<input type="hidden" name="action" value="modositas" />'; + } + if (__FELVETELIADMIN===true) { + echo '<input type="hidden" name="_nev" value="'.$DATA['nev'].'" />'; + echo '<input type="hidden" name="_oId" value="'.$DATA['oId'].'" />'; + } + + echo '<table align="center" class="felveteliAdatok" cellspacing="1" cellpadding="1" >'; + echo '<thead><tr><th colspan="3">'._ADATOK.' – '.$DATA['oId'].'</th></tr></thead>'."\n"; + echo '<tfoot><tr><th colspan="3">'; + if (__FELVETELIADMIN===true) { + echo '<input type="submit"> '; + } + echo _LEKERDEZES_DT.' '.date('Y.m.d. H:i:s'); + echo '</th></tr></tfoot>'."\n"; + echo '<tbody>'; + + if (__FELVETELIADMIN===true) { + echo '<th colspan="2">'; + echo '<div style="background-color: #f06; color:white; ">'; + echo '<input type="checkbox" name="diakTorol" value="1" />'; + echo 'Felvételiző diák és minden adatának törlése '; + echo '<span class="icon-exclamation-sign"></span>'; + echo '</div>'; + echo '</th>'; + } + + + echo '<tr>'; + echo '<th>'._NEV.'</th>'."\n"; + echo '<td colspan="2">'; + if (__FELVETELIADMIN===true) { + echo '<input type="text" name="nev" value="'.$DATA['nev'].'" />'; + } else { + echo $DATA['nev']; + } + echo '</td>'."\n"; + echo '</tr>'; + + if (__FELVETELIADMIN===true) { + echo '<tr>'; + echo '<th>Oktatási Azonosító:</th>'."\n"; + echo '<td colspan="2">'; + echo '<input type="text" name="oId" value="'.$DATA['oId'].'" />'; + echo '</td>'."\n"; + echo '</tr>'; + } + echo '<tr>'; + echo '<th>'._SZULETETT.'</th>'."\n"; + echo '<td colspan="2">'; + if (__FELVETELIADMIN===true) { + echo '<input type="text" name="szuldt" value="'.$DATA['szuldt'].'" />'; + } else { + echo $DATA['szuldt']; + } + echo '</td>'."\n"; + echo '</tr>'; + + echo '<tr>'; + echo '<th>'._AN.'</th>'."\n"; + echo '<td colspan="2">'; + if (__FELVETELIADMIN===true) { + echo '<input type="text" name="an" value="'.$DATA['an'].'" />'; + } else { + echo $DATA['an']; + } + echo '</td>'."\n"; + echo '</tr>'; + // if ($DATA['lakcim_telepules']!='') { + echo '<tr>'; + echo '<th>'._CIM.'</th>'."\n"; + echo '<td colspan="2">'; + if (__FELVETELIADMIN===true) { + echo '<input type="text" name="lakcim_irsz" size="4" value="'.$DATA['lakcim_irsz'].'" />'; + echo '<input type="text" name="lakcim_telepules" size="10" value="'.$DATA['lakcim_telepules'].'" />'; + echo '<input type="text" name="lakcim_utcahazszam" value="'.$DATA['lakcim_utcahazszam'].'" />'; + } else { + echo $DATA['lakcim_irsz'].' '.$DATA['lakcim_telepules'].', '.$DATA['lakcim_utcahazszam']; + // echo $DATA['lakcim_utcahazszam']; + } + echo '</td>'."\n"; + echo '</tr>'; + // } + // if ($DATA['tartozkodasi_telepules']!='') { + echo '<tr>'; + echo '<th>'._ERTESITESI_CIM.'</th>'."\n"; + echo '<td colspan="2">'; + if (__FELVETELIADMIN===true) { + echo '<input type="text" name="tartozkodasi_irsz" size="4" value="'.$DATA['tartozkodasi_irsz'].'" />'; + echo '<input type="text" name="tartozkodasi_telepules" size="10" value="'.$DATA['tartozkodasi_telepules'].'" />'; + echo '<input type="text" name="tartozkodasi_utcahazszam" value="'.$DATA['tartozkodasi_utcahazszam'].'" />'; + } else { + echo $DATA['tartozkodasi_irsz'].' '.$DATA['tartozkodasi_telepules'].', '.$DATA['tartozkodasi_utcahazszam']; + //echo $DATA['tartozkodasi_utcahazszam']; + } + echo '</td>'."\n"; + echo '</tr>'; + // } + echo '<tr>'; + echo '<th>Iskola OM kódja:</th>'."\n"; + echo '<td colspan="2">'; + if (__FELVETELIADMIN===true) { + echo '<input type="text" name="omkod" value="'.$DATA['omkod'].'" />'; + } else { + echo $DATA['omkod']; + } + echo '</td>'."\n"; + + echo '</tr>'; + if (is_array($DATA['iskolaAdat']) && $DATA['iskolaAdat']['nev'] != '') { + echo '<tr>'; + echo '<th>Iskola adatai:</th>'."\n"; + echo '<td colspan="2">'.$DATA['iskolaAdat']['nev'].', '.$DATA['iskolaAdat']['telepules'].'</td>'."\n"; + echo '</tr>'; + } + + + echo '<tr>'; + echo '<th>'._ATLAG.'</th>'."\n"; + echo '<td colspan="2">'; + if (__FELVETELIADMIN===true) { + echo '<input type="text" name="atlag" value="'.$DATA['atlag'].'" />'; + } else { + if ($DATA['atlag']>0) echo $DATA['atlag']; else echo '-'; + } + echo '</td>'."\n"; + + echo '</tr>'; + echo '<tr>'; + echo '<th>'._IRASBELI.' eredmény (magyar):</th>'."\n"; + echo '<td colspan="2">'; + if (__FELVETELIADMIN===true) { + echo '<input type="text" name="magyar" size="4" value="'.$DATA['magyar'].'" />'; + } else { + if ($DATA['magyar']>0) { + echo $DATA['magyar']; + } + } + echo ' pont'; + echo '</td>'."\n"; + echo '</tr>'; + echo '<tr>'; + echo '<th>'._IRASBELI.' eredmény (matematika):</th>'."\n"; + echo '<td colspan="2">'; + if (__FELVETELIADMIN===true) { + echo '<input type="text" name="matek" size="4" value="'.$DATA['matek'].'" />'; + } else { + if ($DATA['matek']>0) { + echo $DATA['matek']; + } + } + echo ' pont'; + echo '</td>'."\n"; + echo '</tr>'; + echo '<tr>'; + echo '<th>Hozott pont:</th>'."\n"; + echo '<td colspan="2">'; + if (__FELVETELIADMIN===true) { + echo '<input type="text" name="pont" size="4" value="'.$DATA['pont'].'" />'; + } else { + if ($DATA['pont']==floor($DATA['pont'])) { + list($a,$b) = explode('.',$DATA['pont']); + echo $a; + } else { + echo $DATA['pont']; + } + } + echo ' pont'; + echo '</td>'."\n"; + echo '</tr>'; + + if ($DATA['pontsum']!='' && $DATA['pontsum']!=0) { + echo '<tr>'; + echo '<th>Eddig elért pontszám:</th>'."\n"; + echo '<td>'.($DATA['pontsum']).'</td>'."\n"; + echo '</tr>'; + } + if (is_array($DATA['jelentkezes']) && count($DATA['jelentkezes'])>=0) { + echo '<tr>'; + echo '<th>Jelentkezett:</th>'."\n"; + echo '<td>'; + if (__FELVETELIADMIN!==true) { + echo '<table cellspacing="1">'; + for ($t=0; $t<count($DATA['jelentkezes']); $t++) { + echo '<tr style="height:2em; line-height:1.4em;">'; + echo '<td>'; + echo $DATA['jelentkezes'][$t]['tagozatNev']; + echo ' ('.$DATA['jelentkezes'][$t]['tagozat'].')'; + echo '</td>'; + if ($DATA['jelentkezes'][$t]['ideiglenesRangsor']>0) { + echo '<td style="background-color: #9e0059; color:white; padding: 4px 10px;">'; + echo $DATA['jelentkezes'][$t]['ideiglenesRangsor'].'. hely'; + echo '</td>'; + } + echo '</tr>'; + } + echo '</table>'; + } else { + for ($t=0; $t<count($DATA['jelentkezes']); $t++) { + $JEL[$DATA['jelentkezes'][$t]['tagozat']] = true; + $JEL_IDEIG[$DATA['jelentkezes'][$t]['tagozat']] = $DATA['jelentkezes'][$t]['ideiglenesRangsor']; + } + echo '<table cellspacing="1">'; + for ($t=0; $t<count($DATA['tagozat']); $t++) { + $_tagozat = $DATA['tagozat'][$t]['tagozat']; + $_CHK = ($JEL[$_tagozat]===true) ? 'checked="checked"':''; + echo '<tr>'; + echo '<td>'; + echo '<label for="T_'.$_tagozat.'">'.$DATA['tagozat'][$t]['tagozatNev'].'</label>'; + echo '</td>'; + echo '<td>'; + echo '<input type="checkbox" id="T_'.$_tagozat.'" name="jelentkezesTagozat[]" value="'.$_tagozat.'" '.$_CHK.'/>'; + echo '</td>'; + if ($JEL_IDEIG[$_tagozat]>0) { + echo '<td style="background-color: #9e0059; color:white; padding: 4px 10px;">'; + echo $JEL_IDEIG[$_tagozat].'. hely'; + echo '</td>'; + } + echo '</tr>'; + } + echo '</table>'; + + } + echo '</td>'."\n"; + echo '</tr>'; + } + + if ($DATA['jelenleg']!='') { + echo '<tr>'; + echo '<th>Jelenleg:</th>'."\n"; + echo '<td>'.$DATA['jelenleg'].'</td>'."\n"; + echo '</tr>'; + } + if ($DATA['joslat']!='' && $DATA['vegeredmeny']=='') { + echo '<tr style="background-color: cornflowerblue; height: 4em; color:white;">'; + echo '<th>Jóslat:</th>'."\n"; + echo '<td colspan="1" style="text-align:center; font-style:italic">'.$DATA['joslat'].'</td>'."\n"; + echo '</tr>'; + } + + if ($DATA['vegeredmeny']!='') { + echo '<tr style="background-color:#448877; color:white; height: 4em;">'; + echo '<th>Végeredmény:</th>'."\n"; + echo '<td style="text-align:center">'.$DATA['vegeredmeny'].'</td>'."\n"; + echo '</tr>'; + } + + echo '</tbody>'; + echo '</table>'; + + if (__FELVETELIADMIN===true) { + formEnd(); + } + + + } + + function putSzobeli($ADAT) { + + $DATA = $ADAT['szobeli']; + if ($DATA==false) { + echo '<div align="center" id="felviinfo">'; + echo _HIANYOS_SZOBELI_ADAT; + echo '</div>'; + } elseif ($DATA == 'multi') { + echo '<div align="center" id="felvierr">'; + echo _MULTI_USER; + echo '</div>'; + } elseif (is_array($DATA)) { + + if (__FELVETELIADMIN===true) { + formBegin(); + echo '<input type="hidden" name="action" value="szobeliModositas" />'; + echo '<input type="hidden" name="nev" value="'.$ADAT['nev'].'" />'; + echo '<input type="hidden" name="oId" value="'.$ADAT['oId'].'" />'; + } + + echo '<table align="center" class="szobeli">'; + echo '<thead><tr><th colspan="4">Szóbeli időpontok</th></tr></thead>'."\n"; + echo '<tfoot><tr><td colspan="4" style="font-size:x-small; color:white;text-align:right;">'; + +/* + if (defined('SZOBELI_EREDMENY_PLACEHOLDER')===true) { + // echo SZOBELI_EREDMENY_PLACEHOLDER; + } +*/ + echo '</td></tr></tfoot>'."\n"; + echo '<tbody>'; + + if (!is_array($DATA) || count($DATA)==0) { + echo '<tr>'; + echo '<td colspan="2">'; + echo '</td></tr>'; + } + + for($i=0; $i<count($DATA); $i++) { + $D = $DATA[$i]; + if ($D['szobeliTipus'] == 'elutasítás') $_class='nincsbehivva'; + else $_class='behivva'; + echo '<tr>'; + echo '<th class="'.$_class.'">'.$D['tagozatNev'].'</th>'."\n"; + echo '<td>'; + //echo $D['pont'].' pont'; + //echo '<br />'.$D['rangsor'].'. hely'; + echo '</td>'; + echo '<td>'; + if ($D['szobeliTipus'] == 'szóbeli nélküli ajánlat') { + echo '<p style="text-align: justify; font-style:italic">'; + echo $D['szobeliNelkulAjanlat']; + echo '</p>'; + } elseif ($D['szobeliTipus'] == 'elutasítás') { + echo '<p style="text-align: justify; font-style:italic">'; + if ($D['szobeliElutasito']!='') echo $D['szobeliElutasito']; + else echo 'Sajnos nem hívjuk szóbelire.'; + echo '</p>'; + } else { + + echo $D['bizottsag'].'. bizottság '; + if ($D['szoveg']!='') echo ' ('.$D['szoveg'].')'; + echo '<br/>'; + echo $D['napdt'].' ('.$D['nap'].') '; + echo substr($D['ido'],0,-3); + + if ($D['szobeliMegjegyzes']!='') { + echo '<p style="border-top:dotted 1px #ffffff; margin:0px; width:100%; text-align: justify; font-style:italic; font-size:x-small">'.$D['szobeliMegjegyzes'].'</p>'; + } + + } + echo '</td>'."\n"; + if (__FELVETELIADMIN===true) { + echo '<td>'; + echo '<input type="text" placeholder="pontszám" name="szobelipont_'.$D['felveteliSzobeliId'].'" value="'.$D['szobelipont'].'" />'; + echo '</td>'; + echo '<td>'; + echo '<div style="background-color: #f06; color:white;">Törlés!: <input type="checkbox" name="felveteliSzobeliId" value="'.$D['felveteliSzobeliId'].'" /></div>'; + echo '<input type="submit"/>'; + echo '</td>'; + } else { + echo '<td>'; + if ($D['szobelipont']>0) { + echo $D['szobelipont'].' pont'; + } + echo '</td>'; + } + echo '</tr>'; + } + echo '</tbody>'; + echo '</table>'; + + if (__FELVETELIADMIN===true) { + formEnd(); + } + } else {} + + putUjSzobeli($ADAT); + + + } + + function putFelveteliError($nev, $oId) { + if (__FELVETELIADMIN===true) { + echo '<div align="center" id="felviplusz">'; + formBegin(); + echo 'Új felvételiző felvétele: '; + echo '<input type="hidden" name="action" value="ujFelveteli" />'; + echo '<input type="text" name="_nev" value="'.$nev.'" placeholder="Gipsz Rozi" />'; + echo '<input type="text" name="_oId" value="'.$oId.'" placeholder="7xxxxxxxxxx"/>'; + echo '<input type="submit" />'; + formEnd(); + echo '</div>'."\n"; + } + echo '<div align="center" id="felvierr">'; + echo _HIBAS_HIANYOS_ADAT; + echo '</div>'; + } + + function putUjSzobeli($ADAT) { + + if (__FELVETELIADMIN!==true) return; + + if (count($ADAT['jelentkezes'])==0) { + echo '<div align="center" class="felvierr">Szóbeli nem vehető fel, mert nincs jelentkezés rögzítve a felvételiző diákhoz!</div>'; + return true; + } + + formBegin(); + echo '<table align="center" class="szobeli">'; + echo '<thead><tr><th>Új szóbeli időpont felvétele</th></tr></thead>'; + echo '<tfoot><tr><th></th></tr></tfoot>'; + echo '<tr><td>'; + echo '<input type="hidden" name="action" value="ujSzobeli" />'; + + echo '<input type="hidden" name="oId" size="11" id="oId" value="' . $ADAT['oId'] .'" readonly="readonly" placeholder="7xxxxxxxxxx" />'; + echo '<input type="hidden" name="nev" size="20" id="nev" value="' . $ADAT['nev'] .'" readonly="readonly"/>'; + echo '<input type="text" name="bizottsag" id="bizottsag" value="" placeholder="bizottság" />'; + echo '<br/><input type="text" name="nap" id="nap" value="" placeholder="nap szövegesen" />'; + echo '<br/><input type="text" name="napdt" id="napdt" value="" placeholder="ÉÉÉÉ-HH-NN" class="datepicker" />'; + echo '<br/><input type="text" name="ido" id="ido" value="" placeholder="ÓÓ:PP:MM" />'; + echo '<br/><input type="text" name="szoveg" id="szoveg" value="" placeholder="szabad szöveg" />'; + + echo '<br/><select name="tagozat">'; + echo '<option value=""></option>'; + for ($i=0; $i<count($ADAT['jelentkezes']); $i++) { + echo '<option value="'.$ADAT['jelentkezes'][$i]['tagozat'].'">'.$ADAT['jelentkezes'][$i]['tagozatNev'].' ('.$ADAT['jelentkezes'][$i]['tagozat'].')</option>'; + } + echo '</select>'; + $szobeliTipus = array('szóbeli','szóbeli nélküli ajánlat','elutasítás'); + echo '<select name="szobeliTipus">'; + for ($i=0; $i<count($szobeliTipus); $i++) { + echo '<option value="'.$szobeliTipus[$i].'">'.$szobeliTipus[$i].'</option>'; + } + echo '</select>'; + echo '<input type="submit">'; + echo '</td></tr>'; + echo '</table>'; + formEnd(); + } + + + function putVegeredmeny($DATA) { + + echo '<style type="text/css" > + + table.vegeredmeny tr td { + height: 3em; + background-color: #223344; + color:white; + text-align: center; + font-size:14px; + } + table.vegeredmeny tr td a { color:white; } + + div#felviWait { + padding-top: 5px; + padding-bottom: 5px; + margin:10px auto; + width:300px; + border: solid 2px #667780; + display: none; + } + div#felviWait img { + vertical-align: baseline; + } +</style>'; + + echo '<table align="center" class="felveteliAdatok vegeredmeny">'; + echo '<thead><tr><th>'._EREDMENY.'</th></tr></thead>'."\n"; + echo '<tfoot><tr><th>'.date('Y.m.d. H:i:s').'</th></tr></thead>'."\n"; + echo '<tbody>'; + echo '<tr>'; + echo '<td>'.$DATA['vegeredmeny'].'</td>'."\n"; + echo '</tr>'; + echo '<tr><td id="download">'; + echo '<span class="icon-download-alt"></span> '; + echo '<a href="'.href('index.php?page=naplo&sub=felveteli&f=level&token='.$DATA['token']).'">Hivatalos értesítő letöltése</a> (.pdf)'; + echo '</td></tr>'; + echo '</tbody></table>'; + } + +?> diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/kepzesOraterv.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/kepzesOraterv.phtml index fb10c6c4..485438a3 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/kepzesOraterv.phtml +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/kepzesOraterv.phtml @@ -68,6 +68,7 @@ formBegin(array('name'=>'kepzesOraterv','class'=>'kepzesOraterv')); echo '<input type="hidden" name="kepzesId" value="'.$kepzesId.'" />'; echo '<input type="hidden" name="action" value="do" />'; + echo '<input type="hidden" name="isAdmin" id="isAdmin" value="'.intval(__NAPLOADMIN===true).'" data-isadmin="'.intval(__NAPLOADMIN===true).'" />'; echo '<table align="center" cellspacing="1">'; echo '<thead>'; @@ -117,6 +118,8 @@ } echo '<th> </th>'; echo '</tr>'; + + if (__NAPLOADMIN===true) { // EGY UJ: echo '<tr class="ures">'; echo '<th>'; @@ -141,6 +144,7 @@ echo '</th>'; echo '</tr>'; // -- idáig EGY UJ + } echo '</tfoot>'."\n"; @@ -211,9 +215,10 @@ echo '</td>'; } echo '<th>'; - echo '<input type="submit" value="'._OK.'" class="felvesz" />'; - echo '<input type="submit" name="torol_'._escape($tipus).'_'.$targyId.'" value="X" class="torol" />'; - + if (__NAPLOADMIN===true) { + echo '<input type="submit" value="'._OK.'" class="felvesz" />'; + echo '<input type="submit" name="torol_'._escape($tipus).'_'.$targyId.'" value="X" class="torol" />'; + } echo '</th>'; echo '</tr>'."\n"; // -- idáig TOMEG diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tanar.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tanar.phtml index 563f2bd6..3018e222 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tanar.phtml +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tanar.phtml @@ -115,6 +115,14 @@ echo '</tr>'; echo '<tr>'; echo '<th>'."\n"; + echo '<label for="elerhetoseg">'._ELERHETOSEG.'</label>'."\n"; + echo '</th>'."\n"; + echo '<td colspan="4">'."\n"; + echo '<input type="text" size="64" id="elerhetoseg" name="elerhetoseg" value="'.$ADAT['tanarAdat']['elerhetoseg'].'" />'; + echo '</td>'."\n"; + echo '</tr>'; + echo '<tr>'; + echo '<th>'."\n"; echo '<label for="">'._KRETANEV.'</label>'."\n"; echo '</th>'."\n"; echo '<td colspan="4">'."\n"; diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tanarok.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tanarok.phtml new file mode 100644 index 00000000..40ee0453 --- /dev/null +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/intezmeny/tanarok.phtml @@ -0,0 +1,123 @@ +<?php + +function putTanarLista($ADAT) { + + $cols=2; + + echo '<table class="tanarLista" align="center" cellpadding="1" cellspacing="1">'; + echo '<tr>'; + for($i=0; $i<count($ADAT['tanarok']); $i++) { + $T = $ADAT['tanarok'][$i]; + echo '<td>'; + putFace($T['tanarId'],'tanar',0); + echo '</td><td>'; + echo '<span class="tanarNev" data-tanarid="'.$T['tanarId'].'">'.$T['tanarNev'].'</span>'; + if ($T['titulus']!='') echo '<div class="titulus">'.$T['titulus'].'</div>'; + if ($T['statusz']=='külső óraadó') echo '<div class="titulus">'.$T['statusz'].'</div>'; + if ($T['besorolas']=='Gyakornok') echo '<div class="titulus">'.lcfirst($T['besorolas']).'</div>'; + elseif ($T['besorolas']=='Mesterpedagógus') echo '<div class="titulus">'.lcfirst($T['besorolas']).'</div>'; + elseif ($T['besorolas']=='Pedagógus I.') echo '<div class="titulus">'.lcfirst($T['besorolas']).'</div>'; + elseif ($T['besorolas']=='Pedagógus II.') echo '<div class="titulus">'.lcfirst($T['besorolas']).'</div>'; +// else echo '<div class="titulus">'.lcfirst($T['besorolas']).'</div>'."\n"; + + $osztalyai = ($ADAT[$T['tanarId']]['osztalyfonok']); + for ($j=0; $j<count($osztalyai); $j++) { + $_osztalyId = $osztalyai[$j]; + if ($ADAT['osztalyok'][$_osztalyId]['leiras']!='') { + echo '<div class="osztalyfonok">osztályfőnök '.$ADAT['osztalyok'][$_osztalyId]['osztalyJel']; + echo ' ('.$ADAT['osztalyok'][$_osztalyId]['leiras'].')'; + echo '</div>'; + } + } + $munkakozossegei = ($ADAT[$T['tanarId']]['mkVez']); // vezetett + for ($j=0; $j<count($munkakozossegei); $j++) { + $_mkId = $munkakozossegei[$j]; + echo '<div class="munkakozossegVezeto">'; + echo $munkakozossegei[$j]['munkakozossegNev']. ' munkaközösség-vezető'; + echo '</div>'; + } + + $kepesitesei = $ADAT[$T['tanarId']]['kepesites']; + if (count($kepesitesei)>0) { + echo '<div class="kepesites">'; + for ($j=0; $j<count($kepesitesei); $j++) { + $_k = $kepesitesei[$j]; +// echo ' '.$ADAT['targyak'][$_targyId][0]['targyNev'].' '; + echo ''.$kepesitesei[$j]['kepesitesNev']; + if ($j+1<count($kepesitesei)) echo '<br/>'; + } + echo '</div>'; + } + + $munkakozossegei = ($ADAT[$T['tanarId']]['munkakozosseg']); + echo '<div class="munkakozossegVezeto">'; + $_MKNEV = array(); + for ($j=0; $j<count($munkakozossegei); $j++) { + $_mkId = $munkakozossegei[$j]; + $_MKNEV[] = $munkakozossegei[$j]['munkakozossegNev']; + } + echo implode(', ',$_MKNEV).' munkaközösségi tag'; + echo '</div>'; + + if ($T['elerhetoseg']!='') echo '<div class="elerhetoseg"><span class="icon-phone" style="padding-right:0.4em"></span>'.$T['elerhetoseg'].'</div>'; + if ($T['email']!='') echo '<div class="email"><span class="icon-envelope" style="padding-right:0.4em"></span>'.$T['email'].'</div>'; + + echo '</td>'; + if (($i+1) % $cols == 0 && $i!=count($ADAT['tanarok'])-1) echo '</tr><tr>'; + } + echo '</tr>'; + echo '</table>'; +} + +/* +function putIntezmenyValaszto($Intezmenyek) { + + formBegin(); + + echo '<input type="hidden" name="action" value="intezmenyValasztas" />'."\n"; + + echo '<select name="intezmeny">'."\n"; + $SEL = array(__INTEZMENY => ' selected="selected"'); + + for ($i = 0; $i < count($Intezmenyek); $i++) { + + $rovidnev = $Intezmenyek[$i]['rovidNev']; + if ($Intezmenyek[$i]['alapertelmezett'] == 1) + echo '<option value="'.$rovidnev.'" class="default"'.$SEL[$rovidnev].'>'; + else + echo '<option value="'.$rovidnev.'"'.$SEL[$rovidnev].'>'; + + echo $Intezmenyek[$i]['nev'].' ('.$Intezmenyek[$i]['OMKod'].')'; + echo '</option>'."\n"; + + } + + echo '</select>'."\n"; + + echo '<input type="submit" value="'._OK.'" />'."\n"; + + formEnd(); + +} + +function putTanevValaszto($Tanevek) { + + formBegin(); + + echo '<input type="hidden" name="action" value="tanevValasztas" />'."\n"; + + echo '<select name="tanev">'."\n"; + $SEL = array(__TANEV => ' selected="selected"'); + for ($i = 0; $i < count($Tanevek); $i++) { + echo '<option value="'.$Tanevek[$i].'"'.$SEL[$Tanevek[$i]].'>'; + echo $Tanevek[$i]; + echo '</option>'."\n"; + } + echo '</select>'."\n"; + + echo '<input type="submit" value="'._OK.'" />'."\n"; + + formEnd(); +} +*/ +?> diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarend.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarend.phtml index 4f38a41c..9ccfc600 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarend.phtml +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/orarend/orarend.phtml @@ -99,7 +99,7 @@ if (!in_array($ADAT['orarend']['napok'][$nap]['csengetesiRendTipus'],array('normál',''))) $aznapErintettNap['megjegyzes'][] = $ADAT['orarend']['napok'][$nap]['csengetesiRendTipus'].' csengetés'; echo '<span class="napLeiras" title="'.$ADAT['orarend']['napok'][$nap]['dt'].'/'.$ADAT['orarend']['napok'][$nap]['het'].'">'; - echo (count($aznapErintettNap['megjegyzes'])==0) ? $aHetNapjai[($nap-1)] : implode('; ',array_unique($aznapErintettNap['megjegyzes'])); + echo (!is_array($aznapErintettNap['megjegyzes']) || count($aznapErintettNap['megjegyzes'])==0) ? $aHetNapjai[($nap-1)] : implode('; ',array_unique($aznapErintettNap['megjegyzes'])); echo '</span>'; if ($ADAT['orarend']['napok'][$nap]['dt']!='') { @@ -129,7 +129,7 @@ echo '</tr>'; echo '</thead>'."\n"; - if (__ALLOWSET===true) { + if (defined('__ALLOWSET') && __ALLOWSET===true) { $_footclass = ($ADAT['publikusOrarend']) ? 'publikus' : 'nempublikus'; echo '<tfoot class="'.$_footclass.'">'; echo '<tr><th colspan="'.($ADAT['hetiMaxNap']+1).'">'; @@ -158,7 +158,8 @@ $_ma_class = ($nap==date('w') && $ADAT['orarend']['napok'][$nap]['dt']==date('Y-m-d')) ? 'ma': ''; echo '<td class="jegyzetContainer" data-dt="'.$dt.'" data-napindex="'.$nap.'" class="'.$_ma_class.'">'; //dump($ADAT['dolgozat']['tervezett'][$dt]); - for ($d=0; $d<count($ADAT['dolgozat']['tervezett'][$dt]); $d++) { + if (is_array($ADAT['dolgozat']['tervezett'][$dt])) { + for ($d=0; $d<count($ADAT['dolgozat']['tervezett'][$dt]); $d++) { $_dolgozatId = $ADAT['dolgozat']['tervezett'][$dt][$d]; echo '<div class="dolgozat dolgozatAdat" data-dolgozatid="'.$_dolgozatId.'">'; for ($t=0; $t<count($ADAT['dolgozat'][$_dolgozatId]['tankor']); $t++) { @@ -168,8 +169,10 @@ echo '<br/>'.$ADAT['dolgozat'][$_dolgozatId]['dolgozatNev']; echo '</div>'; // if (count($ADAT['dolgozat']['tervezett'][$dt])>$d+1) echo '<hr/>'; + } } - for ($d=0; $d<count($ADAT['jegyzet']); $d++) { + if (is_array($ADAT['jegyzet'])) { + for ($d=0; $d<count($ADAT['jegyzet']); $d++) { if ($ADAT['jegyzet'][$d]['dt']==$dt) { $_JEGYZET = $ADAT['jegyzet'][$d]; $_jegyzetId = $_JEGYZET['jegyzetId']; @@ -186,6 +189,7 @@ } // erre még nincs felkészítve a jegyzet.get echo '</div>'; } + } } //for ($d=0; $d<count($ADAT['hazifeladat'][$dt]); $d++) { @@ -245,6 +249,7 @@ echo '<td class="csr '.$_eppTartClass.' '.$_ma_class.'" id="tdid_'.$het.'_'.$nap.'_'.$ora.'" data-napindex="'.$nap.'" data-oraindex="'.$ora.'">'; $het = 0; $ORARENDI = array(); + if (!is_array($T[$nap][$ora]['orak'])) $T[$nap][$ora]['orak'] = array(); for($i=0; $i<count($T[$nap][$ora]['orak']); $i++) { $_T = $T[$nap][$ora]['orak'][$i]; // itt a MAI naphoz viszonyítjuk, holott lehet hogy inkább a refDt-hez kéne. Megfontolandó. diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/face.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/face.phtml index 209652db..7f8119e2 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/face.phtml +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/share/face.phtml @@ -46,7 +46,7 @@ if ($subdir!='') { foreach (array('jpg') as $ext) { $img = $Id.'.'.$ext; - if (@file_exists(_DOWNLOADDIR.'/'._POLICY.'/naplo/face/'.$subdir.'/'.$img)) { + if (file_exists(_DOWNLOADDIR.'/'._POLICY.'/naplo/face/'.$subdir.'/'.$img)) { $file = 'index.php?policy='._POLICY.'&sessionID='._SESSIONID.'&page=session&f=download&download='.sha1($Id).'&dir=naplo/face/'.$subdir.'&file='.$img; $s = '<div class="arckep--container '.$tipus.' '.$extraClass.'" '.$extraHtmlAttrs.' style="width: '.$height.'px;height: '.$height.'px;"><img src="'.$file.'" alt="'.$Id.'" '.$extraHtmlAttrs.' /></div>'; if ($return===true) { diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/dokumentum/dokumentum.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/dokumentum/dokumentum.jquery.min.js new file mode 100644 index 00000000..c55e8bbb --- /dev/null +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/dokumentum/dokumentum.jquery.min.js @@ -0,0 +1,3 @@ + +$(function() { +} ); diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/kepzesOraterv.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/kepzesOraterv.jquery.min.js index 6abc9f50..3632972e 100644 --- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/kepzesOraterv.jquery.min.js +++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/intezmeny/kepzesOraterv.jquery.min.js @@ -1,14 +1,21 @@ $(function() { - - $('#targySel').change(function(event) { - - element = $(event.target); - kovetelmeny = element.find('option:selected').data('kovetelmeny'); - element.closest('th').nextAll('td').find('select option[value="'+kovetelmeny+'"]').prop('selected',true); - - }); + if ($('#isAdmin').data('isadmin') == 0) { + $('form.kepzesOraterv table tr.rogzitett .felev2').show(); + $('form.kepzesOraterv table thead .felev2').show(); + $('form.kepzesOraterv table tr.rogzitett span.oraszam').show(); + $('form.kepzesOraterv table tr.rogzitett span.kovetelmeny').slideDown('slow'); + $('form.kepzesOraterv table thead span.oraszam').show(); + $('form.kepzesOraterv table thead span.kovetelmeny').slideDown('slow'); + $('form.kepzesOraterv input').attr('readonly', true).prop('readonly', true); + } else { + $('#targySel').change(function(event) { + element = $(event.target); + kovetelmeny = element.find('option:selected').data('kovetelmeny'); + element.closest('th').nextAll('td').find('select option[value="'+kovetelmeny+'"]').prop('selected',true); + }); + } $('body').click(function(event) { element = $(event.target); if (element.closest('span#felevValtas').length == 1) { @@ -35,14 +42,15 @@ $(function() { $('form.kepzesOraterv table thead span.kovetelmeny').hide(); $('form.kepzesOraterv table thead span.oraszam').slideDown('slow'); } - } else if (element.closest('tr.rogzitett').length == 1) { + } else if ($('#isAdmin').data('isadmin') == 1 && element.closest('tr.rogzitett').length == 1) { element.closest('tr').find('td span').hide(); element.closest('tr').removeClass('rogzitett').addClass('szerkeszt'); element.closest('tr').find('td div').slideDown(); /* element.closest('tr').find('input').show(); element.closest('tr').find('select').show(); -*/ } +*/ + } }); });
\ No newline at end of file |