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.
196 lines
6.2 KiB
196 lines
6.2 KiB
2 years ago
|
<%@ page import ="org.dbforms.config.DbFormsConfigRegistry,java.sql.Connection,java.sql.Statement,java.sql.ResultSet" %>
|
||
|
<%
|
||
|
//Spezieller Bericht gewünscht?
|
||
|
StringBuffer defaultReport=new StringBuffer();
|
||
|
String defaultReportParam=request.getParameter("report_id");
|
||
|
String defaultTimeunitParam=request.getParameter("timeunit");
|
||
|
String defaultMandantenIDParam=request.getParameter("MandantID");
|
||
|
String referrer=request.getParameter("referrer");
|
||
|
StringBuffer LinkMandantenID=new StringBuffer("");
|
||
|
String MandantenID_Login="default";
|
||
|
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());
|
||
|
MandantenID_Login=defaultMandantenIDParam.toString();
|
||
|
}
|
||
|
if (referrer != null && !referrer.toString().equals("")) {
|
||
|
defaultReport.append("&referrer="+referrer);
|
||
|
}
|
||
|
|
||
|
Object mandantobject=request.getSession().getAttribute("MandantenID");
|
||
|
String mandantenid="";
|
||
|
if(mandantobject != null)
|
||
|
mandantenid=mandantobject.toString();
|
||
|
else
|
||
|
{
|
||
|
if(defaultMandantenIDParam != null)
|
||
|
mandantenid=defaultMandantenIDParam.toString();
|
||
|
}
|
||
|
//der superx-Default-Mandant ist bei dbforms ein Leerstring
|
||
|
if(mandantenid.equals("default"))
|
||
|
mandantenid="";
|
||
|
|
||
|
|
||
|
String sb_hs_name="";
|
||
|
String sb_lg_path="";
|
||
|
Connection conmm=null;
|
||
|
|
||
|
try {
|
||
|
|
||
|
conmm = DbFormsConfigRegistry.instance().lookup().getConnection(mandantenid);
|
||
|
|
||
|
//Hochschulnamen ermitteln:
|
||
|
Statement st_hs_name;
|
||
|
ResultSet rs_hs_name;
|
||
|
st_hs_name=conmm.createStatement();
|
||
|
String sql_hs_name = "select trim(contents_short) from sx_captions where id='REPORT_HEADING_INSTITUTION'";
|
||
|
rs_hs_name = st_hs_name.executeQuery(sql_hs_name);
|
||
|
|
||
|
while (rs_hs_name.next())
|
||
|
{ if(rs_hs_name.getObject(1) !=null)
|
||
|
sb_hs_name=rs_hs_name.getObject(1).toString();
|
||
|
}
|
||
|
rs_hs_name.close();
|
||
|
st_hs_name.close();
|
||
|
if(sb_hs_name==null || sb_hs_name.equals(""))
|
||
|
sb_hs_name="Hochschule";
|
||
|
//Ende Hochschulnamen ermitteln
|
||
|
|
||
|
//Logopfad ermitteln:
|
||
|
Statement st_lg_path;
|
||
|
ResultSet rs_lg_path;
|
||
|
st_lg_path=conmm.createStatement();
|
||
|
String sql_lg_path = "select trim(contents_short) from sx_captions where id='REPORT_LOGO_FILE'";
|
||
|
rs_lg_path = st_lg_path.executeQuery(sql_lg_path);
|
||
|
|
||
|
while (rs_lg_path.next())
|
||
|
{ if(rs_lg_path.getObject(1) !=null)
|
||
|
sb_lg_path="../"+rs_lg_path.getObject(1).toString();}
|
||
|
rs_lg_path.close();
|
||
|
st_lg_path.close();
|
||
|
if(sb_lg_path==null || sb_lg_path.equals("")|| sb_lg_path.equals("../"))
|
||
|
sb_lg_path="../../images/superx.gif";
|
||
|
|
||
|
//Ende Logopfad ermitteln
|
||
|
|
||
|
conmm.close();
|
||
|
|
||
|
if (request.getParameter("logoff") != null&&request.getSession()!=null) {
|
||
|
request.getSession().invalidate();
|
||
|
};
|
||
|
if (request.getSession()!=null&&request.getSession().getAttribute("sessiontype")!=null&&request.getSession().getAttribute("sessiontype").equals("superx")) {
|
||
|
%>
|
||
|
<html>
|
||
|
|
||
|
<head>
|
||
|
<meta http-equiv="content-type" content="text/html;">
|
||
|
<title><%= sb_hs_name %></title>
|
||
|
<link rel="stylesheet" type="text/css" href="format.css">
|
||
|
<!-- <link rel="stylesheet" type="text/css" href="format.css">-->
|
||
|
<link rel="stylesheet" type="text/css" href="/superx<%= LinkMandantenID.toString() %>/xml/management/man.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="/superx<%= LinkMandantenID.toString() %>/xml/management/man_html.css" />
|
||
|
</head>
|
||
|
|
||
|
<script language="Javascript">
|
||
|
function oeffne(url)
|
||
|
{
|
||
|
self.maske.location.href=url;
|
||
|
}
|
||
|
function applyMerkmale(merkmale)
|
||
|
{
|
||
|
self.maske.applyMerkmale(merkmale);
|
||
|
}
|
||
|
</script>
|
||
|
<script type="text/javascript" src="js/dojo/dojo.js"></script>
|
||
|
<frameset id="superxframes" rows="*,60" frameborder="0" framespacing="0" border="0">
|
||
|
<frame name="maske" src="/superx<%= LinkMandantenID.toString() %>/xml/management/mainmenu.jsp<%= defaultReport.toString() %>">
|
||
|
<frame name="menue" scrolling="no" src="/superx<%= LinkMandantenID.toString() %>/xml/management/menu.jsp<%= defaultReport.toString() %>">
|
||
|
|
||
|
<noframes />
|
||
|
|
||
|
</frameset>
|
||
|
</html>
|
||
|
<% }else {%>
|
||
|
|
||
|
|
||
|
<%
|
||
|
//LDAP Login
|
||
|
if(request.getRemoteUser() != null)
|
||
|
{
|
||
|
String username=request.getRemoteUser();
|
||
|
//int ende=username.indexOf("@");
|
||
|
//if(ende >-1)
|
||
|
// username=username.substring(0,ende);
|
||
|
String redirect=".."+ LinkMandantenID.toString() +"/xml/management/index.jsp"+ defaultReport.toString() ;
|
||
|
%>
|
||
|
<jsp:forward page="/servlet/SuperXmlAnmeldung" >
|
||
|
<jsp:param name="kennung" value="<%= username %>" />
|
||
|
<jsp:param name="MandantenID" value="FHHN" />
|
||
|
<jsp:param name="MandantID" value="FHHN" />
|
||
|
<jsp:param name="requestedServlet" value="<%= redirect %>"/>
|
||
|
<jsp:param name="alt_redirect_url" value="<%= redirect %>" />
|
||
|
</jsp:forward>
|
||
|
<%
|
||
|
} %>
|
||
|
|
||
|
|
||
|
<html>
|
||
|
|
||
|
<head>
|
||
|
<meta http-equiv="content-type" content="text/html;">
|
||
|
<title><%= sb_hs_name.toString() %></title>
|
||
|
<link rel="stylesheet" type="text/css" href="format.css">
|
||
|
|
||
|
</head>
|
||
|
<script language="Javascript">
|
||
|
function oeffne(url)
|
||
|
{
|
||
|
self.maske.location.href=url;
|
||
|
}
|
||
|
function applyMerkmale(merkmale)
|
||
|
{
|
||
|
self.maske.applyMerkmale(merkmale);
|
||
|
}
|
||
|
</script>
|
||
|
<script type="text/javascript" src="js/dojo/dojo.js"></script>
|
||
|
|
||
|
<body>
|
||
|
<div id="memtext">
|
||
|
<p align="center"><img src="<%= sb_lg_path %>" ></p>
|
||
|
<h1> <%= sb_hs_name %> </h1>
|
||
|
<br><br>
|
||
|
<!--
|
||
|
<p><a href="Finanzbericht-Anleitung.pdf">Anleitung (PDF)</a></p>
|
||
|
<p><a href="anleitung_viewlet_swf.html" target="_blank">Videoanleitung</a></p>
|
||
|
<br><br><br>-->
|
||
|
|
||
|
<FORM ACTION="/superx/servlet/SuperXmlAnmeldung" METHOD="post">
|
||
|
<p>Kennung: <br /><INPUT TYPE="Text" NAME="kennung" VALUE="">
|
||
|
</p>
|
||
|
<p>Passwort: <br /><INPUT TYPE="Password" NAME="passwort" value="">
|
||
|
<INPUT TYPE="hidden" NAME="MandantenID" value="<%= MandantenID_Login.toString() %>">
|
||
|
</p><br>
|
||
|
<input type="hidden" Name="requestedServlet" value="../xml/management/index.jsp<%= defaultReport.toString() %>"/>
|
||
|
<!-- <input type="hidden" Name="alt_redirect_url" value="/superx/xml/management/index.jsp?logoff=true"/> -->
|
||
|
<INPUT TYPE="Submit" NAME="Abschicken" VALUE="Anmelden" class="clsButtonStyle">
|
||
|
|
||
|
|
||
|
</FORM>
|
||
|
<p></p>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|
||
|
<% }
|
||
|
}
|
||
|
catch (Exception e) {
|
||
|
out.print("Fehler bei Datenverbindung: "+e+ " MandantenID"+mandantenid);
|
||
|
}
|
||
|
|
||
|
%>
|