diff --git a/cis/private/lehre/lesson.php b/cis/private/lehre/lesson.php
index 34648b0eb..df2ac402a 100644
--- a/cis/private/lehre/lesson.php
+++ b/cis/private/lehre/lesson.php
@@ -26,22 +26,21 @@
// ------------------------------------------------------------------------------------------
// Datenbankanbindung
// ------------------------------------------------------------------------------------------
- require_once('../../../include/basis_db.class.php');
- if (!$db = new basis_db())
- die('Fehler beim Herstellen der Datenbankverbindung');
-
+
// ---------------- Diverse Funktionen und UID des Benutzers ermitteln
require_once('../../../include/functions.inc.php');
- if (!$user=get_uid())
- die('Sie sind nicht angemeldet. Es wurde keine Benutzer UID gefunden !');
-
-
- require_once('../../../include/benutzerberechtigung.class.php');
+ require_once('../../../include/benutzerberechtigung.class.php');
require_once('../../../include/studiensemester.class.php');
require_once('../../../include/lehrveranstaltung.class.php');
require_once('../../../include/studiengang.class.php');
require_once('../../../include/moodle_course.class.php');
+ if (!$db = new basis_db())
+ die('Fehler beim Herstellen der Datenbankverbindung');
+
+ if (!$user=get_uid())
+ die('Sie sind nicht angemeldet. Es wurde keine Benutzer UID gefunden !');
+
// Init
$user_is_allowed_to_upload=false;
@@ -186,7 +185,9 @@ function hideSemPlanHelp(){
}
//Berechtigungen auf Fachbereichsebene
- $qry = "SELECT distinct fachbereich_kurzbz, studiengang_kz FROM campus.vw_lehreinheit WHERE lehrveranstaltung_id='$lvid'";
+ $qry = "SELECT distinct fachbereich_kurzbz, tbl_lehrveranstaltung.studiengang_kz
+ FROM lehre.tbl_lehrveranstaltung JOIN lehre.tbl_lehreinheit USING(lehrveranstaltung_id) JOIN lehre.tbl_lehrfach USING(lehrfach_id)
+ WHERE lehrveranstaltung_id='$lvid'";
if(isset($angezeigtes_stsem) && $angezeigtes_stsem!='')
$qry .= " AND studiensemester_kurzbz='$angezeigtes_stsem'";
diff --git a/include/wochenplan.class.php b/include/wochenplan.class.php
index c37f13bc2..eeff973ea 100644
--- a/include/wochenplan.class.php
+++ b/include/wochenplan.class.php
@@ -63,6 +63,7 @@ class wochenplan extends basis_db
public $ort_bezeichnung;
public $ort_planbezeichnung;
public $ort_ausstattung;
+ public $ort_max_person;
public $gruppe_kurzbz;
public $gruppe_bezeichnung;
@@ -225,7 +226,7 @@ class wochenplan extends basis_db
//ortdaten ermitteln
if ($this->type=='ort')
{
- $sql_query="SELECT bezeichnung, ort_kurzbz, planbezeichnung, ausstattung FROM public.tbl_ort WHERE ort_kurzbz='$this->ort_kurzbz'";
+ $sql_query="SELECT bezeichnung, ort_kurzbz, planbezeichnung, ausstattung, max_person FROM public.tbl_ort WHERE ort_kurzbz='$this->ort_kurzbz'";
//echo $sql_query;
if (!$this->db_query($sql_query))
$this->errormsg=$this->db_last_error();
@@ -235,6 +236,7 @@ class wochenplan extends basis_db
$this->ort_kurzbz = $row->ort_kurzbz;
$this->ort_planbezeichnung = $row->planbezeichnung;
$this->ort_ausstattung = $row->ausstattung;
+ $this->ort_max_person = $row->max_person;
$this->link.='&ort_kurzbz='.$this->ort_kurzbz; //Link erweitern
}
}
@@ -390,7 +392,7 @@ class wochenplan extends basis_db
$this->link.='&stg_kz='.$this->stg_kz.'&sem='.$this->sem.'&ver='.$this->ver.'&grp='.$this->grp;
}
if ($this->type=='ort')
- echo 'Ort: '.$this->ort_kurzbz.' - '.$this->ort_bezeichnung.' - '.$this->ort_planbezeichnung.'
'.$this->ort_ausstattung.'
';
+ echo 'Ort: '.$this->ort_kurzbz.' - '.$this->ort_bezeichnung.' - '.($this->ort_max_person!=''?'( '.$this->ort_max_person.' Personen )':'').'
'.$this->ort_ausstattung.'
';
echo '