From 781ac32039d036f80334442dd6d7526ad8606b23 Mon Sep 17 00:00:00 2001
From: Christian Paminger
Date: Thu, 11 Oct 2007 11:40:25 +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 f8a5bf53e..c879f3364 100644
--- a/include/wochenplan.class.php
+++ b/include/wochenplan.class.php
@@ -48,6 +48,7 @@ class wochenplan
var $ort_kurzbz; // @brief Ort PK
var $ort_bezeichnung;
+ var $ort_planbezeichnung;
var $gruppe_kurzbz;
var $gruppe_bezeichnung;
@@ -199,12 +200,13 @@ class wochenplan
//ortdaten ermitteln
if ($this->type=='ort')
{
- $sql_query="SELECT bezeichnung, ort_kurzbz FROM public.tbl_ort WHERE ort_kurzbz='$this->ort_kurzbz'";
+ $sql_query="SELECT bezeichnung, ort_kurzbz, planbezeichnung 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->link.='&ort_kurzbz='.$this->ort_kurzbz; //Link erweitern
}
@@ -346,7 +348,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.'
';
+ echo 'Ort: '.$this->ort_kurzbz.' - '.$this->ort_bezeichnung.' - '.$this->ort_planbezeichnung.'
';
echo '
'.$this->crlf;
echo ' '.$this->crlf;