diff options
author | 2012-10-16 17:31:27 +0700 | |
---|---|---|
committer | 2012-10-16 17:31:27 +0700 | |
commit | c49e78bef068f4c4607d6d572366661e40b404be (patch) | |
tree | 25f6cfdbe413aa3209f93a5f39cf26e1dfb89124 /src/java/com/juick/http/www/User.java | |
parent | cd3776013be1846fc7081371abaae4c8ae5ec9f1 (diff) |
blog title
Diffstat (limited to 'src/java/com/juick/http/www/User.java')
-rw-r--r-- | src/java/com/juick/http/www/User.java | 40 |
1 files changed, 27 insertions, 13 deletions
diff --git a/src/java/com/juick/http/www/User.java b/src/java/com/juick/http/www/User.java index 0ddac42d..a1a6029c 100644 --- a/src/java/com/juick/http/www/User.java +++ b/src/java/com/juick/http/www/User.java @@ -19,6 +19,7 @@ package com.juick.http.www; import com.juick.server.MessagesQueries; import com.juick.server.TagQueries; +import com.juick.server.UserQueries; import java.io.IOException; import java.io.PrintWriter; import java.io.UnsupportedEncodingException; @@ -98,7 +99,7 @@ public class User { try { PageTemplates.pageHead(out, title, null); PageTemplates.pageNavigation(out, locale, visitor); - PageTemplates.pageUserTitle(out, sql, locale, user, visitor); + //PageTemplates.pageUserTitle(out, sql, locale, user, visitor); out.println("<div id=\"topwrapper\">"); out.println("<div id=\"wrapper\">"); @@ -112,10 +113,10 @@ public class User { if (mids.size() == 20) { String nextpage = "?before=" + mids.get(19); if (paramShow != null) { - nextpage += "&show=" + paramShow; + nextpage += "&show=" + paramShow; } if (paramTag > 0) { - nextpage += "&tag=" + URLEncoder.encode(paramTagStr, "UTF-8"); + nextpage += "&tag=" + URLEncoder.encode(paramTagStr, "UTF-8"); } out.println("<p class=\"page\"><a href=\"" + nextpage + "\">Older →</a></p>"); } @@ -171,6 +172,7 @@ public class User { PageTemplates.pageNavigation(out, locale, visitor); PageTemplates.pageUserTitle(out, sql, locale, user, visitor); + out.println("<div id=\"topwrapper\">"); out.println("<div id=\"wrapper\">"); out.println("<div id=\"content\">"); out.println("<table class=\"users\"><tr>"); @@ -200,6 +202,7 @@ public class User { out.println("</div>"); pageUserColumn(out, sql, user, visitor, locale); out.println("</div>"); + out.println("</div>"); PageTemplates.pageFooter(request, out, locale, visitor); } finally { @@ -219,6 +222,7 @@ public class User { PageTemplates.pageNavigation(out, locale, visitor); //PageTemplates.pageUserTitle(out, sql, locale, user, visitor); + out.println("<div id=\"topwrapper\">"); out.println("<div id=\"wrapper\">"); out.println("<div id=\"content\">"); out.println("<table class=\"users\"><tr>"); @@ -248,6 +252,7 @@ public class User { out.println("</div>"); pageUserColumn(out, sql, user, visitor, locale); out.println("</div>"); + out.println("</div>"); PageTemplates.pageFooter(request, out, locale, visitor); } finally { @@ -259,16 +264,25 @@ public class User { ResourceBundle rb = ResourceBundle.getBundle("User", locale); out.println("<div id=\"column\" class=\"stickya\">"); - out.println("<ul>"); - out.println(" <li><a href=\"./\">" + rb.getString("(Menu) Blog") + "</a></li>"); - out.println(" <li><a href=\"./?show=recomm\">" + rb.getString("(Menu) Recommendations") + "</a></li>"); - out.println(" <li><a href=\"./?show=photos\">" + rb.getString("(Menu) Photos") + "</a></li>"); - out.println("</ul>"); - out.println("<hr/>"); - out.println("<p>" + pageUserTags(sql, user, visitor, 15) + "</p>"); - out.println("<form action=\"./\" id=\"searchuser\">"); - out.println("<p><input type=\"text\" name=\"search\" class=\"inp\" placeholder=\"" + rb.getString("Search") + "\"/></p>"); - out.println("</form>"); + out.println(" <div id=\"ctitle\"><a href=\"./\"><img src=\"http://i.juick.com/as/" + user.UID + ".png\"/>" + user.UName + "</a></div>"); + out.println(" <hr/>"); + out.println(" <ul>"); + out.println(" <li><a href=\"./\">" + rb.getString("(Menu) Blog") + "</a></li>"); + out.println(" <li><a href=\"./?show=recomm\">" + rb.getString("(Menu) Recommendations") + "</a></li>"); + out.println(" <li><a href=\"./?show=photos\">" + rb.getString("(Menu) Photos") + "</a></li>"); + out.println(" </ul>"); + out.println(" <hr/>"); + out.println(" <form action=\"./\" id=\"searchuser\">"); + out.println(" <p><input type=\"text\" name=\"search\" class=\"inp\" placeholder=\"" + rb.getString("Search") + "\"/></p>"); + out.println(" </form>"); + out.println(" <p>" + pageUserTags(sql, user, visitor, 15) + "</p>"); + out.println(" <hr/>"); + out.println(" <div id=\"ustats\"><ul>"); + out.println(" <li><a href=\"./friends\">" + rb.getString("(Stats) I read") + ": " + UserQueries.getStatsIRead(sql, user.UID) + "</a></li>"); + out.println(" <li><a href=\"./readers\">" + rb.getString("(Stats) My readers") + ": " + UserQueries.getStatsMyReaders(sql, user.UID) + "</a></li>"); + out.println(" <li>" + rb.getString("(Stats) Messages") + ": " + UserQueries.getStatsMessages(sql, user.UID) + "</li>"); + out.println(" <li>" + rb.getString("(Stats) Replies") + ": " + UserQueries.getStatsReplies(sql, user.UID) + "</li>"); + out.println(" </ul></div>"); out.println("</div>"); } |