From 1e29ecb5909853e7bdf1d34947c6e9941a7a4deb Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 25 May 2005 12:46:54 +0000 Subject: [PATCH] systemlogs html 4.01 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@448 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/addons/logview/class_logview.inc | 23 +++++++++++++++++++++ plugins/addons/logview/contents.tpl | 26 ++++++++++++++++-------- 2 files changed, 41 insertions(+), 8 deletions(-) diff --git a/plugins/addons/logview/class_logview.inc b/plugins/addons/logview/class_logview.inc index a728785bf..db979b13a 100644 --- a/plugins/addons/logview/class_logview.inc +++ b/plugins/addons/logview/class_logview.inc @@ -239,9 +239,32 @@ class logview extends plugin $smarty->assign("log_image", get_template_path('images/log_warning.png')); $smarty->assign("ruleset_image", get_template_path('images/edit.png')); $smarty->assign("launchimage", get_template_path('images/launch.png')); + + $smarty->assign("hostlist", $this->hostlist); + + if(count ($this->hostlist)){ + $smarty->assign("SELECT_hostlist",TRUE); + }else{ + $smarty->assign("SELECT_hostlist",FALSE); + } + $smarty->assign("loglevellist", $this->loglevellist); + + if(count ($this->loglevellist)){ + $smarty->assign("SELECT_loglevellist",TRUE); + }else{ + $smarty->assign("SELECT_loglevellist",FALSE); + } + $smarty->assign("tilist", $this->tilist); + + if(count ($this->tilist)){ + $smarty->assign("SELECT_tilist",TRUE); + }else{ + $smarty->assign("SELECT_tilist",FALSE); + } + $logfilter['regex']= preg_replace('/\%/', '*', $logfilter['regex']); foreach( array("host", "log_level", "time", "regex") as $type){ $smarty->assign("$type", $logfilter[$type]); diff --git a/plugins/addons/logview/contents.tpl b/plugins/addons/logview/contents.tpl index ab376bc2b..e6e73d558 100644 --- a/plugins/addons/logview/contents.tpl +++ b/plugins/addons/logview/contents.tpl @@ -2,17 +2,20 @@

[F]{t}Filter{/t}

-

- +
-
+ @@ -20,7 +23,11 @@ @@ -31,13 +38,17 @@   -
 {t}Show hosts{/t}
 {t}Log level{/t}
+ @@ -70,7 +81,6 @@
 {t}Time interval{/t}
-


-- 2.30.2