Coodle - Suche nach Ort Bezeichnungen funktioniert nun

This commit is contained in:
Andreas Österreicher
2012-10-29 13:50:19 +00:00
parent df53153313
commit bb915bbb20
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -207,8 +207,10 @@ if ($num_rows_stpl>0)
</tr>';
$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 '<h2>'.$p->t('lvplan/reservierungen').'</h2>';
echo '<table class="stdplan">';
echo '<tr><th>'.$p->t('global/titel').'</th><th>'.$p->t('lvplan/ort').'</th><th>'.$p->t('global/person').'</th><th>'.$p->t('global/beschreibung').'</th></tr>';
$i=0;
while($row = $db->db_fetch_object($erg_repl))
{
$i++;
$titel=$row->titel;
$ortkurzbz=$row->ort_kurzbz;
$titelpre=$row->titelpre;
+2 -2
View File
@@ -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))