From bb915bbb20ba9cefc772d08407356773a88e7e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Mon, 29 Oct 2012 13:50:19 +0000 Subject: [PATCH] Coodle - Suche nach Ort Bezeichnungen funktioniert nun --- cis/private/lvplan/stpl_detail.php | 4 ++++ include/ort.class.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cis/private/lvplan/stpl_detail.php b/cis/private/lvplan/stpl_detail.php index dc31c7b54..29348281e 100644 --- a/cis/private/lvplan/stpl_detail.php +++ b/cis/private/lvplan/stpl_detail.php @@ -207,8 +207,10 @@ if ($num_rows_stpl>0) '; $ort = new ort(); + $i=0; while($row = $db->db_fetch_object($erg_stpl)) { + $i++; $unr = $row->unr; $ortkurzbz = $row->ort_kurzbz; $lehrfachkurzbz = $row->lehrfach; @@ -259,8 +261,10 @@ if ($num_rows_repl>0) echo '

'.$p->t('lvplan/reservierungen').'

'; echo ''; echo ''; + $i=0; while($row = $db->db_fetch_object($erg_repl)) { + $i++; $titel=$row->titel; $ortkurzbz=$row->ort_kurzbz; $titelpre=$row->titelpre; diff --git a/include/ort.class.php b/include/ort.class.php index caed5243e..fb9c082b7 100644 --- a/include/ort.class.php +++ b/include/ort.class.php @@ -368,8 +368,8 @@ class ort extends basis_db FROM public.tbl_ort WHERE - ort_kurzbz like '%".$this->db_escape($filter)."%' - OR bezeichnung like '%".$this->db_escape($filter)."%' + lower(ort_kurzbz) like '%".$this->db_escape(mb_strtolower($filter))."%' + OR lower(bezeichnung) like '%".$this->db_escape(mb_strtolower($filter))."%' ORDER BY ort_kurzbz;"; if(!$this->db_query($qry))
'.$p->t('global/titel').''.$p->t('lvplan/ort').''.$p->t('global/person').''.$p->t('global/beschreibung').'