aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http/www/Blogs.java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2012-12-31 16:59:26 +0700
committerGravatar Ugnich Anton2012-12-31 16:59:26 +0700
commitd95df2184dbb9931db3a5eea0f4ea41a59ca4214 (patch)
tree528ec263b745c808a0608be9ebf6a494286a7e5e /src/java/com/juick/http/www/Blogs.java
parented2f70f338bbed7b608fcc5b07f751d5b99d4f53 (diff)
search input box improvement
Diffstat (limited to 'src/java/com/juick/http/www/Blogs.java')
-rw-r--r--src/java/com/juick/http/www/Blogs.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/java/com/juick/http/www/Blogs.java b/src/java/com/juick/http/www/Blogs.java
index 756088e2..548231ae 100644
--- a/src/java/com/juick/http/www/Blogs.java
+++ b/src/java/com/juick/http/www/Blogs.java
@@ -74,6 +74,7 @@ public class Blogs {
return;
}
} else if (requesturi.startsWith("/places/")) {
+ //TODO перенести сюда блок, который страницей ниже
}
int paramBefore = 0;
@@ -164,7 +165,7 @@ public class Blogs {
PrintWriter out = response.getWriter();
try {
PageTemplates.pageHead(out, title, null);
- PageTemplates.pageNavigation(out, locale, visitor);
+ PageTemplates.pageNavigation(out, locale, visitor, paramSearch);
out.println("<div id=\"topwrapper\">");
out.println("<div id=\"wrapper\">");
@@ -185,6 +186,9 @@ public class Blogs {
if (paramShow != null) {
nextpage += "&amp;show=" + paramShow;
}
+ if (paramSearch != null) {
+ nextpage += "&amp;search=" + URLEncoder.encode(paramSearch, "UTF-8");
+ }
out.println("<p class=\"page\"><a href=\"" + nextpage + "\">Older →</a></p>");
}