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.
224 lines
6.8 KiB
224 lines
6.8 KiB
<%@ taglib uri="/WEB-INF/dbforms.tld" prefix="db" %> |
|
<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"/> |
|
<db:base/> |
|
<LINK href="../xml/tabelle_html.css" type="text/css" REL="stylesheet"/> |
|
<title>Formular Downloads</title> |
|
<LINK href="/superx/style/dbforms.css" type="text/css" REL="stylesheet"/> |
|
</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=""; |
|
String href=""; |
|
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="sx_downloads"; |
|
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">Downloads</span> |
|
</td> |
|
<td align="right"> |
|
<span class="lbl">In diesem Formular können Sie die Lese-Berechtigung für Downloads bearbeiten</span> |
|
</td> |
|
</tr> |
|
</table> |
|
</td> |
|
</tr> |
|
</table> |
|
<% |
|
String tid=request.getParameter("tid"); |
|
if(tid != null && !tid.equals("null")){ |
|
filter ="tid="+ tid; |
|
} |
|
|
|
|
|
%> |
|
<db:dbform tableName="sx_downloads" maxRows="1" autoUpdate="false" |
|
captionResource="true" multipart="false" followUp="/edit/kern/sx_downloads_rechte_bearbeiten.jsp" |
|
filter="<%= filter %>" orderBy="name" |
|
dbConnectionName="<%= mandantenid %>" > |
|
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/> |
|
<p> |
|
<input type="hidden" name="tid" value="<%= tid %>" /> |
|
</p> |
|
<db:header/> |
|
<db:errors/> |
|
<db:body allowNew="true"> |
|
<table width="100%" align="center" border="0"> |
|
<tr> |
|
<td class="themenspalte"> |
|
<db:message key="Name des Download"/> |
|
</td> |
|
<td align="left"> |
|
<h2><db:label fieldName="name"/></h2> |
|
</td> |
|
<td class="comment">Bezeichnung des Download, die für User angezeigt wird</td> |
|
</tr> |
|
<tr> |
|
<td class="themenspalte">tid</td> |
|
<td> |
|
<db:label nullFieldValue="" styleClass="clsInputStyle" fieldName="tid"/> |
|
</td><td> Interne Nummer</td> |
|
</tr> |
|
|
|
|
|
<!--Downloads-Rechte --> |
|
<!-- User--> |
|
<tr class="clsOddDataTableRow"> |
|
<td class="themenspalte"> |
|
User, die diesen Download sehen dürfen: |
|
</td> |
|
<td align="left"> |
|
<db:dbform multipart="false" autoUpdate="false" followUp="/edit/kern/sx_downloads_rechte_bearbeiten.jsp" |
|
maxRows="*" tableName="download_user_bez" parentField="tid" childField="download_id" |
|
orderBy="" dbConnectionName="<%= mandantenid %>" |
|
> |
|
<db:header> |
|
<table><tr><th></th><th>User</th></tr> |
|
|
|
</db:header> |
|
<db:body allowNew="false"> |
|
<tr><td><db:associatedRadio name="radio_group" /></td> |
|
<td> |
|
<td align="left"> <db:select fieldName="userinfo_id" customEntry=",,true"><% sql = "select tid, name from userinfo order by name;"; %><db:queryData name="user_sichten_userinfo38" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" /></db:select> |
|
</td> |
|
</tr> |
|
</db:body> |
|
|
|
<db:footer> |
|
</table> |
|
<p><db:deleteButton styleClass="dbButton" caption="Markierten User löschen" associatedRadio="radio_group" /> |
|
</p> |
|
<p><db:textField hidden="true" fieldName="download_id" overrideValue='<%= currentRow_sx_downloads.get("tid").toString() %>' /> |
|
Neuen User |
|
<% sql = "SELECT tid,name from userinfo order by name; "; %> |
|
<db:select fieldName="userinfo_id" customEntry=",,true"> |
|
<db:queryData name="k_user" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" /> |
|
</db:select> |
|
<db:insertButton styleClass="dbButton" caption="Neuen User einfügen" showAlways="true"/> |
|
</p> |
|
|
|
|
|
|
|
</db:footer> |
|
</db:dbform> |
|
</td> |
|
<td class="comment">Hier können Sie einzelne User für den Download berechtigen. |
|
</tr> |
|
<!--Gruppen + Downloads--> |
|
<tr class="clsOddDataTableRow"> |
|
<td class="themenspalte"> |
|
Gruppen, die diesen Download sehen dürfen: |
|
</td> |
|
<td align="left"> |
|
<db:dbform multipart="false" autoUpdate="false" followUp="/edit/kern/sx_downloads_rechte_bearbeiten.jsp" |
|
maxRows="*" tableName="download_group_bez" parentField="tid" childField="download_id" |
|
orderBy="" dbConnectionName="<%= mandantenid %>" |
|
> |
|
<db:header> |
|
<table><tr><th></th><th>Gruppe</th></tr> |
|
|
|
</db:header> |
|
<db:body allowNew="false"> |
|
<tr><td><db:associatedRadio name="radio_group" /></td> |
|
<td> |
|
<td align="left"> <db:select fieldName="groupinfo_id" customEntry=",,true"><% sql = "select tid, name from groupinfo order by name;"; %><db:queryData name="group_sichten_groupinfo38" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" /></db:select> |
|
</td> |
|
</tr> |
|
</db:body> |
|
|
|
<db:footer> |
|
</table> |
|
<p><db:deleteButton styleClass="dbButton" caption="Markierte Gruppe löschen" associatedRadio="radio_group" /> |
|
</p> |
|
<p><db:textField hidden="true" fieldName="download_id" overrideValue='<%= currentRow_sx_downloads.get("tid").toString() %>' /> |
|
Neue Gruppe |
|
<% sql = "SELECT tid,name from groupinfo order by name; "; %> |
|
<db:select fieldName="groupinfo_id" customEntry=",,true"> |
|
<db:queryData name="k_group" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" /> |
|
</db:select> |
|
<db:insertButton styleClass="dbButton" caption="Neue Gruppe einfügen" showAlways="true"/> |
|
</p> |
|
|
|
|
|
|
|
</db:footer> |
|
</db:dbform> |
|
</td> |
|
<td class="comment">Hier können Sie einzelne Gruppen für den Download berechtigen. |
|
</tr> |
|
|
|
|
|
|
|
|
|
|
|
</table> |
|
</db:body> |
|
<db:footer> |
|
<table border="0" align="center" cellpadding="0" cellspacing="0"> |
|
<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> |
|
</db:footer></db:dbform></body> |
|
</html>
|
|
|