[xiph-commits] r8329 - websites/dir.xiph.org

oddsock at motherfish-iii.xiph.org oddsock at motherfish-iii.xiph.org
Fri Dec 3 11:07:49 PST 2004


Author: oddsock
Date: 2004-12-03 11:07:48 -0800 (Fri, 03 Dec 2004)
New Revision: 8329

Modified:
   websites/dir.xiph.org/index.php
Log:
add search of content type to prev/next links


Modified: websites/dir.xiph.org/index.php
===================================================================
--- websites/dir.xiph.org/index.php	2004-12-03 17:08:21 UTC (rev 8328)
+++ websites/dir.xiph.org/index.php	2004-12-03 19:07:48 UTC (rev 8329)
@@ -106,6 +106,7 @@
 function getPrevLink($current, $pagesize, $rowcounter) {
 	global $search;
 	global $sgenre;
+	global $stype;
 
 	if (($current - $pagesize) < 0) {
 		$prev = -1;
@@ -120,6 +121,9 @@
 	if ($sgenre) {
 		$extra .= "&sgenre=".urlencode($sgenre);
 	}
+	if ($stype) {
+		$extra .= "&stype=".urlencode($stype);
+	}
 	if ($prev >= 0) {
 		return "<a class=\"nav\" href=\"?start=$prev&num=$pagesize$extra\"><font size=3>Prev</font></a>";
 	}
@@ -130,6 +134,7 @@
 function getNextLink($current, $pagesize, $rowcounter) {
 	global $search;
 	global $sgenre;
+	global $stype;
 
 	if ($rowcounter < $pagesize) {
 		return "";
@@ -142,6 +147,9 @@
 	if ($sgenre) {
 		$extra .= "&sgenre=".urlencode($sgenre);
 	}
+	if ($stype) {
+		$extra .= "&stype=".urlencode($stype);
+	}
 	return "<a class=\"nav\" href=\"?start=$next&num=$pagesize$extra\"><font size=3>Next</font></a>";
 }
 function getContentTypes() {



More information about the commits mailing list