Mercurial > hg > batmud > misc
changeset 284:3555578e7d2c misc
Disable sorting links on fields that do not support it.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 09 Mar 2015 05:21:31 +0200 |
parents | e02d4613d93f |
children | c30ea380329a |
files | materials/index.php |
diffstat | 1 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/materials/index.php Mon Mar 09 05:18:21 2015 +0200 +++ b/materials/index.php Mon Mar 09 05:21:31 2015 +0200 @@ -227,13 +227,20 @@ { if ($key == 0 || !isset($hideColumns[$key])) { - echo - " ".stGetTC("th", $key). + echo " ".stGetTC("th", $key); + if ($key < 18) + { + echo "<a href=\"?". stGetURLStr($attrFilters, $key, ($key == $sortColumn) ? !$sortDirection : $sortDirection, $doMatFilter, $matFilters). - "\">".chentities($value)."</a></th>\n"; + "\">".chentities($value)."</a>"; + } + else + echo chentities($value); + + echo "</th>\n"; } } echo " </tr>\n";