mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 08:22:17 +00:00
KTU Saalplan Ansicht für "Alle Räume"
This commit is contained in:
@@ -239,7 +239,11 @@ $(document).ready(function()
|
||||
<td valign="top">
|
||||
<select name="select" style="width:200px;" onChange="MM_jumpMenu(\'self\',this,0)">
|
||||
<option value="stpl_week.php" selected>'.$p->t('lvplan/raumAuswaehlen').'</option>';
|
||||
|
||||
if(defined('CIS_SAALPLAN_ALLERAEUME_OPTION') && CIS_SAALPLAN_ALLERAEUME_OPTION)
|
||||
echo '<option value="stpl_week.php?type=ort&ort_kurzbz=all" value="all">'.$p->t('lvplan/alleRaeume').'</option>';
|
||||
|
||||
|
||||
|
||||
for ($i=0;$i<$num_rows_ort;$i++)
|
||||
{
|
||||
$row=$db->db_fetch_object ($result_ort, $i);
|
||||
|
||||
@@ -324,7 +324,10 @@ if (! $stdplan->draw_header())
|
||||
}
|
||||
|
||||
// Stundenplan der Woche drucken
|
||||
$stdplan->draw_week($raumres,$uid);
|
||||
if($ort_kurzbz == 'all')
|
||||
$stdplan->draw_week ($raumres, $uid, false);
|
||||
else
|
||||
$stdplan->draw_week($raumres,$uid);
|
||||
|
||||
if (isset($count))
|
||||
echo "Es wurde".($count!=1?'n':'')." $count Stunde".($count!=1?'n':'')." reserviert!<BR>";
|
||||
|
||||
@@ -125,4 +125,8 @@ define('CIS_LEHRVERANSTALTUNG_WENNANGEMELDET_DETAILS_ANZEIGEN', true);
|
||||
|
||||
// Prestudent_ID des Dummy_Studenten (zB fuer Testtool)
|
||||
define('PRESTUDENT_ID_DUMMY_STUDENT', 13478);
|
||||
|
||||
//Legt fest ob die Option für alle Räume im Saalplan Dropdown angezeigt werden soll. (true|false)
|
||||
define('CIS_SAALPLAN_ALLERAEUME_OPTION', false);
|
||||
|
||||
?>
|
||||
|
||||
@@ -347,8 +347,10 @@ class lehrstunde extends basis_db
|
||||
$sql_query_lva=" AND lehrveranstaltung_id=".$this->db_add_param($lva);
|
||||
elseif ($type=='lektor')
|
||||
$sql_query.=" AND uid=".$this->db_add_param($uid);
|
||||
elseif ($type=='ort')
|
||||
elseif ($type=='ort' && $ort_kurzbz != 'all')
|
||||
$sql_query.=" AND ort_kurzbz=".$this->db_add_param($ort_kurzbz);
|
||||
elseif ($type=='ort' && $ort_kurzbz == 'all')
|
||||
$sql_query.=" AND ort_kurzbz IS NOT NULL AND ort_kurzbz !='Dummy'";
|
||||
elseif ($type=='gruppe')
|
||||
$sql_query.=" AND gruppe_kurzbz=".$this->db_add_param($gruppe_kurzbz);
|
||||
elseif($type=='fachbereich')
|
||||
@@ -435,7 +437,7 @@ class lehrstunde extends basis_db
|
||||
$stunde->reservierung=false;
|
||||
$this->lehrstunden[$i]=$stunde;
|
||||
}
|
||||
|
||||
|
||||
// Reservierungsdaten ermitteln
|
||||
if ($type!='idList' && $type!='fachbereich')
|
||||
{
|
||||
|
||||
@@ -96,6 +96,8 @@ class wochenplan extends basis_db
|
||||
public $wochenplan;
|
||||
public $errormsg;
|
||||
public $fachbereich_kurzbz;
|
||||
|
||||
public $raeume = array();
|
||||
|
||||
/**
|
||||
* Konstruktor
|
||||
@@ -171,8 +173,9 @@ class wochenplan extends basis_db
|
||||
// Ort
|
||||
if ($type=='ort' && $ort_kurzbz==NULL)
|
||||
{
|
||||
$this->errormsg='Fehler: Kurzbezeichnung des Orts ist nicht gesetzt';
|
||||
return false;
|
||||
//$this->errormsg='Fehler: Kurzbezeichnung des Orts ist nicht gesetzt';
|
||||
//return false;
|
||||
$this->ort_kurzbz = "all";
|
||||
}
|
||||
elseif ($type=='ort')
|
||||
$this->ort_kurzbz=$ort_kurzbz;
|
||||
@@ -265,7 +268,7 @@ class wochenplan extends basis_db
|
||||
}
|
||||
|
||||
//ortdaten ermitteln
|
||||
if ($this->type=='ort')
|
||||
if ($this->type=='ort' && $this->ort_kurzbz != 'all')
|
||||
{
|
||||
$sql_query="SELECT bezeichnung, ort_kurzbz, planbezeichnung, ausstattung, max_person, content_id FROM public.tbl_ort WHERE ort_kurzbz=".$this->db_add_param($this->ort_kurzbz);
|
||||
//echo $sql_query;
|
||||
@@ -291,6 +294,30 @@ class wochenplan extends basis_db
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->type=='ort' && $this->ort_kurzbz == 'all')
|
||||
{
|
||||
$sql_query="SELECT bezeichnung, ort_kurzbz, planbezeichnung, ausstattung, max_person, content_id FROM public.tbl_ort WHERE lehre AND ort_kurzbz != 'Dummy'";
|
||||
//echo $sql_query;
|
||||
if (!$this->db_query($sql_query))
|
||||
{
|
||||
$this->errormsg=$this->db_last_error();
|
||||
return false;
|
||||
}
|
||||
|
||||
while($row = $this->db_fetch_object())
|
||||
{
|
||||
$obj = new stdClass();
|
||||
$obj->ort_bezeichnung = $row->bezeichnung;
|
||||
$obj->ort_kurzbz = $row->ort_kurzbz;
|
||||
$obj->ort_planbezeichnung = $row->planbezeichnung;
|
||||
$obj->ort_ausstattung = $row->ausstattung;
|
||||
$obj->ort_max_person = $row->max_person;
|
||||
$obj->ort_content_id = $row->content_id;
|
||||
$obj->link.='&ort_kurzbz='.$this->ort_kurzbz; //Link erweitern
|
||||
array_push($this->raeume, $obj);
|
||||
}
|
||||
}
|
||||
|
||||
// Studiengangsdaten ermitteln
|
||||
if ($this->type=='student' || $this->type=='verband' || $this->type=='lva')
|
||||
@@ -377,7 +404,7 @@ class wochenplan extends basis_db
|
||||
$this->errormsg=$this->wochenplan->errormsg;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// Stundenplandaten aufbereiten
|
||||
for($i=0;$i<$anz;$i++)
|
||||
{
|
||||
@@ -453,7 +480,7 @@ class wochenplan extends basis_db
|
||||
echo $p->t('global/gruppe').': '.$this->grp.'<br>';
|
||||
$this->link.='&stg_kz='.$this->stg_kz.'&sem='.$this->sem.'&ver='.$this->ver.'&grp='.$this->grp;
|
||||
}
|
||||
if ($this->type=='ort')
|
||||
if ($this->type=='ort' && $this->ort_kurzbz != 'all')
|
||||
echo '<strong>'.$p->t('lvplan/raum').': </strong>'.$this->ort_kurzbz.' - '.$this->ort_bezeichnung.' - '.($this->ort_max_person!=''?'( '.$this->ort_max_person.' '.$p->t('lvplan/personen').' )':'').($this->ort_content_id!=''?' - <a href="../../../cms/content.php?content_id='.$this->ort_content_id.'" target="_self">'.$p->t('lvplan/rauminformationenAnzeigen').'</a>':'').'<br>'.$this->ort_ausstattung;
|
||||
if ($this->type=='lva')
|
||||
$this->link.='&lva='.$this->lva;
|
||||
@@ -887,7 +914,7 @@ class wochenplan extends basis_db
|
||||
foreach($uEinheit['lektor'] as $ueLektor)
|
||||
echo $ueLektor."<BR />";
|
||||
}
|
||||
if ($this->type!='ort')
|
||||
if ($this->type!='ort' || $this->ort_kurzbz == 'all')
|
||||
{
|
||||
$uEinheit['ort']=array_unique($uEinheit['ort']);
|
||||
foreach($uEinheit['ort'] as $ueOrt)
|
||||
|
||||
@@ -84,4 +84,5 @@ $this->phrasen['lvplan/persoenlichenAbonnieren']='Persönlichen LV-Plan abonnier
|
||||
$this->phrasen['lvplan/aktuelleKW']='Aktuelle Kalenderwoche';
|
||||
$this->phrasen['lvplan/rauminformationenAnzeigen']='Rauminformationen anzeigen';
|
||||
$this->phrasen['lvplan/personen']='Personen';
|
||||
$this->phrasen['lvplan/alleRaeume']='Alle Räume';
|
||||
?>
|
||||
Reference in New Issue
Block a user