mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
- Lehrauftrag: Bugfix bei Lehrveranstaltungen mit Umlauten an 30. Stelle
- CIS: Bugfix bei Fachbereichsberechtigungen bei LVs ohne Gruppenzuordnung - Encoding fix bei Lehrveranstaltungsverwaltung
This commit is contained in:
@@ -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'";
|
||||
|
||||
|
||||
@@ -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 '<strong>Ort: </strong>'.$this->ort_kurzbz.' - '.$this->ort_bezeichnung.' - '.$this->ort_planbezeichnung.'<br>'.$this->ort_ausstattung.'<br>';
|
||||
echo '<strong>Ort: </strong>'.$this->ort_kurzbz.' - '.$this->ort_bezeichnung.' - '.($this->ort_max_person!=''?'( '.$this->ort_max_person.' Personen )':'').'<br>'.$this->ort_ausstattung.'<br>';
|
||||
echo '</P>'.$this->crlf;
|
||||
echo ' <div valign="bottom" align="center">'.$this->crlf;
|
||||
|
||||
@@ -1056,7 +1058,7 @@ class wochenplan extends basis_db
|
||||
// Initatialisierung der Variablen
|
||||
$lehrverband=array();
|
||||
// Name der View
|
||||
$stpl_view=VIEW_BEGIN.$db_stpl_table;
|
||||
$stpl_view='lehre.'.VIEW_BEGIN.$db_stpl_table;
|
||||
$stpl_view_id=$db_stpl_table.TABLE_ID;
|
||||
//Kalenderdaten setzen
|
||||
$this->datum=montag($datum);
|
||||
|
||||
@@ -59,8 +59,8 @@ $ANZAHL_ZEILEN_PRO_SEITE=25;
|
||||
//abgeschnitten und '...' angehaengt
|
||||
function CutString($strVal, $limit)
|
||||
{
|
||||
if(strlen($strVal) > $limit+3)
|
||||
return substr($strVal, 0, $limit) . "...";
|
||||
if(mb_strlen($strVal) > $limit+3)
|
||||
return mb_substr($strVal, 0, $limit) . "...";
|
||||
else
|
||||
return $strVal;
|
||||
}
|
||||
|
||||
@@ -275,6 +275,7 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Studiengang - Details</title>
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
|
||||
<script src="../../include/js/mailcheck.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user