From 145852361d049d4d51e727f7f62f970418f2a34a Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Thu, 24 Oct 2013 02:14:29 +0700 Subject: PM on Home (initial) --- src/java/com/juick/http/www/Home.java | 14 +++++++++++++- src/java/com/juick/http/www/PageTemplates.java | 4 ++-- 2 files changed, 15 insertions(+), 3 deletions(-) (limited to 'src/java') diff --git a/src/java/com/juick/http/www/Home.java b/src/java/com/juick/http/www/Home.java index b9009a80..dae573ca 100644 --- a/src/java/com/juick/http/www/Home.java +++ b/src/java/com/juick/http/www/Home.java @@ -17,7 +17,9 @@ */ package com.juick.http.www; +import com.juick.json.Users; import com.juick.server.MessagesQueries; +import com.juick.server.PMQueries; import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; @@ -77,6 +79,15 @@ public class Home { PageTemplates.pageHead(out, title, null); PageTemplates.pageNavigation(out, locale, visitor, null); + ArrayList lastconv = PMQueries.getPMLastConversationsUsers(sql, visitor.UID, 10); + String lastConvJSON = Users.arrayToString(lastconv); + + out.println(""); + out.println("
"); out.println("
"); out.println("
"); @@ -101,13 +112,14 @@ public class Home { out.println("
"); out.println(" "); out.println("
"); + out.println("
    "); out.println("
    "); out.println("
    "); // topwrapper diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java index 0c98f26f..3e08cd97 100644 --- a/src/java/com/juick/http/www/PageTemplates.java +++ b/src/java/com/juick/http/www/PageTemplates.java @@ -50,10 +50,10 @@ public class PageTemplates { out.println(""); out.print(""); out.print(""); - out.print(""); + out.print(""); out.print(""); out.print(""); - out.print(""); + out.print(""); if (headers != null) { out.print(headers); } -- cgit v1.2.3