Added Download PDF of accepted Lehrauftraege (seperated by FH /Lehrgaenge)

Lectors can now download as pfd all their accepted Lehrauftraege.
Therefore two buttons are available for seperate download of
Lehrauftraege on FH or Lehrgaenge.
The queries are proofing now if a contract exists and if the status is
'akzeptiert'.
This commit is contained in:
Cris
2020-03-26 14:16:37 +01:00
parent 1a9ac9e1fa
commit 0b1d847882
4 changed files with 70 additions and 5 deletions
+7 -2
View File
@@ -37,6 +37,7 @@ require_once('../../include/studiengang.class.php');
require_once('../../include/student.class.php');
require_once('../../include/prestudent.class.php');
require_once('../../include/dokument_export.class.php');
require_once('../../include/person.class.php');
if (!$db = new basis_db())
die('Fehler beim Oeffnen der Datenbankverbindung');
@@ -135,6 +136,8 @@ if (isset($_GET['typ']))
$params .= '&typ='.$_GET['typ'];
if (isset($_GET['all']))
$params .= '&all=1';
if (isset($_GET['xsl_oe_kurzbz']))
$params .= '&xsl_oe_kurzbz='. $_GET['xsl_oe_kurzbz'];
//OE fuer Output ermitteln
@@ -166,7 +169,7 @@ else
$konto = new konto();
if (($user == $_GET["uid"]) || $rechte->isBerechtigt('admin'))
if (((isset($_GET["uid"]) && $user == $_GET["uid"])) || $rechte->isBerechtigt('admin'))
{
$buchungstypen = array();
if (defined("CIS_DOKUMENTE_STUDIENBEITRAG_TYPEN"))
@@ -232,7 +235,9 @@ if (($user == $_GET["uid"]) || $rechte->isBerechtigt('admin'))
$filename .= '-'.$studienordnung->studiengangkurzbzlang;
break;
default:
$filename = $xsl;
$person = new Person();
$person->getPersonFromBenutzer($user);
$filename = $xsl. '_'. $person->nachname;
}
$dokument->setFilename($filename);