From 80dc112383a88def23eb95e34e3d7f739994bd3b Mon Sep 17 00:00:00 2001
From: Ugnich Anton
Date: Fri, 31 Jan 2014 01:01:48 +0700
Subject: New header design
---
src/java/com/juick/http/www/PageTemplates.java | 122 ++++++++-----------------
1 file changed, 38 insertions(+), 84 deletions(-)
(limited to 'src/java/com/juick/http/www/PageTemplates.java')
diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java
index 16a00d24..462fdf31 100644
--- a/src/java/com/juick/http/www/PageTemplates.java
+++ b/src/java/com/juick/http/www/PageTemplates.java
@@ -55,9 +55,9 @@ public class PageTemplates {
out.println("");
out.print("");
out.print("
");
- out.print("");
+ out.print("");
out.print("");
- out.print("");
+ out.print("");
if (headers != null) {
out.print(headers);
}
@@ -69,75 +69,43 @@ public class PageTemplates {
out.println("");
}
- public static void pageNavigation(PrintWriter out, Locale loc, com.juick.User user, String search) {
- ResourceBundle rb = ResourceBundle.getBundle("Global", loc);
- out.println("");
- out.println("");
- out.println("
");
- }
- /*
- public static void pageUserTitle(PrintWriter out, Connection sql, Locale loc, com.juick.User user, com.juick.User visitor) {
- ResourceBundle rb = ResourceBundle.getBundle("User", loc);
-
- // Full name and description
- String fullname = null;
- String description = null;
- PreparedStatement stmt = null;
- ResultSet rs = null;
- try {
- stmt = sql.prepareStatement("SELECT fullname,descr FROM usersinfo WHERE user_id=?");
- stmt.setInt(1, user.UID);
- rs = stmt.executeQuery();
- if (rs.first()) {
- fullname = rs.getString(1) + " (" + user.UName + ")";
- description = rs.getString(2);
+ out.println(" ");
+ out.println("");
}
- } catch (SQLException e) {
- System.err.println(e);
- } finally {
- Utils.finishSQL(rs, stmt);
- }
- if (fullname == null) {
- fullname = user.UName;
- }
- if (description == null) {
- description = "";
- }
-
- out.println("");
- out.println("
");
- out.println("
");
- out.println("
" + fullname + "
" + description + "
");
- out.println("
");
- out.println();
- }
- */
public static void pageYandexAd(PrintWriter out, int stat_id) {
out.println("");
@@ -171,26 +139,13 @@ public class PageTemplates {
}
public static void pageHomeColumn(PrintWriter out, Connection sql, com.juick.User visitor, Locale locale) {
- ResourceBundle rb = ResourceBundle.getBundle("Blogs", locale);
-
if (tagsHTML == null) {
tagsHTML = PageTemplates.getPopularTags(sql, 60);
}
- out.println("");
- out.println("
");
- out.println("
");
+ out.println("
");
+ out.println("");
}
public static String getPopularTags(Connection sql, int cnt) {
@@ -260,14 +215,13 @@ public class PageTemplates {
}
public static void pageFooter(HttpServletRequest request, PrintWriter out, Locale loc, com.juick.User visitor, boolean sapeon) {
- ResourceBundle rb = ResourceBundle.getBundle("Global", loc);
out.println("