From 3732f229c6dc4d56dc85cb01b104b28ff419ed5c Mon Sep 17 00:00:00 2001
From: Ugnich Anton
Date: Tue, 16 Oct 2012 13:06:36 +0700
Subject: message recomended by...
---
src/java/com/juick/http/www/PageTemplates.java | 4 ++--
src/java/com/juick/http/www/UserThread.java | 25 ++++++++++++++++++-------
2 files changed, 20 insertions(+), 9 deletions(-)
(limited to 'src/java/com/juick/http')
diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java
index 08e88342..69fbb5ce 100644
--- a/src/java/com/juick/http/www/PageTemplates.java
+++ b/src/java/com/juick/http/www/PageTemplates.java
@@ -407,7 +407,7 @@ public class PageTemplates {
out.println("
");
} else if (cancomment) {
out.println(" ");
}
out.println(" ");
@@ -417,7 +417,7 @@ public class PageTemplates {
} finally {
Utils.finishSQL(rs, stmt);
}
- }
+ }
/*
public static void printPhotos(PrintWriter out, Connection sql, ArrayList mids, Locale locale) {
ResourceBundle rb = ResourceBundle.getBundle("Global", locale);
diff --git a/src/java/com/juick/http/www/UserThread.java b/src/java/com/juick/http/www/UserThread.java
index 1680ca8e..320c62ba 100644
--- a/src/java/com/juick/http/www/UserThread.java
+++ b/src/java/com/juick/http/www/UserThread.java
@@ -141,6 +141,11 @@ public class UserThread {
out.println("");
out.println(" - ");
+ out.println(" ");
+ out.println(" ");
+ out.println(" ");
+ out.println("
" + txt + "
");
+
if (rs.getString(11) != null) {
if (rs.getString(11).equals("jpg")) {
out.println(" ");
@@ -152,17 +157,23 @@ public class UserThread {
}
}
- out.println(" ");
- out.println(" ");
- out.println(" ");
- out.println(" " + txt + "
");
-
if (cancomment) {
out.println(" ");
}
+ ArrayList recomm = MessagesQueries.getMessageRecommendations(sql, mid);
+ if (!recomm.isEmpty()) {
+ out.print(" ");
- out.println(" Replies (" + replies.size() + ")
");
+ out.println(" "+rbuser.getString("Replies")+" (" + replies.size() + ")
");
out.println("");
out.println("