From d0c3da30a0f44466848d0877c8423d2f2c76c770 Mon Sep 17 00:00:00 2001
From: Manfred Kindl
Date: Tue, 15 Oct 2013 18:13:31 +0000
Subject: [PATCH] wochenplan.class.php: Rauminfos kommen nun aus der content_id
---
include/wochenplan.class.php | 5 +++--
locale/de-AT/lvplan.php | 2 ++
locale/en-US/lvplan.php | 2 ++
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/include/wochenplan.class.php b/include/wochenplan.class.php
index b80b8007c..4dabb6ebe 100644
--- a/include/wochenplan.class.php
+++ b/include/wochenplan.class.php
@@ -242,7 +242,7 @@ class wochenplan extends basis_db
//ortdaten ermitteln
if ($this->type=='ort')
{
- $sql_query="SELECT bezeichnung, ort_kurzbz, planbezeichnung, ausstattung, max_person FROM public.tbl_ort WHERE ort_kurzbz=".$this->db_add_param($this->ort_kurzbz);
+ $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;
if (!$this->db_query($sql_query))
{
@@ -257,6 +257,7 @@ class wochenplan extends basis_db
$this->ort_planbezeichnung = $row->planbezeichnung;
$this->ort_ausstattung = $row->ausstattung;
$this->ort_max_person = $row->max_person;
+ $this->ort_content_id = $row->content_id;
$this->link.='&ort_kurzbz='.$this->ort_kurzbz; //Link erweitern
}
else
@@ -429,7 +430,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 ''.$p->t('lvplan/raum').': '.(1==1 || is_file(RAUMINFO_PATH.trim($this->ort_kurzbz).'.html')?''.$this->ort_kurzbz.'':$this->ort_kurzbz).' - '.$this->ort_bezeichnung.' - '.($this->ort_max_person!=''?'( '.$this->ort_max_person.' Personen )':'').'
'.$this->ort_ausstattung;
+ echo ''.$p->t('lvplan/raum').': '.$this->ort_kurzbz.' - '.$this->ort_bezeichnung.' - '.($this->ort_max_person!=''?'( '.$this->ort_max_person.' '.$p->t('lvplan/personen').' )':'').($this->ort_content_id!=''?' - '.$p->t('lvplan/rauminformationenAnzeigen').'':'').'
'.$this->ort_ausstattung;
echo '
'.$this->crlf;
echo ' ';
//echo ' | '.$p->t('lvplan/semesterplaene').' |
';
diff --git a/locale/de-AT/lvplan.php b/locale/de-AT/lvplan.php
index fce316d8d..b13ca93d1 100644
--- a/locale/de-AT/lvplan.php
+++ b/locale/de-AT/lvplan.php
@@ -77,4 +77,6 @@ $this->phrasen['lvplan/semesterplaene']='Semesterübersicht';
$this->phrasen['lvplan/hauptmenue']='Hauptmenü';
$this->phrasen['lvplan/nameEingeben']='Name eingeben';
$this->phrasen['lvplan/aktuelleKW']='Aktuelle Kalenderwoche';
+$this->phrasen['lvplan/rauminformationenAnzeigen']='Rauminformationen anzeigen';
+$this->phrasen['lvplan/personen']='Personen';
?>
\ No newline at end of file
diff --git a/locale/en-US/lvplan.php b/locale/en-US/lvplan.php
index c8fa4225f..e237113fa 100644
--- a/locale/en-US/lvplan.php
+++ b/locale/en-US/lvplan.php
@@ -78,4 +78,6 @@ $this->phrasen['lvplan/semesterplaene']='Overview';
$this->phrasen['lvplan/hauptmenue']='Main Menu';
$this->phrasen['lvplan/nameEingeben']='Enter name';
$this->phrasen['lvplan/aktuelleKW']='Current calendar week';
+$this->phrasen['lvplan/rauminformationenAnzeigen']='Show room information';
+$this->phrasen['lvplan/personen']='persons';
?>
\ No newline at end of file