show column sort markers
authorTomasz Pala <gotar@polanet.pl>
Tue, 23 Jul 2013 15:02:34 +0000 (17:02 +0200)
committerJehan-Guillaume de Rorthais <ioguix@free.fr>
Mon, 11 Nov 2013 21:48:29 +0000 (22:48 +0100)
display.php

index 6098bc3428bcec3ce11b5f4ab8cd11c1b5910875..c013da04374b4f408836093744741b73215fe132 100644 (file)
                                $sortLink = http_build_query($args);
 
                                echo "<th class=\"data\"><a href=\"?{$sortLink}\">"
-                                       , $misc->printVal($finfo->name)
-                                       , "</a></th>\n";
+                                       , $misc->printVal($finfo->name);
+                               if($_REQUEST['sortkey'] == ($j + 1)) {
+                                       if($_REQUEST['sortdir'] == 'asc')
+                                               echo '<img src="images/themes/default/RaiseArgument.png" alt="">';
+                                       else    echo '<img src="images/themes/default/LowerArgument.png" alt="">';
+                               }
+                               echo "</a></th>\n";
                        }
                        $j++;
                }