changeset 14:06525e53622d

Add title attributes to filtering links.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 04 Jan 2016 16:03:14 +0200
parents bacc4457c035
children ed1fd24d0587
files info.php
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/info.php	Mon Jan 04 14:05:27 2016 +0200
+++ b/info.php	Mon Jan 04 16:03:14 2016 +0200
@@ -297,7 +297,11 @@
       }
       else
       {
-        echo "<a href=\"".$siteIndex."?f=".$key.":".$val."\">".chentities($matTransTable[$key][$val])."</a>";
+        echo
+          "<a href=\"".$siteIndex."?f=".$key.":".$val."\"".
+          " title=\"List materials with ".chentities(strtolower($matTransNames[$key + 1])).
+          " = ".chentities(strtolower($matTransTable[$key][$val]))."\"".
+          ">".chentities($matTransTable[$key][$val])."</a>";
       }
       echo "</td>";
       if (++$n >= 3) { echo "</tr>\n"; $n = 0; }