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.
151 lines
4.9 KiB
151 lines
4.9 KiB
2 years ago
|
<%@ taglib uri="/WEB-INF/dbforms.tld" prefix="db" %>
|
||
|
<%@page pageEncoding="utf-8" contentType="text/html; charset=UTF-8" %>
|
||
|
<html xmlns:db="http://www.wap-force.com/dbforms">
|
||
|
<!--Automatically generated by module_scripts_create.x (SuperX)-->
|
||
|
<head >
|
||
|
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type"/>
|
||
|
<LINK href="/superx/style/superx.css" type="text/css" REL="stylesheet"/>
|
||
|
<LINK href="/superx/xml/superxml_html.css" type="text/css" REL="stylesheet"/>
|
||
|
<LINK href="../xml/tabelle_html.css" type="text/css" REL="stylesheet"/>
|
||
|
<title>Formular Benutzer und Sichtarten</title>
|
||
|
<LINK href="/superx/style/dbforms.css" type="text/css" REL="stylesheet"/>
|
||
|
</head>
|
||
|
<head>
|
||
|
<db:base/>
|
||
|
</head>
|
||
|
<body class="clsPageBody"><%@ page import ="java.util.Hashtable" %>
|
||
|
<%
|
||
|
//HttpSession session=request.getSession(true);
|
||
|
Object userobject=request.getSession().getAttribute("UserID");
|
||
|
String userid;
|
||
|
String filter="";
|
||
|
String sql="";
|
||
|
if(userobject == null)
|
||
|
{
|
||
|
%>
|
||
|
|
||
|
<jsp:forward page="/edit/not_authenticated.htm"/>
|
||
|
<%
|
||
|
}
|
||
|
else
|
||
|
userid=userobject.toString();
|
||
|
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="";
|
||
|
String db_form_name="userinfo";
|
||
|
String erlaubt="0";
|
||
|
%>
|
||
|
<%@ include file="/edit/check_authentication.inc" %>
|
||
|
<%
|
||
|
if(erlaubt.equals("0"))
|
||
|
{
|
||
|
%>
|
||
|
|
||
|
<jsp:forward page="/edit/not_authorized.htm"/>
|
||
|
<%
|
||
|
}
|
||
|
|
||
|
%>
|
||
|
<p align="right">
|
||
|
<a target="_parent" href="http://www.superx-projekt.de">
|
||
|
<img border="0" alt="Logo" src="../../images/logo.gif"/>
|
||
|
</a><br />
|
||
|
<% if(!mandantenid.equals("default") && !mandantenid.equals(""))
|
||
|
out.println("<strong>Mandant: " + mandantenid +"</strong>");
|
||
|
%></p>
|
||
|
<table align="center" border="0" width="100%" cellspacing="0" cellpadding="1" class="clsMainMenuTable">
|
||
|
<tr>
|
||
|
<td>
|
||
|
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="clsMainMenuTable">
|
||
|
<tr class="clsMainMenuTableRow">
|
||
|
<td>
|
||
|
<span class="clsMainMenu">Benutzer und Sichtarten</span>
|
||
|
</td>
|
||
|
<td align="right">
|
||
|
<span class="lbl">In diesem Formular können Sie User-Rechte für Sichtarten bearbeiten</span>
|
||
|
<br />Nach Änderungen sollten Sie den Cache aktualisieren<br />
|
||
|
<%
|
||
|
String href=response.encodeURL("../../servlet/SuperXManager");
|
||
|
|
||
|
out.println("<a target='_blank' href=\""+href + "\">SuperXManager</a>");
|
||
|
|
||
|
%> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<%
|
||
|
String sichtart = request.getParameter("sichtart");
|
||
|
if(sichtart != null && !sichtart.equals("null")){
|
||
|
filter +="sichtart="+sichtart;
|
||
|
}
|
||
|
%>
|
||
|
<db:dbform tableName="user_sichtarten" maxRows="1" autoUpdate="false"
|
||
|
captionResource="true" multipart="false"
|
||
|
followUp="/edit/kern/user_sichtarten_bearbeiten.jsp"
|
||
|
filter="<%= filter %>" orderBy="userinfo_id" dbConnectionName="<%= mandantenid %>" >
|
||
|
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
|
||
|
<p>
|
||
|
<input type="hidden" name="sichtart" value="<%= sichtart %>" />
|
||
|
</p>
|
||
|
<db:header/>
|
||
|
<db:errors/>
|
||
|
<db:body allowNew="true">
|
||
|
<table width="400" align="center" border="0">
|
||
|
<tr class="clsEvenDataTableRow">
|
||
|
<td class="themenspalte">
|
||
|
<db:message key="Userinfo_id"/>
|
||
|
</td>
|
||
|
<td align="left"> <db:select styleClass="clsInputStyle" fieldName="userinfo_id" customEntry=""><% sql = "select tid, name from userinfo order by name;"; %><db:queryData name="user_sichtarten_userinfo42" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" /></db:select>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="clsOddDataTableRow">
|
||
|
<td class="themenspalte">
|
||
|
<db:message key="Rechte für Sichtart"/>
|
||
|
</td>
|
||
|
<td align="left">
|
||
|
<% sql = "SELECT distinct art::char(255),art from sichten where art is not null order by 2; "; %>
|
||
|
<db:select styleClass="clsInputStyle" fieldName="sichtart" customEntry="'',,true">
|
||
|
<db:queryData name="k_sichtart" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" />
|
||
|
</db:select>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<br />
|
||
|
<center >
|
||
|
<db:insertButton showAlways="false" styleClass="clsButtonStyle" caption="button.addnew"/>
|
||
|
</center>
|
||
|
</db:body>
|
||
|
<db:footer>
|
||
|
<table border="0" align="center">
|
||
|
<tr>
|
||
|
<td align="right">
|
||
|
<db:navFirstButton styleClass="clsButtonStyle" style="width:90" caption="button.nav.first"/>
|
||
|
</td>
|
||
|
<td align="center">
|
||
|
<db:navPrevButton styleClass="clsButtonStyle" style="width:90" caption="button.nav.previous"/>
|
||
|
</td>
|
||
|
<td align="center">
|
||
|
<db:navNextButton styleClass="clsButtonStyle" style="width:90" caption="button.nav.next"/>
|
||
|
</td>
|
||
|
<td align="left">
|
||
|
<db:navLastButton styleClass="clsButtonStyle" style="width:90" caption="button.nav.last"/>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<p align="center">
|
||
|
<db:navNewButton styleClass="clsButtonStyle" showAlwaysInFooter="false" style="width:90" caption="button.nav.new"/>
|
||
|
<db:deleteButton confirmMessage="button.delete.confirm" styleClass="clsButtonStyle" style="width:90" caption="button.delete"/>
|
||
|
</p>
|
||
|
<p align="center">
|
||
|
<db:updateButton styleClass="clsButtonStyle" style="width:90" caption="button.update"/>
|
||
|
</p>
|
||
|
</db:footer></db:dbform></body>
|
||
|
</html>
|
||
|
|