mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 08:22:17 +00:00
XML für Dokumentenvorlagen werden automatisch erweitert um die
Information ob das Dokument anschließend signiert wird.
This commit is contained in:
+10
-22
@@ -319,22 +319,14 @@ if (!isset($_REQUEST["archive"]))
|
||||
|
||||
$dokument->setFilename($filename);
|
||||
|
||||
if (!$dokument->create($output))
|
||||
die($dokument->errormsg);
|
||||
|
||||
if ($sign === true)
|
||||
{
|
||||
if ($dokument->sign($user))
|
||||
{
|
||||
$dokument->output();
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $dokument->errormsg;
|
||||
}
|
||||
$dokument->sign($user);
|
||||
}
|
||||
else
|
||||
|
||||
if ($dokument->create($output))
|
||||
$dokument->output();
|
||||
|
||||
$dokument->close();
|
||||
}
|
||||
}
|
||||
@@ -413,18 +405,14 @@ else
|
||||
|
||||
if ($sign === true)
|
||||
{
|
||||
if ($dokument->sign($user))
|
||||
{
|
||||
$doc = $dokument->output(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
$error = true;
|
||||
$errormsg = $dokument->errormsg;
|
||||
}
|
||||
$dokument->sign($user);
|
||||
}
|
||||
else
|
||||
|
||||
if ($dokument->create($output))
|
||||
$doc = $dokument->output(false);
|
||||
else
|
||||
$error = true;
|
||||
|
||||
$dokument->close();
|
||||
|
||||
if(!$error)
|
||||
|
||||
@@ -127,7 +127,8 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
<label value="Dokument" control="student-zeugnis-menulist-dokument"/>
|
||||
<menulist id="student-zeugnis-menulist-dokument"
|
||||
datasources="../rdf/vorlage.rdf.php" flex="1"
|
||||
ref="http://www.technikum-wien.at/vorlage" >
|
||||
ref="http://www.technikum-wien.at/vorlage"
|
||||
style="min-width:300px" >
|
||||
<template>
|
||||
<menupopup>
|
||||
<menuitem value="rdf:http://www.technikum-wien.at/vorlage/rdf#vorlage_kurzbz"
|
||||
|
||||
Reference in New Issue
Block a user