Accountinfoblatt wird per Default als PDF erstellt

This commit is contained in:
oesi
2015-03-25 14:00:05 +01:00
parent 16f617b234
commit 6ea4218853
2 changed files with 20 additions and 3 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ foreach($addon_obj->result as $addon)
<command id="menu-dokumente-studienerfolgeng-finanzamt:command" oncommand="StudentCreateStudienerfolg('StudienerfolgEng','finanzamt');"/>
<command id="menu-dokumente-studienerfolgeng-allesemester-normal:command" oncommand="StudentCreateStudienerfolg('StudienerfolgEng','', '', 'true');"/>
<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-accountinfoblatt:command" oncommand="PrintAccountInfoBlatt(event);"/>
<command id="menu-dokumente-zutrittskarte:command" oncommand="PrintZutrittskarte();"/>
<command id="menu-dokumente-studienblatt:command" oncommand="PrintStudienblatt(event);"/>
<command id="menu-dokumente-pruefungsprotokoll:command" oncommand="StudentAbschlusspruefungPrintPruefungsprotokollMultiple('de');"/>
+19 -2
View File
@@ -1545,7 +1545,7 @@ function EinstellungenKontoFilterStgChange()
// ****
// * Druckt das AccountInfoBlatt
// ****
function PrintAccountInfoBlatt()
function PrintAccountInfoBlatt(event)
{
if(document.getElementById('main-content-tabs').selectedItem==document.getElementById('tab-studenten'))
@@ -1603,11 +1603,28 @@ function PrintAccountInfoBlatt()
}
}
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=AccountInfo&xml=accountinfoblatt.xml.php&uid='+data;
action = '<?php echo APP_ROOT; ?>content/pdfExport.php?xsl=AccountInfo&xml=accountinfoblatt.xml.php&output='+output+'&uid='+data;
window.open(action,'AccountInfoBlatt','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