mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
Stempelvorlagen, shiftkey, ctrlkey, Archiv
Englische Zeugnisvorlage mit Stempel druckt nun auch mehrseitig. Zeugnis und Diplomasupplement können im FAS auch als .odt und .doc durch drücken der Umschalt- bzw. Strg-Taste generiert werden. Menüpunkt "Zeugnis" (Karteireiter) umbenannt in "Archiv".
This commit is contained in:
+3
-3
@@ -118,10 +118,10 @@ foreach($addon_obj->result as $addon)
|
||||
<command id="menu-statistic-lektorenstatistik:command" oncommand="StatistikPrintLektorenstatistik();"/>
|
||||
<command id="menu-statistic-stromanalyse:command" oncommand="StatistikPrintStromanalyse();"/>
|
||||
<command id="menu-dokumente-inskriptionsbestaetigung:command" oncommand="StudentPrintInskriptionsbestaetigung();"/>
|
||||
<command id="menu-dokumente-zeugnis:command" oncommand="StudentCreateZeugnis('Zeugnis');"/>
|
||||
<command id="menu-dokumente-zeugniseng:command" oncommand="StudentCreateZeugnis('ZeugnisEng');"/>
|
||||
<command id="menu-dokumente-zeugnis:command" oncommand="StudentCreateZeugnis('Zeugnis',event);"/>
|
||||
<command id="menu-dokumente-zeugniseng:command" oncommand="StudentCreateZeugnis('ZeugnisEng',event);"/>
|
||||
<!--<command id="menu-dokumente-sammelzeugnis:command" oncommand="StudentCreateSammelzeugnis('Sammelzeugnis');"/>-->
|
||||
<command id="menu-dokumente-diplsupplement:command" oncommand="StudentCreateDiplSupplement();"/>
|
||||
<command id="menu-dokumente-diplsupplement:command" oncommand="StudentCreateDiplSupplement(event);"/>
|
||||
<command id="menu-dokumente-studienerfolg-normal:command" oncommand="StudentCreateStudienerfolg('Studienerfolg');"/>
|
||||
<command id="menu-dokumente-studienerfolg-finanzamt:command" oncommand="StudentCreateStudienerfolg('Studienerfolg','finanzamt');"/>
|
||||
<command id="menu-dokumente-studienerfolg-allesemester-normal:command" oncommand="StudentCreateStudienerfolg('Studienerfolg','', '', 'true');"/>
|
||||
|
||||
@@ -345,7 +345,7 @@ else
|
||||
<tab id="student-tab-betriebsmittel" label="Betriebsmittel" />
|
||||
<tab id="student-tab-io" label="In/Out" />
|
||||
<tab id="student-tab-noten" label="Noten" />
|
||||
<tab id="student-tab-zeugnis" label="Zeugnis" />
|
||||
<tab id="student-tab-zeugnis" label="Archiv" />
|
||||
<tab id="student-tab-pruefung" label="Prüfung" />
|
||||
<tab id="student-tab-abschlusspruefung" label="AbschlussPrüfung" />
|
||||
<tab id="student-tab-projektarbeit" label="Projektarbeit" />
|
||||
|
||||
@@ -2653,10 +2653,10 @@ function StudentKontoZahlungsbestaetigung()
|
||||
// ****
|
||||
// * Erstellt das Zeugnis fuer einen oder mehrere Studenten
|
||||
// ****
|
||||
function StudentCreateZeugnis(xsl)
|
||||
function StudentCreateZeugnis(xsl,event)
|
||||
{
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
|
||||
|
||||
tree = document.getElementById('student-tree');
|
||||
|
||||
//Markierte Studenten holen
|
||||
@@ -2683,9 +2683,24 @@ function StudentCreateZeugnis(xsl)
|
||||
alert('Bitte einen Studenten auswaehlen');
|
||||
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';
|
||||
}
|
||||
}
|
||||
//PDF erzeugen
|
||||
window.open('<?php echo APP_ROOT; ?>content/pdfExport.php?xml=zeugnis.rdf.php&output=pdf&xsl='+xsl+'&uid='+paramList+'&ss='+ss+'&xsl_stg_kz='+xsl_stg_kz,'Zeugnis', 'height=200,width=350,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes');
|
||||
window.open('<?php echo APP_ROOT; ?>content/pdfExport.php?xml=zeugnis.rdf.php&output='+output+'&xsl='+xsl+'&uid='+paramList+'&ss='+ss+'&xsl_stg_kz='+xsl_stg_kz,'Zeugnis', 'height=200,width=350,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes');
|
||||
}
|
||||
|
||||
// ****
|
||||
@@ -2754,7 +2769,7 @@ function StudentZeugnisAnzeigen()
|
||||
}
|
||||
|
||||
// ****
|
||||
// * Loescht ein Zeugnis
|
||||
// * Loescht ein Dokument aus dem Archiv
|
||||
// ****
|
||||
function StudentAkteDel()
|
||||
{
|
||||
@@ -2778,7 +2793,7 @@ function StudentAkteDel()
|
||||
|
||||
studiengang_kz = document.getElementById('student-detail-menulist-studiengang_kz').value;
|
||||
//Abfrage ob wirklich geloescht werden soll
|
||||
if (confirm('Zeugnis wirklich entfernen?'))
|
||||
if (confirm('Dokument wirklich entfernen?'))
|
||||
{
|
||||
//Script zum loeschen aufrufen
|
||||
var req = new phpRequest('student/studentDBDML.php','','');
|
||||
@@ -4373,7 +4388,7 @@ function StudentShowPersonendetails()
|
||||
// ****
|
||||
// * Erstellt das Diploma Supplement fuer einen oder mehrere Studenten
|
||||
// ****
|
||||
function StudentCreateDiplSupplement()
|
||||
function StudentCreateDiplSupplement(event)
|
||||
{
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
|
||||
@@ -4402,9 +4417,20 @@ function StudentCreateDiplSupplement()
|
||||
alert('Bitte einen Studenten auswaehlen');
|
||||
return false;
|
||||
}
|
||||
|
||||
if (event.shiftKey)
|
||||
{
|
||||
var output='odt';
|
||||
}
|
||||
else if (event.ctrlKey)
|
||||
{
|
||||
var output='doc';
|
||||
}
|
||||
else
|
||||
{
|
||||
var output='pdf';
|
||||
}
|
||||
//PDF erzeugen
|
||||
window.open('<?php echo APP_ROOT; ?>content/pdfExport.php?xml=diplomasupplement.xml.php&output=pdf&xsl=DiplSupplement&xsl_stg_kz='+stg_kz+'&uid='+paramList,'DiplomaSupplement', 'height=200,width=350,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes');
|
||||
window.open('<?php echo APP_ROOT; ?>content/pdfExport.php?xml=diplomasupplement.xml.php&output='+output+'&xsl=DiplSupplement&xsl_stg_kz='+stg_kz+'&uid='+paramList,'DiplomaSupplement', 'height=200,width=350,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes');
|
||||
}
|
||||
|
||||
// ****
|
||||
|
||||
@@ -43,7 +43,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
</popupset>
|
||||
<hbox>
|
||||
<groupbox id="student-zeugnis-groupbox" flex="1">
|
||||
<caption label="Zeugnis"/>
|
||||
<caption label="Dokumente"/>
|
||||
<tree id="student-zeugnis-tree" seltype="single" hidecolumnpicker="false" flex="1"
|
||||
datasources="rdf:null" ref="http://www.technikum-wien.at/akte/liste"
|
||||
style="margin-left:10px;margin-right:10px;margin-bottom:5px;" height="150px" enableColumnDrag="true"
|
||||
|
||||
@@ -290,6 +290,10 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<style:style style:name="P27" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:text-properties fo:font-size="5pt" officeooo:rsid="000f65a0" officeooo:paragraph-rsid="000f65a0" style:font-size-asian="1.75pt" style:font-size-complex="2pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="Seitenumbruch" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:break-before="page"/>
|
||||
<style:text-properties fo:font-size="16pt" fo:font-weight="bold" officeooo:rsid="000de2a1" officeooo:paragraph-rsid="000de2a1" style:font-size-asian="16pt" style:font-weight-asian="bold" style:font-size-complex="16pt" style:font-weight-complex="bold"/>
|
||||
</style:style>
|
||||
<style:style style:name="T1" style:family="text">
|
||||
<style:text-properties fo:font-weight="bold" style:font-weight-asian="bold" style:font-weight-complex="bold"/>
|
||||
</style:style>
|
||||
@@ -310,7 +314,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
</style:style>
|
||||
</office:automatic-styles>
|
||||
<office:body>
|
||||
<xsl:apply-templates select="zeugnis"/>
|
||||
<xsl:apply-templates select="zeugnis"/>
|
||||
</office:body>
|
||||
</office:document-content>
|
||||
</xsl:template>
|
||||
@@ -323,42 +327,50 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Text"/>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
|
||||
</text:sequence-decls>
|
||||
<draw:frame draw:style-name="fr1" draw:name="Rahmen1" text:anchor-type="page" text:anchor-page-number="1" svg:y="21.001cm" draw:z-index="0">
|
||||
<draw:text-box fo:min-height="0.499cm" fo:min-width="2cm">
|
||||
<table:table table:name="Tabelle3" table:style-name="Tabelle3">
|
||||
<table:table-column table:style-name="Tabelle3.A"/>
|
||||
<table:table-column table:style-name="Tabelle3.B"/>
|
||||
<table:table-column table:style-name="Tabelle3.C"/>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Tabelle3.A1" office:value-type="string">
|
||||
<text:p text:style-name="P17">Vienna, <xsl:value-of select="ort_datum" /></text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle3.B1" office:value-type="string">
|
||||
<text:p text:style-name="P16"/>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle3.C1" office:value-type="string">
|
||||
<text:p text:style-name="P16"/>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Tabelle3.A2" office:value-type="string">
|
||||
<text:p text:style-name="P17">Place, Date</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle3.B2" office:value-type="string">
|
||||
<text:p text:style-name="P16"/>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle3.C2" office:value-type="string">
|
||||
<text:p text:style-name="P17"><xsl:value-of select="studiengangsleiter" /></text:p>
|
||||
<text:p text:style-name="P17">Program Director</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
</table:table>
|
||||
</draw:text-box>
|
||||
</draw:frame>
|
||||
<draw:frame xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" draw:style-name="fr3" draw:name="Bild1" text:anchor-type="page" text:anchor-page-number="1" svg:x="5.2cm" svg:width="3.51cm" svg:height="3.51cm" draw:z-index="1">
|
||||
<draw:image xlink:href="Pictures/10000201000002290000022939997AEC.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
|
||||
</draw:frame>
|
||||
<text:p text:style-name="P6">Transcript of Records</text:p>
|
||||
<!-- Wichtig für Mehrfachdruck (mehrere Studenten ausgewählt): Wenn ein Element (in diesem Fall Stempel und Unterschriftenblock) relativ zur SEITE ausgerichtet werden soll,
|
||||
muss für jedes Dokument (jeder neue Durchlauf der Schleife) ein draw:frame-Tag definiert werden. Diese müssen ALLE VOR den ersten text:p-Elementen stehen.
|
||||
Deshalb wirde erst die Schleife für die draw:frames aufgerufen, dann folg tder Inhalt -->
|
||||
<xsl:if test="position()=1">
|
||||
<xsl:for-each select="../zeugnis">
|
||||
<xsl:variable select="position()" name="number"/><!-- Variable number definieren, die nach jedem Dokument um eines erhöht wird (position) -->
|
||||
<draw:frame draw:style-name="fr1" draw:name="Rahmen{$number}" text:anchor-type="page" text:anchor-page-number="{$number}" svg:y="21.001cm" draw:z-index="0">
|
||||
<draw:text-box fo:min-height="0.499cm" fo:min-width="2cm">
|
||||
<table:table table:name="Tabelle3" table:style-name="Tabelle3">
|
||||
<table:table-column table:style-name="Tabelle3.A"/>
|
||||
<table:table-column table:style-name="Tabelle3.B"/>
|
||||
<table:table-column table:style-name="Tabelle3.C"/>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Tabelle3.A1" office:value-type="string">
|
||||
<text:p text:style-name="P17">Vienna, <xsl:value-of select="ort_datum" /></text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle3.B1" office:value-type="string">
|
||||
<text:p text:style-name="P16"/>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle3.C1" office:value-type="string">
|
||||
<text:p text:style-name="P16"/>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Tabelle3.A2" office:value-type="string">
|
||||
<text:p text:style-name="P17">Place, Date</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle3.B2" office:value-type="string">
|
||||
<text:p text:style-name="P16"/>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle3.C2" office:value-type="string">
|
||||
<text:p text:style-name="P17"><xsl:value-of select="studiengangsleiter" /></text:p>
|
||||
<text:p text:style-name="P17">Program Director</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
</table:table>
|
||||
</draw:text-box>
|
||||
</draw:frame>
|
||||
<draw:frame xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" draw:style-name="fr3" draw:name="Bild{$number}" text:anchor-type="page" text:anchor-page-number="{$number}" svg:x="5.2cm" svg:width="3.51cm" svg:height="3.51cm" draw:z-index="1">
|
||||
<draw:image xlink:href="Pictures/10000201000002290000022939997AEC.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
|
||||
</draw:frame>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
<text:p text:style-name="Seitenumbruch">Transcript of Records</text:p>
|
||||
<text:p text:style-name="P6">
|
||||
<xsl:choose>
|
||||
<xsl:when test="string-length(semester_bezeichnung)=0">
|
||||
|
||||
@@ -327,10 +327,12 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Text"/>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
|
||||
</text:sequence-decls>
|
||||
|
||||
<!-- Wichtig für Mehrfachdruck (mehrere Studenten ausgewählt): Wenn ein Element (in diesem Fall Stempel und Unterschriftenblock) relativ zur SEITE ausgerichtet werden soll,
|
||||
muss für jedes Dokument (jeder neue Durchlauf der Schleife) ein draw:frame-Tag definiert werden. Diese müssen ALLE VOR den ersten text:p-Elementen stehen.
|
||||
Deshalb wirde erst die Schleife für die draw:frames aufgerufen, dann folg tder Inhalt -->
|
||||
<xsl:if test="position()=1">
|
||||
<xsl:for-each select="../zeugnis">
|
||||
<xsl:variable select="position()" name="number"/>
|
||||
<xsl:variable select="position()" name="number"/><!-- Variable number definieren, die nach jedem Dokument um eines erhöht wird (position) -->
|
||||
<draw:frame draw:style-name="fr1" draw:name="Rahmen{$number}" text:anchor-type="page" text:anchor-page-number="{$number}" svg:y="21.001cm" draw:z-index="0">
|
||||
<draw:text-box fo:min-height="0.499cm" fo:min-width="2cm">
|
||||
<table:table table:name="Tabelle3" table:style-name="Tabelle3">
|
||||
|
||||
Reference in New Issue
Block a user