From 3c90eb409a79fb7fa4febd75582bf558a6ed10fb Mon Sep 17 00:00:00 2001
From: Christian Paminger
Date: Fri, 6 Jun 2008 14:46:03 +0000
Subject: [PATCH]
---
include/wochenplan.class.php | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/wochenplan.class.php b/include/wochenplan.class.php
index 42eb0b335..260922b96 100644
--- a/include/wochenplan.class.php
+++ b/include/wochenplan.class.php
@@ -50,6 +50,7 @@ class wochenplan
var $ort_kurzbz; // @brief Ort PK
var $ort_bezeichnung;
var $ort_planbezeichnung;
+ var $ort_ausstattung;
var $gruppe_kurzbz;
var $gruppe_bezeichnung;
@@ -201,13 +202,14 @@ class wochenplan
//ortdaten ermitteln
if ($this->type=='ort')
{
- $sql_query="SELECT bezeichnung, ort_kurzbz, planbezeichnung FROM public.tbl_ort WHERE ort_kurzbz='$this->ort_kurzbz'";
+ $sql_query="SELECT bezeichnung, ort_kurzbz, planbezeichnung, ausstattung FROM public.tbl_ort WHERE ort_kurzbz='$this->ort_kurzbz'";
//echo $sql_query;
if (!$result=pg_query($this->conn, $sql_query))
$this->errormsg=pg_last_error($this->conn);
$this->ort_bezeichnung=pg_result($result,0,'"bezeichnung"');
$this->ort_kurzbz=pg_result($result,0,'"ort_kurzbz"');
$this->ort_planbezeichnung=pg_result($result,0,'"planbezeichnung"');
+ $this->ort_ausstattung=pg_result($result,0,'"ausstattung"');
$this->link.='&ort_kurzbz='.$this->ort_kurzbz; //Link erweitern
}
@@ -352,7 +354,7 @@ class wochenplan
$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.'
';
+ echo 'Ort: '.$this->ort_kurzbz.' - '.$this->ort_bezeichnung.' - '.$this->ort_planbezeichnung.'
'.$this->ort_ausstattung.'
';
echo '
'.$this->crlf;
echo ' '.$this->crlf;