summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8ac159c)
raw | patch | inline | side by side (parent: 8ac159c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 25 May 2005 12:46:54 +0000 (12:46 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 25 May 2005 12:46:54 +0000 (12:46 +0000) |
plugins/addons/logview/class_logview.inc | patch | blob | history | |
plugins/addons/logview/contents.tpl | patch | blob | history |
index a728785bf1031084d05245b2fa3cd9f0113f2072..db979b13ab861df6a9675c99d13a1e40a916bcf6 100644 (file)
$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]);
index ab376bc2b24ec6aa7a02c5f9b0ffb1423e50e903..e6e73d55886877ee3008cf5f5bcaa069c67dd85d 100644 (file)
<p class="contentboxh"><img src="{$launchimage}" align="right" alt="[F]">{t}Filter{/t}</p>
</div>
<div class="contentboxb">
- <p class="contentboxb" style="border-top:1px solid #B0B0B0; padding:0px;">
- <table width="100%">
+ <table width="100%" class="contentboxb" style="border-top:1px solid #B0B0B0; padding:0px;">
<tr>
- <td width=33%>
+ <td width="33%">
<table>
<tr>
<td><img alt="" align="middle" border=0 src="{$server_image}"> {t}Show hosts{/t}</td>
<td>
<select name="host" size=1 onChange="mainform.submit()">
- {html_options options=$hostlist selected=$host}
+ {if $SELECT_hostlist=="true"}
+ {html_options options=$hostlist selected=$host}
+ {else}
+ <option disabled></option>
+ {/if}
</select>
</td>
</tr>
<td><img alt="" align="middle" border=0 src="{$log_image}"> {t}Log level{/t}</td>
<td>
<select name="log_level" size=1 onChange="mainform.submit()">
- {html_options options=$loglevellist selected=$log_level}
+ {if $SELECT_loglevellist=="true"}
+ {html_options options=$loglevellist selected=$log_level}
+ {else}
+ <option disabled></option>
+ {/if}
</select>
</td>
</tr>
</td>
- <td width=33%>
+ <td width="33%">
<table>
<tr>
<td><img alt="" align="middle" border=0 src="{$time_image}"> {t}Time interval{/t}</td>
<td>
<select name="time" size=1 onChange="mainform.submit()">
- {html_options options=$tilist selected=$time}
+ {if $SELECT_tilist=="true"}
+ {html_options options=$tilist selected=$time}
+ {else}
+ <option disabled></option>
+ {/if}
</select>
</td>
</tr>
</tr>
</table>
-</p>
</div>
<br>