");
if (paramShow == null && paramBefore == 0) {
out.println("");
}
if (mids.size() > 0) {
int ad_mid = 0;
if (visitor != null && (paramShow == null || paramShow.equals("top") || paramShow.equals("all"))) {
ad_mid = AdsQueries.getAdMID(sql, visitor.UID);
if (ad_mid > 0 && mids.indexOf(ad_mid) == -1) {
mids.add(0, ad_mid);
AdsQueries.logAdMID(sql, visitor.UID, ad_mid);
} else {
ad_mid = 0;
}
}
out.println("
");
PageTemplates.printMessages(out, sql, null, mids, visitor, locale, visitor == null ? 2 : 3, ad_mid);
out.println("
");
}
if (mids.size() >= 20) {
String nextpage = "?before=" + mids.get(mids.size() - 1);
if (paramShow != null) {
nextpage += "&show=" + paramShow;
}
if (paramSearch != null) {
nextpage += "&search=" + URLEncoder.encode(paramSearch, "UTF-8");
}
out.println("
Older →
");
}
if (paramShow == null && paramBefore == 0) {
out.println("");
}
PageTemplates.pageFooter(request, out, locale, visitor, true);
out.println("