<%@ page language="java" %>
<%@ page pageEncoding="UTF-8" %>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page import="java.util.Date" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.TreeMap" %>
<%@ page import="java.util.Calendar" %>
<%@ page import="java.text.DateFormat" %>
<%@ page import="java.util.Comparator" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.net.URLEncoder" %>
<%@ page import="java.net.URLDecoder" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
try {
for (java.util.Enumeration myEnum = session.getAttributeNames(); myEnum.hasMoreElements(); ) {
Object sessionValue = session.getAttribute((String)myEnum.nextElement());
if ( sessionValue!=null && "de.espirit.or.impl.SessionImpl".equals(sessionValue.getClass().getName())) {
try {
java.lang.reflect.Method rollback = sessionValue.getClass().getDeclaredMethod("rollback");
if (rollback!=null)
rollback.invoke(sessionValue);
} catch (Exception e) {;}
}
}
} catch (Exception e) {;}
%>
<%
int count = 0;
StringBuffer query = new StringBuffer();
java.util.Date today =null;
{
java.text.SimpleDateFormat df = new java.text.SimpleDateFormat("dd.MM.yyyy");
today = df.parse(df.format(new Date()));
}
int lastPage = 0;
if (request.getParameter("navPageNo") != null) {
try {
lastPage = Integer.parseInt(request.getParameter("navPageNo"));
} catch (Exception e) {;}
}
int pageNo = 1;
if (request.getParameter("pageNo") != null) {
try {
pageNo = Integer.parseInt(request.getParameter("pageNo"));
} catch (Exception e) {;}
}
String requestVon = "";
if (request.getParameter("zeitraumVon") != null &&
request.getParameter("zeitraumVon") != "" &&
request.getParameter("zeitraumVon").replaceAll("[0-9]{1,2}\\.[0-9]{1,2}\\.[0-9]{4}","").equals("")) {
requestVon = request.getParameter("zeitraumVon");
}
java.util.Date zeitraumVon = null;
if (requestVon!=null) {
final java.text.SimpleDateFormat df = new java.text.SimpleDateFormat("dd.MM.yyyy");
try { zeitraumVon = df.parse(requestVon); } catch (Exception e) {;}
}
String requestBis = "";
if (request.getParameter("zeitraumBis") != null &&
request.getParameter("zeitraumBis") != "" &&
request.getParameter("zeitraumBis").replaceAll("[0-9]{1,2}\\.[0-9]{1,2}\\.[0-9]{4}","").equals("")) {
requestBis = request.getParameter("zeitraumBis");
}
java.util.Date zeitraumBis = null;
if (requestBis!=null) {
final java.text.SimpleDateFormat df = new java.text.SimpleDateFormat("dd.MM.yyyy");
try { zeitraumBis = df.parse(requestBis); } catch (Exception e) {;}
}
String suchbegriff = "";
String suchbegriffParameter=request.getParameter("suchbegriff");
if (suchbegriffParameter!=null) {
suchbegriff = suchbegriffParameter.replaceAll("[^a-zA-Z0-9.,äÄöÖüÜß -]","");
}
String defaultSuchbegriff = "Stichwort, Titel";
int aktPage = pageNo;
%>
<%
query.append("
");
query.append("");
if (suchbegriff!=null && !suchbegriff.isEmpty() && !defaultSuchbegriff.equals(suchbegriff) && !"Suche im Kalender".equals(suchbegriff)) {
String[] params = suchbegriff.replaceAll(" {2,}"," ").split(" ");
if (params.length > 1) {
query.append("");
}
for (String param : params) {
query.append("");
query.append("");
query.append("");
query.append("");
}
if (params.length > 1) {
query.append("");
}
}
if (zeitraumVon != null && zeitraumBis != null) {
query.append("");
query.append("");
query.append("");
query.append("");
} else if (zeitraumVon != null) {
query.append("");
query.append("");
query.append("");
} else if (zeitraumBis != null) {
query.append("");
query.append("");
query.append("");
}
query.append("");
{
String mandantId="0";
query.append("");
}
query.append("");
query.append("");
query.append("");
%>
<%@ taglib uri="fsweb" prefix="fsi" %>
<%= query %>
<% count++; %>
<% aktPage=0; %>
<% lastPage = pageContext.getAttribute("navPageNo")!=null?Integer.parseInt(pageContext.getAttribute("navPageNo").toString()):0; %>
<% if (count == 0) { %>
Zu dieser Suche sind keine Newsletter vorhanden.
<% } else { %>
/metanavigation/presse/newsletter/newsletter_1/newsletter_responsive_
/de_1/presse/newsletter/newsletter_1/newsletter_704.html
<%
{
java.util.Date datum = null;
try {
java.text.SimpleDateFormat df = new SimpleDateFormat("MMMM yyyy", java.util.Locale.GERMAN);
datum = (java.util.Date)pageContext.getAttribute("newsletterDate");
if (datum != null) {
String strDatum= ""+df.format(datum);
if ( (pageContext.getAttribute("beforeMonthYear")== null) ||
((""+pageContext.getAttribute("beforeMonthYear")).indexOf(strDatum) == (-1))
){
%>
<%=strDatum%>
<%
pageContext.setAttribute("beforeMonthYear",""+df.format(datum));
}
}
} catch (Exception e) {;}
}
%>
<%
{
java.util.Date datum = null;
try {
java.text.SimpleDateFormat df = new SimpleDateFormat("dd.MMMM yyyy", java.util.Locale.GERMAN);
datum = (java.util.Date)pageContext.getAttribute("newsletterDate");
if (datum != null) {
String strDatum= ""+df.format(datum);
%><%=strDatum%><%
}
} catch (Exception e) {;}
}
%>
mehr
<%{%>
<% long hitsTotal = count; %>
<% long firstIndex = (pageNo-1)*10; %>
<% long matches = count; %>
<% long hitsPerPage = 10; %>
<% int pagingRadius = 4; %>
<% long currentPage = (Long) firstIndex / hitsPerPage; %>
<% long maxPage = 0;
if (matches > 0) {
maxPage = (matches-1) / hitsPerPage;
}
%>
<%if (suchbegriff!=null && !suchbegriff.isEmpty()) {%>
<%=count%> Treffer für »<%=defaultSuchbegriff.equals(suchbegriff)?"":suchbegriff%>«
Treffer <%=firstIndex+1%>-<%=java.lang.Math.min(firstIndex+10,count)%> von insgesamt <%=count%>
<%}%>
<%
String clickErste="document.first711757.submit();return false;";
String clickLetzte="document.last711757.submit();return false;";
%>
<%}%>
<% } %>