changeset 119:78b4eb3a9719

Add link to the page with current settings, etc.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 04 Jan 2014 06:04:07 +0200
parents 16d0369e23f5
children 807c7b90386d
files index.php
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/index.php	Sat Jan 04 06:03:43 2014 +0200
+++ b/index.php	Sat Jan 04 06:04:07 2014 +0200
@@ -77,6 +77,11 @@
   "Style" => array(
     "fi" => "Tyyli",
   ),
+  
+  "currLukLink" => array(
+    "fi" => "Linkki tähän lukujärjestykseen nykyisillä asetuksilla (kieli, jne.)",
+    "en" => "Link to the this timetable with current settings (language, etc.)",
+  ),
 //  "" => array("fi" => ),
 );
 
@@ -512,7 +517,12 @@
     "   <th><a class=\"textctrl mobile\" href=\"http://tnsp.org/mluk/\">Mobile</a></th>\n";
 }
 
+$currURL = $baseURI."?luokka=".$luokka."&lang=".$pageLang.
+  (isset($pageCSSIndex) ? "&css=".$pageCSSIndex : "").
+  ($nextPeriod ? "&next" : "");
+
 echo
+  "   <th><a href=\"".$currURL."\" title=\"".cmQM("currLukLink")."\">Link</th>\n".
   "  </tr>\n".
   " </table>\n".
   "</form>\n".