diff options
author | Ugnich Anton | 2014-01-31 01:01:48 +0700 |
---|---|---|
committer | Ugnich Anton | 2014-01-31 01:01:48 +0700 |
commit | 80dc112383a88def23eb95e34e3d7f739994bd3b (patch) | |
tree | 6bc9ee932110dc046df801ae6f1b65c217f55c94 /src/java/com/juick/http/www/PM.java | |
parent | 45bc7349af0696b9c68266feece63d7359260cec (diff) |
New header design
Diffstat (limited to 'src/java/com/juick/http/www/PM.java')
-rw-r--r-- | src/java/com/juick/http/www/PM.java | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/src/java/com/juick/http/www/PM.java b/src/java/com/juick/http/www/PM.java index 5a07cd5a..ec51d44c 100644 --- a/src/java/com/juick/http/www/PM.java +++ b/src/java/com/juick/http/www/PM.java @@ -64,9 +64,9 @@ public class PM { PageTemplates.pageHead(out, title, null); PageTemplates.pageNavigation(out, locale, visitor, null); - out.println("<div id=\"topwrapper\">"); - out.println("<div id=\"wrapper\">"); - out.println("<div id=\"content\">"); + PageTemplates.pageHomeColumn(out, sql, visitor, locale); + + out.println("<section id=\"content\">"); if (!msgs.isEmpty()) { out.println("<ul>"); @@ -99,14 +99,9 @@ public class PM { } */ - PageTemplates.pageFooter(request, out, locale, visitor, true); - out.println("</div>"); - out.println("</div>"); // wrapper - - PageTemplates.pageHomeColumn(out, sql, visitor, locale); - - out.println("</div>"); // topwrapper + out.println("</section>"); + PageTemplates.pageFooter(request, out, locale, visitor, true); PageTemplates.pageDialogTemplate(out, locale); PageTemplates.pageEnd(out); } finally { @@ -144,9 +139,9 @@ public class PM { PageTemplates.pageHead(out, title, null); PageTemplates.pageNavigation(out, locale, visitor, null); - out.println("<div id=\"topwrapper\">"); - out.println("<div id=\"wrapper\">"); - out.println("<div id=\"content\">"); + PageTemplates.pageHomeColumn(out, sql, visitor, locale); + + out.println("<section id=\"content\">"); out.println("<form action=\"/pm/send\" method=\"POST\" enctype=\"multipart/form-data\">"); out.println("<div class=\"newpm\">"); @@ -182,14 +177,9 @@ public class PM { } */ - PageTemplates.pageFooter(request, out, locale, visitor, true); - out.println("</div>"); - out.println("</div>"); // wrapper - - PageTemplates.pageHomeColumn(out, sql, visitor, locale); - - out.println("</div>"); // topwrapper + out.println("</section>"); + PageTemplates.pageFooter(request, out, locale, visitor, true); PageTemplates.pageDialogTemplate(out, locale); PageTemplates.pageEnd(out); } finally { @@ -199,6 +189,9 @@ public class PM { public void doPostPM(Connection sql, HttpServletRequest request, HttpServletResponse response, Stream xmpp, com.juick.User visitor) throws ServletException, IOException { String uname = request.getParameter("uname"); + if (uname.startsWith("@")) { + uname = uname.substring(1); + } int uid = 0; if (UserQueries.checkUserNameValid(uname)) { uid = UserQueries.getUIDbyName(sql, uname); |