aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/www/skin/classic
diff options
context:
space:
mode:
authorM.Gergo2020-03-24 18:56:00 +0100
committerM.Gergo2020-03-24 18:56:00 +0100
commit2f93e272054ed126be63db31d33e90f51f09d30e (patch)
tree0344db4e179a6aa9ccf2503d6d6ca25fa39e53d0 /mayor-orig/mayor-naplo/www/skin/classic
parent351ace3031cf063cef346027ae209d218225242a (diff)
downloadmayor-2f93e272054ed126be63db31d33e90f51f09d30e.tar.gz
mayor-2f93e272054ed126be63db31d33e90f51f09d30e.zip
Rev: 4633rev4633
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.css8
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/hazifeladat.phtml15
-rw-r--r--mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/hazifeladat.jquery.min.js12
3 files changed, 31 insertions, 4 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 1169d008..127dfa75 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
@@ -24,8 +24,14 @@
form button.btnHfStatusz:hover span { color: white; }
form button.btnHfStatusz.kesz:hover span { color: orange }
+ #hazifeladatFeltoltesEngedely {
+ padding:15px 0px 15px 0px; margin:5px 0px; text-align:center; border-radius:2px; background-color:#eee
+ }
+ #hazifeladatFeltoltesEngedely.engedelyezve { background-color: #c8e6c9; }
-
+ input.btnSubmit {
+ margin: 5px auto 5px auto;
+ }
/*---*/
form button.btnLattamStatusz {
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 a8540faa..cddfd0e8 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
@@ -36,8 +36,9 @@
echo '<fieldset class="adatok '.$_class.'"><legend>'._HAZIFELTOLTES.'</legend>'."\n";
echo formBegin(array('enctype'=>'multipart/form-data'));
- if (FILE_UPLOAD_ENABLED===false || $ADAT['hazifeladatDiak']['tanarLattamDt']!='' || $ADAT['hazifeladatDiak']['hazifeladatDiakStatus']=='kész') {
+ if (FILE_UPLOAD_ENABLED===false || $ADAT['hazifeladatAdat']['hazifeladatFeltoltesEngedely'] == 0 || $ADAT['hazifeladatDiak']['tanarLattamDt']!='' || $ADAT['hazifeladatDiak']['hazifeladatDiakStatus']=='kész') {
if (FILE_UPLOAD_ENABLED===false) $mert = ', mert a feltöltés le van tiltva';
+ elseif ($ADAT['hazifeladatAdat']['hazifeladatFeltoltesEngedely']==0) $mert = ', mert a tanár nem kért ide csatolt házi feladatot';
elseif ($ADAT['hazifeladatDiak']['tanarLattamDt']!='') $mert = ', mert már láttamozta a tanár';
elseif ($ADAT['hazifeladatDiak']['hazifeladatDiakStatus']=='kész') $mert = ', mert már késznek jelölted a feladatot';
echo '<p style="color:#888">nem tudsz új filet feltölteni'.$mert.'</p>';
@@ -131,11 +132,19 @@
removeButtons: 'Cut,Copy,Paste,PasteText,PasteFromWord,Anchor,Underline,Strike,SpecialChar,HorizontalRule'
});
</script>";
- echo '<input type="submit">';
+
+ $_CHK = ($ADAT['hazifeladatAdat']['hazifeladatFeltoltesEngedely']==1) ? 'checked="checked"':'';
+ $_cls = ($ADAT['hazifeladatAdat']['hazifeladatFeltoltesEngedely']==1) ? 'class="engedelyezve"':'';
+ echo '<div id="hazifeladatFeltoltesEngedely" '.$_cls.'>';
+ echo '<input type="checkbox" name="hazifeladatFeltoltesEngedely" id="hazifeladatFeltoltesEngedelyChk" value="1" '.$_CHK.'/>';
+ echo '<label for="hazifeladatFeltoltesEngedelyChk">Diák/Szülő házi feladat csatolás engedélyezve</label>';
+ echo '</div>';
+ echo '<div style="width:100%; margin:auto; text-align:center;">';
+ echo '<input type="submit" class="btnSubmit">';
+ echo '</div>';
echo '</fieldset>'."\n";
if ($skin != 'ajax') formEnd();
-
if (count($ADAT['hazifeladatDiak'])>0) {
echo '<fieldset class="adatok">';
echo '<legend>Visszajelzések</legend>';
diff --git a/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/hazifeladat.jquery.min.js b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/hazifeladat.jquery.min.js
new file mode 100644
index 00000000..4d225a86
--- /dev/null
+++ b/mayor-orig/mayor-naplo/www/skin/classic/module-naplo/javascript/haladasi/hazifeladat.jquery.min.js
@@ -0,0 +1,12 @@
+$(function() {
+
+ $('input[type="checkbox"]').click(function(){
+ if($(this).is(":checked")){
+ $('#hazifeladatFeltoltesEngedely').addClass('engedelyezve');
+ }
+ else if($(this).is(":not(:checked)")){
+ $('#hazifeladatFeltoltesEngedely').removeClass('engedelyezve');
+ }
+ });
+
+}); \ No newline at end of file