PDF-Export prueft ob style in DB vorhanden

Wenn in der DB ein style hinterlegt ist, wird dieses verwendet,
ansonsten das xsl-style, welches übergeben wird.
This commit is contained in:
kindlm
2015-07-24 11:38:55 +02:00
parent 47113b6686
commit d80f51b446
3 changed files with 58 additions and 19 deletions
+16 -3
View File
@@ -240,12 +240,15 @@ class vorlage extends basis_db
*/
public function getOEsFromVorlage($vorlage_kurzbz=null)
{
$qry ="SELECT
oe_kurzbz
$qry ="SELECT DISTINCT
tbl_organisationseinheit.*
FROM
public.tbl_vorlagestudiengang
JOIN
public.tbl_organisationseinheit USING (oe_kurzbz)
WHERE
vorlage_kurzbz=".$this->db_add_param($vorlage_kurzbz);
vorlage_kurzbz=".$this->db_add_param($vorlage_kurzbz)."
ORDER BY oe_kurzbz";
if($result = $this->db_query($qry))
{
@@ -253,6 +256,12 @@ class vorlage extends basis_db
{
$obj = new vorlage();
$obj->oe_kurzbz = $row->oe_kurzbz;
$obj->oe_parent_kurzbz = $row->oe_parent_kurzbz;
$obj->bezeichnung = $row->bezeichnung;
$obj->organisationseinheittyp_kurzbz = $row->organisationseinheittyp_kurzbz;
$obj->aktiv = $this->db_parse_bool($row->aktiv);
$obj->mailverteiler = $this->db_parse_bool($row->mailverteiler);
$obj->lehre = $this->db_parse_bool($row->lehre);
$this->result[]= $obj;
}
@@ -428,6 +437,10 @@ class vorlage extends basis_db
$this->text = $row->text;
$this->mimetype = $row->mimetype;
$this->bezeichnung = $row->bezeichnung;
$this->style = $row->style;
$this->berechtigung = $row->berechtigung;
$this->anmerkung_vorlagestudiengang = $row->anmerkung_vorlagestudiengang;
return true;
}
else