From: hickert Date: Thu, 25 Mar 2010 14:53:35 +0000 (+0000) Subject: Updated rSyslog template X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8e4ef907bd400334e595cc2a36d2aed960b642ed;p=gosa.git Updated rSyslog template git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17295 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/rsyslog/addons/rsyslog/main.inc b/gosa-plugins/rsyslog/addons/rsyslog/main.inc index 03ac0f231..37793a5b3 100644 --- a/gosa-plugins/rsyslog/addons/rsyslog/main.inc +++ b/gosa-plugins/rsyslog/addons/rsyslog/main.inc @@ -45,9 +45,6 @@ if ( $cleanup ){ $display= $rsyslogObject->execute (); $display.= "\n"; - /* Page header*/ - $display= print_header(get_template_path('plugins/rsyslog/images/plugin.png'), _("System logs")).$display; - /* Store changes in session */ session::set('rsyslogObject',$rsyslogObject); } diff --git a/gosa-plugins/rsyslog/addons/rsyslog/rSyslog.tpl b/gosa-plugins/rsyslog/addons/rsyslog/rSyslog.tpl index eb118ac56..91e9fd217 100644 --- a/gosa-plugins/rsyslog/addons/rsyslog/rSyslog.tpl +++ b/gosa-plugins/rsyslog/addons/rsyslog/rSyslog.tpl @@ -1,146 +1,206 @@ -
-

{image path="images/launch.png" align="right"}{t}Filter{/t} -

-
-
- - - - + + +
{image path="plugins/rsyslog/images/server.png"} {t}Server{/t}: - + +
+
+

{t}System logs{/t}

+ +
+ + + - - + - - + - - - - - + + + + + - - + + - - + - - -
{t}Server{/t}: - {image path="plugins/rsyslog/images/workstation.png"} {t}Host{/t}: - + {t}Host{/t}: - {image path="images/small_warning.png"} {t}Severity{/t}: - + {t}Severity{/t}: -  
{image path="plugins/rsyslog/images/clock.png"} {t}From{/t}: - +  
{t}From{/t}: - - {t}till{/t}: + + {t}till{/t}: - - {image path="images/lists/search.png"} {t}Search{/t}: - + + {t}Search{/t}: - -
-
- -{if $result.status != 'ok'} - {t}Error{/t}:  {$result.status}
- {$result.error}
-{else} +
+ +
+
+ + {if $result.status != 'ok'} + {t}Error{/t}:  {$result.status} +
+ {$result.error}
- - - + + + + {/foreach} + + + + + + + + + +
- {t}Date{/t} - {if $sort_value=="DeviceReportedTime"}{if $sort_type=="DESC"}{$downimg}{else}{$upimg}{/if}{/if} - + + {else} + +
+ + + + + - - - - - - - {foreach from=$result.entries item=item key=key} - - {if ($key%2)} - - {else} - - {/if} - + + + + {foreach from=$result.entries item=item key=key} + + - + - + + - + + - + + - - - {/foreach} -
+ {t}Date{/t} + {if $sort_value=="DeviceReportedTime"} + {if $sort_type=="DESC"} + {$downimg} + {else} + {$upimg} + {/if} + {/if} - {t}Source{/t} - {if $sort_value=="FromHost"}{if $sort_type=="DESC"}{$downimg}{else}{$upimg}{/if}{/if} - + + {t}Source{/t} + {if $sort_value=="FromHost"} + {if $sort_type=="DESC"} + {$downimg} + {else} + {$upimg} + {/if} + {/if} - {t}Header{/t} - {if $sort_value=="SysLogTag"}{if $sort_type=="DESC"}{$downimg}{else}{$upimg}{/if}{/if} - + + {t}Header{/t} + {if $sort_value=="SysLogTag"} + {if $sort_type=="DESC"} + {$downimg} + {else} + {$upimg} + {/if} + {/if} - {t}Facility{/t} - {if $sort_value=="Facility"}{if $sort_type=="DESC"}{$downimg}{else}{$upimg}{/if}{/if} - + + {t}Facility{/t} + {if $sort_value=="Facility"} + {if $sort_type=="DESC"} + {$downimg} + {else} + {$upimg} + {/if} + {/if} - {t}Severity{/t} - {if $sort_value=="Priority"}{if $sort_type=="DESC"}{$downimg}{else}{$upimg}{/if}{/if} - + + {t}Severity{/t} + {if $sort_value=="Priority"} + {if $sort_type=="DESC"} + {$downimg} + {else} + {$upimg} + {/if} + {/if} - {t}Message{/t} - {if $sort_value=="Message"}{if $sort_type=="DESC"}{$downimg}{else}{$upimg}{/if}{/if} - + + {t}Message{/t} + {if $sort_value=="Message"} + {if $sort_type=="DESC"} + {$downimg} + {else} + {$upimg} + {/if} + {/if}
+
{$item.DeviceReportedTime} - + {$item.FromHost} - + {$item.SysLogTag} - + {$item.Facility} - + {$item.Priority} - -
{$item.Message}
-
- {if !$result.count == 0} -
- {/if} -
{$matches}
+
+
+ {$item.Message} +
+
      
+ + +
+ {$matches} +
+
- +
-
{$page_sel}
-{/if} - + +
+ {$page_sel} +
+ {/if} +