FAS: BESCHEID generation & archiving

. generation and archiving bescheide in EN and DE
. adaptation of stg_art in xsl-forms and abschluesspruefung.rdf.php
. deletion of few Lehrgang-Zeugnis-xsl templates, which are not used anymore
This commit is contained in:
cris-technikum
2018-01-30 10:44:39 +01:00
parent 1ed319db41
commit ba90fe8072
25 changed files with 1406 additions and 2918 deletions
+5 -5
View File
@@ -272,7 +272,7 @@ if($xsl=='AccountInfo')
exit;
}
}
elseif(in_array($xsl,array('Lehrveranstaltungszeugnis','Zertifikat','Diplomurkunde','Diplomzeugnis','Bakkurkunde','BakkurkundeEng','Bakkzeugnis',
elseif(in_array($xsl,array('Lehrveranstaltungszeugnis','Zertifikat','Diplomurkunde','Diplomzeugnis','Bescheid', 'BescheidEng','Bakkurkunde','BakkurkundeEng','Bakkzeugnis',
'PrProtokollBakk','PrProtokollDipl','Lehrauftrag','DiplomurkundeEng','Zeugnis','ZeugnisEng','StudienerfolgEng',
'Sammelzeugnis','PrProtDiplEng','PrProtBakkEng','BakkzeugnisEng','DiplomzeugnisEng','statusbericht',
'DiplSupplement','Zutrittskarte','Projektbeschr','Ausbildungsver','AusbildStatus','PrProtBA','PrProtMA',
@@ -395,7 +395,7 @@ if (!isset($_REQUEST["archive"]))
default:
$endung = 'pdf';
}
// Load the XSL source
$xsl_doc = new DOMDocument;
@@ -738,14 +738,14 @@ else
$tempPdfName = $vorlage->vorlage_kurzbz.'.pdf';
exec("unoconv -e IsSkipEmptyPages=false --stdout -f pdf $tempname_zip > $tempPdfName");
}
$file = $tempfolder.'/'.$tempPdfName;
$file = $tempfolder.'/'.$tempPdfName;
}
else
{
if(PDF_CREATE_FUNCTION=='FOP')
{
$fop = new fop();
$file = $fop->generatePdf($xml_doc->saveXML(), $xsl_content, $filename, "F");
$file = $fop->generatePdf($xml_doc->saveXML(), $xsl_content, $filename, "F");
}
else
{
@@ -769,7 +769,7 @@ else
echo('Failed to generate PDF');
}
$tmp = sys_get_temp_dir();
$file = $tmp."/FHC".$filename.".pdf";
$file = $tmp."/FHC".$filename.".pdf";
}
}