1 <div class="contentboxh">
2 <p class="contentboxh"><img src="images/launch.png" align="right" alt="[F]">{t}Filter{/t}</p>
3 </div>
4 <div class="contentboxb">
5 <table summary="" width="100%" class="contentboxb" style="border-top:1px solid #B0B0B0; padding:0px;" border=0>
6 <tr>
7 <td><img src="plugins/rsyslog/images/server.png" alt="" class="center"> {t}Server{/t}:</td>
8 <td>
9 <select name='selected_server' onChange='document.mainform.submit();'>
10 {foreach from=$servers item=item key=key}
11 <option value='{$key}' {if $key == $selected_server} selected {/if}>{$item.cn}</option>
12 {/foreach}
13 </select>
14 </td>
15 <td><img src="plugins/rsyslog/images/workstation.png" alt="" class="center"> {t}Host{/t}:</td>
16 <td>
17 <select name='selected_host' onChange='document.mainform.submit();'>
18 {foreach from=$hosts item=item key=key}
19 <option value='{$key}' {if $key == $selected_host} selected {/if}>{$item}</option>
20 {/foreach}
21 </select>
22 </td>
23 <td><img src="images/small_warning.png" alt="" class="center"> {t}Priority{/t}:</td>
24 <td>
25 <select name='selected_priority' onChange='document.mainform.submit();'>
26 {html_options values=$priorities options=$priorities selected=$selected_priority}
27 </select>
28 </td>
29 <td> </td>
30 </tr>
31 <tr>
32 <td><img src="plugins/rsyslog/images/clock.png" alt="" class="center"> {t}From{/t}:</td>
33 <td>
34 <input type="text" id="startTime" name="startTime" class="date" style='width:100px' value="{$startTime}">
35 <script type="text/javascript">
36 {literal}
37 var datepicker = new DatePicker({ relative : 'startTime', language : '{/literal}{$lang}{literal}', keepFieldEmpty : true,
38 enableCloseEffect : false, enableShowEffect : false });
39 {/literal}
40 </script>
41 </td>
42 <td>{t}till{/t}:</td>
43 <td>
44 <input type="text" id="stopTime" name="stopTime" class="date" style='width:100px' value="{$stopTime}">
45 <script type="text/javascript">
46 {literal}
47 var datepicker = new DatePicker({ relative : 'stopTime', language : '{/literal}{$lang}{literal}', keepFieldEmpty : true,
48 enableCloseEffect : false, enableShowEffect : false });
49 {/literal}
50 </script>
51 </td>
52 <td><img src="images/lists/search.png" alt="" class="center"> {t}Search{/t}:</td>
53 <td>
54 <input type='text' name='search_for' value='{$search_for}' style='width:250px;'>
55 </td>
56 <td><input type='submit' name='search' value="{t}Search{/t}"></td>
57 </tr>
58 </table>
59 </div>
61 {if $result.status != 'ok'}
62 <b>{t}Error{/t}: {$result.status}</b><br>
63 {$result.error}<br>
64 {else}
66 <br>
67 <table style="width:100%;background-color: #B0B0B0;" cellspacing=1 cellpadding=2>
68 <tr style="background-color: #E8E8E8; height:26px; font-weight:bold">
69 <td>
70 <a href='?plug={$plug_id}&sort_value=DeviceReportedTime'>{t}Received{/t}
71 {if $sort_value=="DeviceReportedTime"}{if $sort_type=="DESC"}{$downimg}{else}{$upimg}{/if}{/if}
72 </a>
73 </td>
74 <td>
75 <a href='?plug={$plug_id}&sort_value=FromHost'>{t}Host{/t}
76 {if $sort_value=="FromHost"}{if $sort_type=="DESC"}{$downimg}{else}{$upimg}{/if}{/if}
77 </a>
78 </td>
79 <td>
80 <a href='?plug={$plug_id}&sort_value=SysLogTag'>{t}Log tag{/t}
81 {if $sort_value=="SysLogTag"}{if $sort_type=="DESC"}{$downimg}{else}{$upimg}{/if}{/if}
82 </a>
83 </td>
84 <td>
85 <a href='?plug={$plug_id}&sort_value=Facility'>{t}Facility{/t}
86 {if $sort_value=="Facility"}{if $sort_type=="DESC"}{$downimg}{else}{$upimg}{/if}{/if}
87 </a>
88 </td>
89 <td>
90 <a href='?plug={$plug_id}&sort_value=Priority'>{t}Priority{/t}
91 {if $sort_value=="Priority"}{if $sort_type=="DESC"}{$downimg}{else}{$upimg}{/if}{/if}
92 </a>
93 </td>
94 <td>
95 <a href='?plug={$plug_id}&sort_value=Message'>{t}Message{/t}
96 {if $sort_value=="Message"}{if $sort_type=="DESC"}{$downimg}{else}{$upimg}{/if}{/if}
97 </a>
98 </td>
99 </tr>
100 {foreach from=$result.entries item=item key=key}
102 {if ($key%2)}
103 <tr style='background-color: #ECECEC;'>
104 {else}
105 <tr style='background-color: #F5F5F5;'>
106 {/if}
107 <td title='{$item.DeviceReportedTime}' style='width:120px'>
108 {$item.DeviceReportedTime}
109 </td>
110 <td title='{$item.FromHost}'>
111 {$item.FromHost}
112 </td>
113 <td title='{$item.SysLogTag}'>
114 {$item.SysLogTag}
115 </td>
116 <td title='{$item.Facility}'>
117 {$item.Facility}
118 </td>
119 <td title='{$item.Priority}'>
120 {$item.Priority}
121 </td>
122 <td title='{$item.Message}' style="width:400px">
123 <div style='overflow:hidden; width:400px'><nobr>{$item.Message}</nobr></div>
124 </td>
125 </tr>
126 {/foreach}
127 </table>
128 {if !$result.count == 0}
129 <p class="separator"> </p>
130 {/if}
131 <div style='width:40%;float:left;'>{$result.count} {t}entries matching filter{/t}</div>
132 <div style='width:80px;float:right;'>
133 <select name='limit' onChange='document.mainform.submit();'>
134 {html_options options=$limits selected=$limit}
135 </select>
136 </div>
137 <div style='width:300px;float:left;'>{$page_sel}</div>
138 {/if}