mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 09:52:22 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user