From 3b2528eff62e96878dffab7c46b177a84b47f7cb Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 4 Feb 2010 11:06:11 +0000 Subject: [PATCH] Updated autocompletion git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15585 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/autocomplete.php | 6 +++--- gosa-core/html/themes/default/style.css | 4 ++++ gosa-core/include/class_filter.inc | 2 +- gosa-core/include/functions.inc | 13 +++++++++++++ 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/gosa-core/html/autocomplete.php b/gosa-core/html/autocomplete.php index caaa3a0c1..74b46abd2 100644 --- a/gosa-core/html/autocomplete.php +++ b/gosa-core/html/autocomplete.php @@ -49,15 +49,15 @@ if (isset($_GET['type']) && $_GET['type'] == "base") { continue; } if (mb_stristr($info['name'], $search) !== false) { - $res.= "
  • ".$pathMapping[$dn].($info['description']==''?"":" [".$info['description']."]")."
  • "; + $res.= "
  • ".mark($search, $pathMapping[$dn]).($info['description']==''?"":" [".mark($search, $info['description'])."]")."
  • "; continue; } if (mb_stristr($info['description'], $search) !== false) { - $res.= "
  • ".$pathMapping[$dn].($info['description']==''?"":" [".$info['description']."]")."
  • "; + $res.= "
  • ".mark($search, $pathMapping[$dn]).($info['description']==''?"":" [".mark($search, $info['description'])."]")."
  • "; continue; } if (mb_stristr($pathMapping[$dn], $search) !== false) { - $res.= "
  • ".$pathMapping[$dn].($info['description']==''?"":" [".$info['description']."]")."
  • "; + $res.= "
  • ".mark($search, $pathMapping[$dn]).($info['description']==''?"":" [".mark($search, $info['description'])."]")."
  • "; continue; } } diff --git a/gosa-core/html/themes/default/style.css b/gosa-core/html/themes/default/style.css index 302d4f1fd..8bf92d7a9 100644 --- a/gosa-core/html/themes/default/style.css +++ b/gosa-core/html/themes/default/style.css @@ -2007,3 +2007,7 @@ font-style:italic; * html div.treeList { height: expression( this.scrollHeight > 500 ? "500px" : "auto" ); } + +span.mark { +color:#B22; +} diff --git a/gosa-core/include/class_filter.inc b/gosa-core/include/class_filter.inc index a8bb6fa3e..51ffec05e 100644 --- a/gosa-core/include/class_filter.inc +++ b/gosa-core/include/class_filter.inc @@ -530,7 +530,7 @@ class filter { echo '