SuperX-Kernmodul
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

98 lines
3.2 KiB

<%
Object mandantobject=request.getSession().getAttribute("MandantenID");
String mandantenid="";
if(mandantobject != null)
mandantenid=mandantobject.toString();
//der superx-Default-Mandant ist bei dbforms ein Leerstring
if(mandantenid.equals("default"))
mandantenid="";
//Spezieller Bericht gewünscht?
StringBuffer defaultReport=new StringBuffer();
String defaultReportParam=request.getParameter("report_id");
String defaultTimeunitParam=request.getParameter("timeunit");
String defaultMandantenIDParam=request.getParameter("MandantID");
StringBuffer LinkMandantenID=new StringBuffer("");
LinkMandantenID.append("");
defaultReport.append("?a=b");
if(defaultReportParam != null && !defaultReportParam.toString().equals(""))
defaultReport.append("&report_id="+defaultReportParam.toString());
if(defaultTimeunitParam != null && !defaultTimeunitParam.toString().equals(""))
defaultReport.append("&timeunit="+defaultTimeunitParam.toString());
if(defaultMandantenIDParam != null && !defaultMandantenIDParam.toString().equals("")) {
defaultReport.append("&MandantID="+defaultMandantenIDParam.toString());
LinkMandantenID.append("/"+defaultMandantenIDParam.toString());
}
String referrer=request.getParameter("referrer");
String linkToStartpage="/superx"+ LinkMandantenID.toString() +"/xml/management/index.jsp"+ defaultReport.toString() ;
if (referrer != null && referrer.toString().equals("superx")) {
linkToStartpage="/superx"+LinkMandantenID.toString() ;
}
if (request.getSession()!=null&&request.getSession().getAttribute("sessiontype")!=null&&request.getSession().getAttribute("sessiontype").equals("superx")) {%>
<head>
<title>HFT Stuttgart Haushaltsinfo</title>
<link rel="stylesheet" type="text/css" href="format_header.css" title="standard">
<link rel="alternate stylesheet" type="text/css" href="format1.css" title="blau">
<link rel="alternate stylesheet" type="text/css" href="format2.css" title="liste">
<script type="text/javascript" src="switch.js"></script>
<script language="Javascript">
function startOnlineCheck()
{
if (!document.cookie)
{top.window.close();
}
else
setTimeout(startOnlineCheck()(), 2000);
}
</script>
</head>
<html>
<body> <!--onload="startOnlineCheck()"-->
<table style="width: 100%"><tr><th>
<div id="memtext" style="float:left;margin: 0; padding: 0">
<table>
<tr>
<th>
<a href="<%= linkToStartpage %>" target="_parent" title="Zur Startseite">START</a>
</th>
</tr>
</table>
</div>
</th><th style="align:center">
<th></th>
</th><th>
<div id="memtext" style="float:right; margin: 0; padding: 0">
<table>
<tr>
<th><p style="margin:5px;">Angemeldet als <%=((de.superx.common.SxUser)request.getSession().getAttribute("user")).getName()%></th>
<th><a onclick="parent.location='/superx<%= LinkMandantenID.toString() %>/xml/management/index.jsp<%= defaultReport.toString() %>&logoff=true'" href="#" >Abmelden</a></th>
</tr>
</table>
</div>
</th></tr></table>
</body>
</html>
<% } else {
if (request.getSession()!=null) session.invalidate();
String send_redirect="/superx" + LinkMandantenID.toString() + "/xml/management/index.jsp" + defaultReport.toString();
response.sendRedirect(send_redirect);
return;
}
%>