diff options
Diffstat (limited to 'mayor-orig/mayor-naplo/www/skin')
-rw-r--r-- | mayor-orig/mayor-naplo/www/skin/classic/module-naplo/html/haladasi/hazifeladat.phtml | 50 |
1 files changed, 44 insertions, 6 deletions
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 acf8fcae..e2b6d3ef 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 @@ -11,32 +11,70 @@ echo '<fieldset class="adatok"><legend>'._ALAPADATOK.'</legend>'."\n"; - echo superdate($ADAT['oraAdat']['dt']).' ('.$ADAT['oraAdat']['dt'].'), '.$ADAT['oraAdat']['ora'].'. '._ORA.' – <span class="tankorNev" data-tankorid="'.$ADAT['oraId']['tankorId'].'">'.$ADAT['oraAdat']['tankorNev'].'</span> – '.$ADAT['oraAdat']['kiCn']; - - echo '<p>'.$ADAT['oraAdat']['leiras'].'</p>'; + echo ($ADAT['oraAdat']['dt']).' ('.$ADAT['oraAdat']['dt'].'), '.$ADAT['oraAdat']['ora'].'. '._ORA.' – <span class="tankorNev" data-tankorid="'.$ADAT['oraId']['tankorId'].'">'.$ADAT['oraAdat']['tankorNev'].'</span> – '.$ADAT['oraAdat']['kiCn']; + // echo '<p>'.$ADAT['oraAdat']['leiras'].'</p>'; echo '</fieldset>'."\n"; if (__DIAK===true) { + echo '<fieldset class="adatok"><legend>'.ucfirst(_TANANYAG).'</legend>'."\n"; + if ($ADAT['oraAdat']['leiras']=='') + { echo '<p style="color:#aaa;">még nincs kitöltve</p>'; } + else + { echo '<p>'.$ADAT['oraAdat']['leiras'].'</p>'; } + echo '</fieldset>'."\n"; echo '<fieldset class="adatok"><legend>'._HAZIFELADAT.'</legend>'."\n"; - echo ($ADAT['hazifeladatAdat']['hazifeladatLeiras']); + if ($ADAT['hazifeladatAdat']['hazifeladatLeiras']=='') + { echo '<p style="color:#aaa;">még nincs kitöltve</p>'; } + else + { echo ($ADAT['hazifeladatAdat']['hazifeladatLeiras']); } echo '</fieldset>'."\n"; } else { - echo '<script src="//cdn.ckeditor.com/4.14.0/basic/ckeditor.js"></script>'; + echo '<script src="//cdn.ckeditor.com/4.14.0/standard/ckeditor.js"></script>'; if ($skin != 'ajax') formBegin(array('class'=>'hazifeladat')); echo '<input type="hidden" name="action" value="hazifeladatBeiras"/>'; echo '<input type="hidden" name="oraId" value="'.$ADAT['oraAdat']['oraId'].'"/>'; echo '<input type="hidden" name="hazifeladatId" value="'.$ADAT['hazifeladatId'].'"/>'; + echo '<fieldset class="adatok"><legend>'.ucfirst(_TANANYAG).'</legend>'."\n"; + if ($ADAT['oraAdat']['oraId']>0 && strtotime(date('Y-m-d'))>=strtotime($ADAT['oraAdat']['dt'])) { + echo '<input type="text" name="oraLeiras" value="'.$ADAT['oraAdat']['leiras'].'" style="width:70%">'; + echo '<input type="submit">'; + } else { + echo '<p>'.$ADAT['oraAdat']['leiras'].'</p>'; + } + echo '</fieldset>'."\n"; + echo '<fieldset class="adatok"><legend>'._HAZIFELADAT.'</legend>'."\n"; echo '<textarea name="hazifeladatLeiras" class="wysiwyg" rows="10" cols="80" style="width:100%">'; echo htmlspecialchars($ADAT['hazifeladatAdat']['hazifeladatLeiras']); echo '</textarea>'; echo " <script> - CKEDITOR.replace( 'hazifeladatLeiras' ); + CKEDITOR.replace( 'hazifeladatLeiras', { + disableNativeSpellChecker: true, + language: 'hu', + + toolbarGroups: [ + { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, + { name: 'paragraph', groups: [ 'list', 'indent' ] }, + { name: 'links' }, +// { name: 'document', groups: [ 'mode', 'document', 'doctools' ] }, + { name: 'clipboard', groups: [ 'undo', 'redo' ] }, +// { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] }, +// { name: 'forms' }, +// { name: 'insert' }, +// { name: 'styles' }, +// { name: 'colors' }, +// { name: 'others' }, + { name: 'insert', groups: [ 'Image', 'Table', 'HorizontalRule' ] }, + { name: 'tools' }, +// { name: 'about' } + ], + removeButtons: 'Cut,Copy,Paste,PasteText,PasteFromWord,Anchor,Underline,Strike,SpecialChar,HorizontalRule' + }); </script>"; echo '<input type="submit">'; echo '</fieldset>'."\n"; |