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.
179 lines
5.3 KiB
179 lines
5.3 KiB
<%@ 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"/> |
|
<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_download_keyw"; |
|
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 Stichworte 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_keyw_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> |
|
|
|
|
|
<!--Stichworte --> |
|
|
|
<tr class="clsOddDataTableRow"> |
|
<td class="themenspalte"> |
|
Stichwort für diesen Download: |
|
</td> |
|
<td align="left"> |
|
<db:dbform multipart="false" autoUpdate="false" followUp="/edit/kern/sx_downloads_keyw_bearbeiten.jsp" |
|
maxRows="*" tableName="download_keyw_bez" parentField="tid" childField="download_id" |
|
orderBy="" dbConnectionName="<%= mandantenid %>" |
|
> |
|
<db:header> |
|
<table><tr><th></th><th>Stichwort</th></tr> |
|
|
|
</db:header> |
|
<db:body allowNew="false"> |
|
<tr><td><db:associatedRadio name="radio_group" /></td> |
|
<td> |
|
<td align="left"> <db:select fieldName="keyword_id" customEntry=",,true"><% sql = "SELECT distinct tid, name from sx_keywords order by name; "; %><db:queryData name="keyword_sichten_themainfo38" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" /></db:select> |
|
</td> |
|
</tr> |
|
</db:body> |
|
|
|
<db:footer> |
|
</table> |
|
<p><db:deleteButton styleClass="dbButton" caption="Markiertes Stichwort löschen" associatedRadio="radio_group" /> |
|
</p> |
|
<p><db:textField hidden="true" fieldName="download_id" overrideValue='<%= currentRow_sx_downloads.get("tid").toString() %>' /> |
|
Neues Stichwort |
|
<% sql = "SELECT distinct tid, name from sx_keywords order by name; "; %> |
|
<db:select fieldName="keyword_id" customEntry=",,true"> |
|
<db:queryData name="k_keyword" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" /> |
|
</db:select> |
|
<db:insertButton styleClass="dbButton" caption="Neues Stichwort zuordnen" showAlways="true"/> |
|
</p> |
|
|
|
|
|
|
|
</db:footer> |
|
</db:dbform> |
|
</td> |
|
<td class="comment">Hier können Sie dem Download einzelne Stichworte zuordnen. |
|
</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>
|
|
|