Alternatives Outputformat nun auch für Studienblatt

Studienblatt kann nun auch als .odt und .doc direkt aus dem FAS
generiert werden.
This commit is contained in:
kindlm
2015-02-03 16:53:43 +01:00
parent 578329d821
commit c878db837c
2 changed files with 19 additions and 4 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ foreach($addon_obj->result as $addon)
<command id="menu-dokumente-studienerfolgeng-allesemester-finanzamt:command" oncommand="StudentCreateStudienerfolg('StudienerfolgEng','finanzamt', '', 'true');"/>
<command id="menu-dokumente-accountinfoblatt:command" oncommand="PrintAccountInfoBlatt();"/>
<command id="menu-dokumente-zutrittskarte:command" oncommand="PrintZutrittskarte();"/>
<command id="menu-dokumente-studienblatt:command" oncommand="PrintStudienblatt();"/>
<command id="menu-dokumente-studienblatt:command" oncommand="PrintStudienblatt(event);"/>
<command id="menu-dokumente-pruefungsprotokoll:command" oncommand="StudentAbschlusspruefungPrintPruefungsprotokollMultiple('de');"/>
<command id="menu-dokumente-pruefungsprotokoll_englisch:command" oncommand="StudentAbschlusspruefungPrintPruefungsprotokollMultiple('en');"/>
<command id="menu-dokumente-pruefungsprotokoll2:command" oncommand="StudentAbschlusspruefungPrintPruefungsprotokollMultiple('de2');"/>
+18 -3
View File
@@ -1692,7 +1692,7 @@ function PrintZutrittskarte()
// ****
// * Druckt das Studienblatt
// ****
function PrintStudienblatt()
function PrintStudienblatt(event)
{
if(document.getElementById('main-content-tabs').selectedItem==document.getElementById('tab-studenten'))
@@ -1728,12 +1728,27 @@ function PrintStudienblatt()
alert('Das Studienblatt kann nur für Studierende erstellt werden');
return false;
}
var output = 'pdf';
if(typeof(event)!=='undefined')
{
if (event.shiftKey)
{
var output = 'odt';
}
else if (event.ctrlKey)
{
var output = 'doc';
}
else
{
var output = 'pdf';
}
}
if(data!='')
{
if(error>0)
alert(error+' der ausgewaehlten Personen haben keinen Account');
action = '<?php echo APP_ROOT; ?>content/pdfExport.php?xsl=Studienblatt&xml=studienblatt.xml.php&output=pdf&&uid='+data;
action = '<?php echo APP_ROOT; ?>content/pdfExport.php?xsl=Studienblatt&xml=studienblatt.xml.php&output='+output+'&&uid='+data;
window.open(action,'Studienblatt','height=520,width=500,left=350,top=350,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes');
}
else