Little Triangle to show sort status

amoun <[email protected]> 31 Aug 2003 01:47:14 -0000
Newsgroups gmane.comp.web.oscommerce.tips
Message-ID <ba42eb4a35126ba65f5a30a05e589ce2@osCommerce-Forums>
This message was sent from: Tips and Tricks
http://forums.oscommerce.com/viewtopic.php?p=222169#222169
----------------------------------------------------------------

Hi this has arisen from another forum. There was a query about the plus sign after the 'Product Name+'

I made up little traingles 16 width x 10 high and put the following code to replace the + and - in line 866 (functions/general.php)


WAS
"
$sort_suffix = (substr($sortby, 0, 1) == $colnum ? (substr($sortby, 1, 1) == 'a' ? '+' : '-') : '') . '</a>';
    }
"

NOW

"
$sort_suffix = (substr($sortby, 0, 1) == $colnum ? (substr($sortby, 1, 1) == 'a' ? '<img src="includes/languages/english/images/buttons/button_ascending.gif" height="10" width="16" align="absmiddle" border="0">' : '<img src="includes/languages/english/images/buttons/button_descending.gif" height="10" width="16" align="absmiddle" border="0">') : '') . '</a>';
    }
"

Roger