aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/www/skin/classic
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/mayor-naplo/www/skin/classic')
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/hazifeladat.css10
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/naplo.css4
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/hazifeladat.phtml94
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js2
4 files changed, 55 insertions, 55 deletions
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/hazifeladat.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/hazifeladat.css
index a44e9d2d..448364ef 100644
--- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/hazifeladat.css
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/haladasi/hazifeladat.css
@@ -60,13 +60,19 @@
table.hazifeladatDiak tbody tr td { background-color: white; font-weight:normal; padding: 2px 4px;}
- table.hazifeladatDiak tr td a, fieldset.adatok a { color: black; }
+ table.hazifeladatDiak tr td a, fieldset.adatok a { color: cornflowerblue; text-decoration: underline; }
table.hazifeladatDiak tr td a:visited, fieldset.adatok a:visited { color: #888; }
- table.hazifeladatDiak tr td a:hover, fieldset.adatok a:hover { text-decoration:underline; color: cornflowerblue; }
+ table.hazifeladatDiak tr td a:hover, fieldset.adatok a:hover { font-style:italic; }
table.hazifeladatDiak tr td.kesz { background-color: lightgreen; color:white; text-align:center }
+ table.hazifeladatDiak tr td.diakNev.extraDiak { background-color: violet; }
+
input.modosit { background-color: #ffeb3b; }
span#hintDt {margin-left:5px; font-size:x-small; color:#888; cursor: copy;}
span#hintDt span { padding-right:2px; }
span#hintDt:hover { color:black; }
+
+ span.hataridoUtaniFeltoltes { margin-left: 2px; font-size: x-small; background-color: #e91e63; border-radius:2px; padding: 0px 2px; color:white; }
+
+
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/naplo.css b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/naplo.css
index 8f26e848..f12a5b14 100644
--- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/naplo.css
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/css/naplo.css
@@ -212,6 +212,10 @@
#updateWindowSideContent ul li a:hover,#updateWindowSideSubContent ul li a:hover { color:#999 }
#updateWindowSideTitle a:hover, #updateWindowSideSubTitle a:hover { color:#999 }
+ div.sideOraAdatHazifeladat {border-left: solid 0px #888; padding: 4px; background-color: #e91e63; font-size: x-small;}
+ div.sideOraAdatHazifeladat a { text-decoration:underline; }
+ div.sideOraAdatHazifeladat a:hover { font-style:italic; }
+
/* #updateWindowSide h3:before { font-family: 'Elusive-Icons'; font-size:10px; content: "\e0a4"; padding-right:8px;font-weight:100; }*/
.updateWindowSide button.mentes, .updateWindowSide button.torles { margin: 4px 18px; height:2em; border-radius:2px; border: solid 1px white; color:white; background-color: #2196f3;}
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/hazifeladat.phtml b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/hazifeladat.phtml
index 83d5d6f1..419fbc49 100644
--- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/hazifeladat.phtml
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/hazifeladat.phtml
@@ -28,6 +28,20 @@
{ echo '<p style="color:#aaa;">még nincs kitöltve</p>'; }
else
{ echo ($ADAT['hazifeladatAdat']['hazifeladatLeiras']); }
+ if ($ADAT['hazifeladatAdat']['hazifeladatHataridoDt']!='') {
+ $_lejart = (strtotime(date('Y-m-d H:i:s'))>=strtotime($ADAT['hazifeladatAdat']['hazifeladatHataridoDt']));
+
+echo '<style type="text/css">
+ div.hatarido { background-color: #f5f5f5; border-radius: 2px; padding-top:10px; padding-bottom:10px; padding-left:10px;}
+ div.hatarido.lejart { background-color: #bdbdbd; color: white;}
+</style>
+';
+ $_icon = ($_lejart) ? 'icon-ban-circle':'icon-time';
+ $_class = ($_lejart) ? 'hatarido lejart':'hatarido';
+ echo '<div class="'.$_class.'">';
+ echo '<span class="'.$_icon.'"></span> Határidő: '.$ADAT['hazifeladatAdat']['hazifeladatHataridoDt'];
+ echo '</div>';
+ }
echo '</fieldset>'."\n";
@@ -65,6 +79,12 @@
if ($ADAT['hazifeladatDiak']['tanarLattamDt']!='') {
echo ' <span class="icon-ok-sign" style="color: lightgreen"></span> '.$ADAT['hazifeladatDiak']['tanarLattamDt'];
}
+
+ if ($ADAT['hazifeladatAdat']['hazifeladatHataridoDt']!=''
+ && $D['hazifeladatDiakFileDt']!=''
+ && strtotime($D['hazifeladatDiakFileDt']) > strtotime($ADAT['hazifeladatAdat']['hazifeladatHataridoDt'])) {
+ echo '<span class="hataridoUtaniFeltoltes">határidő utáni feltöltés</span>';
+ }
echo '</li></ul>';
}
@@ -196,14 +216,33 @@
echo '<tr><th>diák</th><th colspan="2">státusz</th><th colspan="1">csatolmány</th><th>láttam</th></tr>';
echo '</thead>';
+ /* kiegészítjük a tankörnévsort az egyéb diákokkal, akik látták ezt a házifeladatot */
+ for ($i=0; $i<count($ADAT['hazifeladatDiak']); $i++) {
+ $_diakId = $ADAT['hazifeladatDiak'][$i]['diakId'];
+ if (!is_array($ADAT['nevsor']['nevek'][$_diakId])) {
+ $EXTRA = $ADAT['hazifeladatDiak'][$i];
+ if ($EXTRA['hazifeladatDiakStatus']!='') { // csak akkor rakjuk be a névsorba, ha késznek jelölte a diák
+ $ADAT['nevsor']['nevek'][$EXTRA['diakId']] = array('diakId'=>$ADAT['hazifeladatDiak'][$i]['diakId'],'diakNev'=>$EXTRA['diakNev'],'extra'=>'add');
+ }
+ }
+ }
+
if (is_array($ADAT['nevsor']['nevek']))
foreach ($ADAT['nevsor']['nevek'] as $diakId => $ITEM) {
$D = $DIAKHF[$diakId];
+ $_extraClass = ($ITEM['extra']=='add') ? 'extraDiak':'';
echo '<tr>';
- echo '<td class="diakNev diakAdat" data-diakid="'.$diakId.'">'.$ITEM['diakNev'].'</td>';
+ echo '<td class="diakNev diakAdat '.$_extraClass.'" data-diakid="'.$diakId.'">'.$ITEM['diakNev'].'</td>';
if (__NAPLOADMIN===true || __VEZETOSEG===true) echo '<td>'.$D['diakLattamDt'].'</td>';
- echo '<td colspan="2" class="'.ekezettelen($D['hazifeladatDiakStatus']).'">'.$D['hazifeladatDiakStatus'].'</td>';
+ echo '<td colspan="1" class="'.ekezettelen($D['hazifeladatDiakStatus']).'">'.$D['hazifeladatDiakStatus'].'</td>';
//echo '<td>'.$D['hazifeladatDiakMegjegyzes'].'</td>';
+ echo '<td>';
+ if ($ADAT['hazifeladatAdat']['hazifeladatHataridoDt']!=''
+ && $D['hazifeladatDiakFileDt']!=''
+ && strtotime($D['hazifeladatDiakFileDt']) > strtotime($ADAT['hazifeladatAdat']['hazifeladatHataridoDt'])) {
+ echo '<span class="hataridoUtaniFeltoltes">határidő utáni feltöltés</span>';
+ }
+ echo '</td>';
$ADAT['dir'] = 'naplo/haladasi/hazifeladat';
$ADAT['file'] = $D['hazifeladatDiakFilename'];
@@ -233,54 +272,5 @@
}
- function putHazifeladatDiakOrig($ADAT) {
-
- if (count($ADAT['hazifeladatDiak'])==0) return false;
-
- echo formBegin();
- echo '<input type="hidden" name="action" value="lattam" />';
- echo '<input type="hidden" name="hazifeladatId" value="'.$ADAT['hazifeladatId'].'" />';
- echo '<table class="hazifeladatDiak" cellpadding="1" cellspacing="1">';
- echo '<thead>';
- if (__NAPLOADMIN===true || __VEZETOSEG===true)
- echo '<tr><th>diák</th><th>látta</th><th colspan="2">státusz</th><th colspan="1">csatolmány</th><th>láttam</th></tr>';
- else
- echo '<tr><th>diák</th><th colspan="2">státusz</th><th colspan="1">csatolmány</th><th>láttam</th></tr>';
- echo '</thead>';
- for ($i=0; $i<count($ADAT['hazifeladatDiak']); $i++) {
- $D = $ADAT['hazifeladatDiak'][$i];
- echo '<tr>';
- echo '<td class="diakNev diakAdat" data-diakid="'.$D['diakId'].'">'.$D['diakNev'].'</td>';
- if (__NAPLOADMIN===true || __VEZETOSEG===true) echo '<td>'.$D['diakLattamDt'].'</td>';
- echo '<td>'.$D['hazifeladatDiakStatus'].'</td>';
- echo '<td>'.$D['hazifeladatDiakMegjegyzes'].'</td>';
-
- $ADAT['dir'] = 'naplo/haladasi/hazifeladat';
- $ADAT['file'] = $D['hazifeladatDiakFilename'];
- $href = href('index.php?page=session&f=download&dir='.$ADAT['dir'].'&file='.$ADAT['file'].'&download=true');
- echo '<td>';
- if ($D['hazifeladatDiakOrigFilename']!='') {
- echo '<a href="'.$href.'" target="_blank">'.htmlspecialchars($D['hazifeladatDiakOrigFilename']).'</a> <span class="icon-paper-clip"></span>';
- }
- echo '</td>';
- echo '<td style="text-align: center">';
-// if ($ADAT['hazifeladatDiak']['hazifeladatDiakStatus']=='kész') {
- if (__TANAR===true) {
- if ($D['tanarLattamDt']=='') {
- echo '<button type="submit" name="lattam[]" value="'.$D['diakId'].'" class="btnLattamStatusz"><span class="icon-ok-sign"></span> láttam!</button>';
- } else {
- echo '<button type="submit" class="btnLattamStatusz lattam"><span class="icon-ok-sign"></span> láttam.</button>';
- }
- } else {
- if ($D['tanarLattamDt']!='') {echo '<span class="icon-ok-sign" style="color:lightblue"></span>';}
- }
-// }
- echo '</td>';
- echo '</tr>';
- }
- echo '</table>';
- echo formEnd();
-
- }
-?>
+?> \ No newline at end of file
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js
index b5d19f89..ece36953 100644
--- a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js
@@ -747,7 +747,7 @@ processJSONOraAdat = function(adat) {
content += '<ul><li style="font-style:x-small;">Határidő: '+adat['oraAdat']['hazifeladatHataridoDt']+' <span class="icon-time"></span></li></ul>';
}
if (adat['oraAdat']['hazifeladatLeiras']!='') {
- content += '<div style="border-left: solid 0px #888; padding: 4px; background-color: #e91e63; font-size: x-small;">';
+ content += '<div class="sideOraAdatHazifeladat" sxtyle="border-left: solid 0px #888; padding: 4px; background-color: #e91e63; font-size: x-small;">';
content += adat['oraAdat']['hazifeladatLeiras'];
content += '</div>';
}