Code

Soem fixes for logging:
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 23 Nov 2007 10:59:15 +0000 (10:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 23 Nov 2007 10:59:15 +0000 (10:59 +0000)
-W3c
-Images for sorting instead of \/ /\

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7867 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/logview/class_gosa_logview.inc
plugins/addons/logview/gosa_log_contents.tpl

index 5f1513ae2459bb7def4ebdf7c267cbd2ca72e5c2..f591f79e77384f456b1bd00d2b149ab643c10ba9 100644 (file)
@@ -205,10 +205,10 @@ class gosa_logview extends plugin
         /* Order setting */
         if ($this->sort_direction == "down"){
           $desc= "DESC";
-          $sort_sign = "\\/";
+          $sort_sign = "<img src='images/sort_down.png' alt='\/' class='center' title='down' border=0>";
         } else {
           $desc= "";
-          $sort_sign="/\\";
+          $sort_sign = "<img src='images/sort_up.png' alt='/\' class='center' title='up' border=0>";
         }
         $end= date ("YmdHis",time());
         $query_base= "  FROM 
index dcc9dd1e701fb8f668e0144a683578ac614c8816..d037e2deeb15d7201861d947b9b0f93cdaed0c83 100644 (file)
@@ -8,7 +8,7 @@
    <td width="33%">
     <table summary="">
      <tr>
-      <td><img class="center" alt="" align="middle" border=0 src="{$server_image}">&nbsp;<LABEL FOR="host">{t}Show hosts{/t}</LABEL></td>
+      <td><img class="center" alt="" align="middle" border=0 src="{$server_image}">&nbsp;<LABEL FOR="server">{t}Show hosts{/t}</LABEL></td>
       <td>
        <select id="server" name="server" size=1 onChange="mainform.submit()">
                       {html_options options=$servers selected=$server}
 {if $search_result ne ""}
  <table summary="" style="width:100%; vertical-align:top; text-align:left; border:1px solid #B0B0B0;" cellpadding=2 cellspacing=1 rules="cols">
   <tr style="background-color: #E8E8E8; height:26px; font-weight:bold">
-   <td><a href=main.php{$plug}&amp;sort=0&amp;direction={$direction}>{t}Action{/t} {$mode0}</a></td>
-   <td><a href=main.php{$plug}&amp;sort=1&amp;direction={$direction}>{t}Date{/t} {$mode1}</a></td>
-   <td><a href=main.php{$plug}&amp;sort=2&amp;direction={$direction}>{t}User{/t} {$mode2}</a></td>
-   <td><a href=main.php{$plug}&amp;sort=3&amp;direction={$direction}>{t}Object type{/t} {$mode3}</a></td>
-   <td><a href=main.php{$plug}&amp;sort=4&amp;direction={$direction}>{t}Object{/t} {$mode4}</a></td>
-   <td><a href=main.php{$plug}&amp;sort=5&amp;direction={$direction}>{t}Message{/t} {$mode5}</a></td>
-   <td><a href=main.php{$plug}&amp;sort=6&amp;direction={$direction}>{t}Repeated{/t} {$mode6}</a></td>
+   <td><a href="main.php{$plug}&amp;sort=0&amp;direction={$direction}">{t}Action{/t} {$mode0}</a></td>
+   <td><a href="main.php{$plug}&amp;sort=1&amp;direction={$direction}">{t}Date{/t} {$mode1}</a></td>
+   <td><a href="main.php{$plug}&amp;sort=2&amp;direction={$direction}">{t}User{/t} {$mode2}</a></td>
+   <td><a href="main.php{$plug}&amp;sort=3&amp;direction={$direction}">{t}Object type{/t} {$mode3}</a></td>
+   <td><a href="main.php{$plug}&amp;sort=4&amp;direction={$direction}">{t}Object{/t} {$mode4}</a></td>
+   <td><a href="main.php{$plug}&amp;sort=5&amp;direction={$direction}">{t}Message{/t} {$mode5}</a></td>
+   <td><a href="main.php{$plug}&amp;sort=6&amp;direction={$direction}">{t}Repeated{/t} {$mode6}</a></td>
   </tr>
   {$search_result}
  </table>
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.search_for.focus();
+  focus_field('regex');
   -->
 </script>