Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=homepage-ng.git;a=commitdiff;h=ad1a7698a90a132da4be536c72e666c1568462d6
commit ad1a7698a90a132da4be536c72e666c1568462d6 Author: PacMiam <[email protected]> Date: Mon Jan 6 11:59:08 2014 +0100 * fix last bugs : got to top and 4343 diff --git a/frugalware/footer.php b/frugalware/footer.php index 7bc56e4..03b9f5f 100644 --- a/frugalware/footer.php +++ b/frugalware/footer.php @@ -6,7 +6,7 @@ <!-- footer start --> <footer> - © <?php echo $copydate . " " . $title; ?> - <a href="mailto:[email protected]">Contact Developer Team</a> - <a id="top" href="#">Back to top</a> + © <?php echo $copydate . " " . $title; ?> - <a href="mailto:[email protected]">Contact Developer Team</a> - <a id="top" href="javascript: toTop();">Back to top</a> </footer> <!-- footer end --> diff --git a/frugalware/header.php b/frugalware/header.php index 8573df3..1bf7929 100644 --- a/frugalware/header.php +++ b/frugalware/header.php @@ -75,6 +75,9 @@ bouton.innerHTML=""; } } + function toTop() { + self.scrollTo(0, 0) + } </script> </head> diff --git a/frugalware/packages.php b/frugalware/packages.php index 39ff237..cc826c4 100644 --- a/frugalware/packages.php +++ b/frugalware/packages.php @@ -106,7 +106,7 @@ function main() else unset($selstr); - $arr[] = "\t\t\t<input type=\"radio\" id=\"fwver\" name=\"ver\" value=\"".$releases[$i]->version[0]->tagData."\" " . $selstr . " />".$releases[$i]->version[0]->tagData."\n"; + $arrVer[] = "\t\t\t<input type=\"radio\" id=\"fwver\" name=\"ver\" value=\"".$releases[$i]->version[0]->tagData."\" " . $selstr . " />".$releases[$i]->version[0]->tagData."\n"; break; } } @@ -144,7 +144,7 @@ function main() <td> <input type=\"radio\" id=\"fwver\" name=\"ver\" value=\"all\">".gettext("All")."<br /> <input type=\"radio\" id=\"fwver\" name=\"ver\" value=\"current\" " . (checkValue('ver') == "current" ? "checked=\"checked\" " : "") . "/>Current<br />"; - foreach ( $arr as $i ) + foreach ( $arrVer as $i ) { $content .= $i; } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
