");
if (paramTag != null) {
out.println("← Все записи с тегом " + Utils.encodeHTML(paramTag.Name) + "
");
}
PageTemplates.printMessages(out, sql, user, mids, visitor, visitor == null ? 4 : 5, 0);
if (mids.size() >= 20) {
String nextpage = "?before=" + mids.get(mids.size() - 1);
if (paramShow != null) {
nextpage += "&show=" + paramShow;
}
if (paramTag != null) {
nextpage += "&tag=" + URLEncoder.encode(paramTag.Name, "UTF-8");
}
if (paramSearch != null) {
nextpage += "&search=" + URLEncoder.encode(paramSearch, "UTF-8");
}
out.println("Читать дальше →
");
}
out.println("");
}
PageTemplates.pageFooter(request, out, visitor, true);
PageTemplates.pageEnd(out);
}
}
protected void doGetTags(JdbcTemplate sql, HttpServletRequest request, HttpServletResponse response, com.juick.User user) throws ServletException, IOException {
com.juick.User visitor = Utils.getVisitorUser(sql, request, response);
if (visitor == null) {
pageUserRefCookie(request, response, user.getUID());
}
response.setContentType("text/html; charset=UTF-8");
try (PrintWriter out = response.getWriter()) {
String head = "");
out.println("" + pageUserTags(sql, user, visitor, 0) + "
");
out.println("");
PageTemplates.pageFooter(request, out, visitor, false);
PageTemplates.pageEnd(out);
}
}
protected void doGetFriends(JdbcTemplate sql, HttpServletRequest request, HttpServletResponse response, com.juick.User user) throws ServletException, IOException {
com.juick.User visitor = Utils.getVisitorUser(sql, request, response);
if (visitor == null) {
pageUserRefCookie(request, response, user.getUID());
}
response.setContentType("text/html; charset=UTF-8");
try (PrintWriter out = response.getWriter()) {
String head = "