diff options
author | M.Gergo | 2021-12-15 20:35:04 +0100 |
---|---|---|
committer | M.Gergo | 2021-12-15 20:35:04 +0100 |
commit | aaab24c8c081b8e2b42cf8bf003120f27070aa6c (patch) | |
tree | f2ca9ae0c7e8a09a5ae1a05a7fce328fb172d870 /mayor-orig/mayor-naplo/www/skin/classic | |
parent | 933d9a5ad9b7a134148a1a931fb0cab5c782a245 (diff) | |
download | mayor-aaab24c8c081b8e2b42cf8bf003120f27070aa6c.tar.gz mayor-aaab24c8c081b8e2b42cf8bf003120f27070aa6c.zip |
Rev: 4825
Diffstat (limited to 'mayor-orig/mayor-naplo/www/skin/classic')
-rw-r--r-- | mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/dokumentum/dokumentum.css | 12 | ||||
-rw-r--r-- | mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/dokumentum/dokumentum.phtml | 42 |
2 files changed, 38 insertions, 16 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 index 01db5fb2..fd5c19b5 100644 --- 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 @@ -14,3 +14,15 @@ 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; } + table.dokumentumLista tr td a:before { content: ""; padding-right:4px; color: #ddd;} + table.dokumentumLista tr td:hover a:before { content: ""; padding-right:4px; color: cornflowerblue;} + + table.dokumentumLista tr td { height:1.8em;} + table.dokumentumLista.admin { outline: solid 2px orange; border-radius:10px;} + table.dokumentumLista.admin tr td:hover div.dokumentumUrl_pl {display: inline-block;} + + table.dokumentumLista tr th span.tanev { + border-radius: 4px; padding:2px 4px; color:white; opacity:70%; +} + table.dokumentumLista tr th span.tanev0 {background-color: cornflowerblue} + table.dokumentumLista tr th span.tanev1 {background-color: orange} 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 index 5284321d..5fefacd2 100644 --- 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 @@ -4,7 +4,7 @@ formBegin(); echo '<input type="hidden" name="action" value="addDokumentum">'; - echo '<table align="center" class="dokumentumLista">'; + echo '<table align="center" class="dokumentumLista admin">'; echo '<tr><th colspan="2">'; echo 'Új dokumentum</th><td></tr>'; echo '<tr>'; @@ -21,7 +21,11 @@ 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 '<td>'; + // echo $INTEZMENY['honlap']; + echo '<input type="text" id="frm_dokumentumUrl" name="dokumentumUrl" placeholder="https://kanizsay.edu.hu/doksi/meno_tanmenet.pdf" size="100" />'; + echo '<div class="dokumentumUrl_pl" style="display:none">pálda: https://mayor.edu.hu/dokumentumok/2021/meno_tanmenet.pdf</div>'; + echo '</td>'; echo '</tr>'; echo '<tr>'; echo '<th>Megjegyzés a link mögött:</th>'; @@ -54,10 +58,10 @@ if ($admin===true) { formBegin(); - echo '<input type="hidden" name="action" value="delDokumentum">'; + echo '<input type="hidden" name="action" value="delModDokumentum">'; } echo '<h1 class="dokumentumLista">Adminisztráció</h1>'; - echo '<table class="dokumentumLista" align="center" cellspacing="1">'; + echo '<table class="dokumentumLista admin" 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">'; @@ -70,6 +74,7 @@ echo '<tr>'; echo '<th>'; echo $D['dokumentumId']; + echo '<input type="hidden" name="dokumentumId[]" value="'.$D['dokumentumId'].'" />'; echo '</th>'; echo '<td>'; echo $D['dokumentumDt']; @@ -94,8 +99,8 @@ 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 '<th><input type="text" name="sorrend_'.$D['dokumentumId'].'" value="'.$D['dokumentumSorrend'].'" size="3" style="text-align:center" />'.'</th>'; + echo '<td><input type="checkbox" name="delDokumentumId[]" value="'.$D['dokumentumId'].'" /></td>'; } echo '</tr>'; } @@ -109,28 +114,33 @@ function putDokumentumLista($ADAT, $admin=false) { + global $policy; + $genOn = false; 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); + if ($genOn==false || $tipus!='general') { + echo '<tr>'; + echo '<th colspan="2">'; + if ($tipus=='general') { + echo 'Általános dokumentumok'; + $genOn=true; + } else echo $tanev.'/'.($tanev+1); echo '</th>'; - echo '</tr>'; + 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 '<th style="font-size:x-small; background-color:#fff; font-weight:normal; color: #888;"><span class="tanev tanev'.($D['dokumentumTanev']%2).'">'.$D['dokumentumTanev'].'/'.($D['dokumentumTanev']+1).'</span></th>'; echo '<td>'; - echo '<a href="'.($D['dokumentumUrl']).'" target="_blank">'; - echo htmlspecialchars($D['dokumentumRovidLeiras']); + echo '<a href="'.($D['dokumentumUrl']).'" target="_blank" title="'.htmlspecialchars($D['dokumentumRovidLeiras']).'">'; + if ($D['dokumentumLeiras']!='') echo htmlspecialchars($D['dokumentumLeiras']); + // if ($D['dokumentumRovidLeiras']!='') echo htmlspecialchars($D['dokumentumRovidLeiras']); // echo '<span class="icon-download"></span> '; echo '</a>'; if ($D['dokumentumMegjegyzes']!='') echo '<span class="dokumentumMegjegyzes">('.$D['dokumentumMegjegyzes'].')</span>'; |