%@ 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")) { %>