Code

Updated log view
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 May 2008 11:37:10 +0000 (11:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 May 2008 11:37:10 +0000 (11:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10819 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/addons/goto/class_goto_log_view.inc

index 82775d9299c67edbca6f9834a6f71cd05e3ca15b..f6c9055aa0adc72ffc6d6e9266ff6a045c1313be 100644 (file)
@@ -88,17 +88,25 @@ class goto_log_view extends plugin
     /* Create sort direction images 
      */
     if($this->sort_dir){
-      $img = "<img src='images/down-arrow.png' border='0' alt='\\/'>";
+      $img = "<img src='images/lists/sort-down.png' border='0' alt='\\/'>";
     }else{
-      $img = "<img src='images/up-arrow.png' border='0' alt='/\\'";
+      $img = "<img src='images/lists/sort-up.png' border='0' alt='/\\'";
     }
+    if($this->sort_by == "file"){
+      $img1 = $img;
+      $img2 = "";
+    }else{
+      $img1 = "";
+      $img2 = $img;
+    }
+
 
     /* Create list header 
      */
     $divlist->SetHeader(array(
-          array("string"=>"<a href='?plug=".$_GET['plug']."&sort_by=file'>"._("Log file")." ".$img."</a>",
+          array("string"=>"<a href='?plug=".$_GET['plug']."&sort_by=file'>"._("Log file")." ".$img1."</a>",
                 "attach"=>"width='200px;'"),
-          array("string"=>"<a href='?plug=".$_GET['plug']."&sort_by=time'>"._("Log date")." ".$img."</a>",
+          array("string"=>"<a href='?plug=".$_GET['plug']."&sort_by=time'>"._("Log date")." ".$img2."</a>",
                 "attach" => "style='border-right:none;'"),
           ));