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.
141 lines
7.4 KiB
141 lines
7.4 KiB
<%@ taglib uri="/WEB-INF/dbforms.tld" prefix="db" %> |
|
<%@page pageEncoding="utf-8" contentType="text/html; charset=UTF-8" %> |
|
<html> |
|
<!--Automatically generated by module_scripts_create.x (SuperX)--> |
|
<head> |
|
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"> |
|
<meta content="0" http-equiv="expires"> |
|
<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="/superx/xml/maske_html.css" type="text/css" REL="stylesheet"> |
|
<LINK href="/superx/style/dbforms_40.css" type="text/css" REL="stylesheet"> |
|
<title>Formular Konstanten</title> |
|
<script type="text/javascript"> |
|
var djConfig = {isDebug: false }; |
|
//djConfig.debugAtAllCosts = true; |
|
</script><script src="/superx/xml/js/dojo/dojo.js" type="text/javascript"> </script><script type="text/javascript"> |
|
dojo.require("dojo.widget.Dialog"); |
|
dojo.require("dojo.widget.Button"); |
|
dojo.require("dojo.widget.Tooltip"); |
|
dojo.require("dojo.string.common"); |
|
|
|
dojo.hostenv.writeIncludes(); |
|
</script><script src="/superx/xml/js/memtext/dbforms.js" type="text/javascript"> </script> |
|
<db:base/> |
|
</head> |
|
<body class="clsPageBody"><%@ page import ="java.util.Hashtable" %> |
|
<% |
|
//HttpSession session=request.getSession(true); |
|
if (request.getCharacterEncoding() == null) |
|
request.setCharacterEncoding("UTF-8"); |
|
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="konstanten"; |
|
String erlaubt="0"; |
|
%> |
|
<%@ include file="/edit/check_authentication.inc" %> |
|
<% |
|
if(erlaubt.equals("0")) |
|
{ |
|
%> |
|
|
|
<jsp:forward page="/edit/not_authorized.htm"/> |
|
<% |
|
} |
|
|
|
String keyfieldsused="false"; |
|
Object kf=request.getParameter("keyfieldsused"); |
|
if(kf != null) |
|
keyfieldsused=kf.toString(); |
|
|
|
%> |
|
|
|
|
|
|
|
<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> |
|
<div style="margin: 0px; padding: 0px; overflow: hidden; width: 100%;" id="menuCaption"> |
|
<span class="menuCaptionTitle" id="menuCaptionTitle">Konstanten. </span><img border="0" alt="Erläuterung" src="/superx/images/information.svg"><span style="display:none" connectId="menuCaption" dojoType="tooltip">In diesem Formular können Sie Konstanten verwalten.</span> |
|
</div><% |
|
String tid = request.getParameter("tid"); |
|
Hashtable gotoMyHash = null; |
|
if(tid !=null) { |
|
gotoMyHash= new Hashtable(); |
|
gotoMyHash.put("tid",tid); |
|
} |
|
%> |
|
|
|
<% |
|
String beschreibung = request.getParameter("beschreibung"); |
|
if(beschreibung != null && !beschreibung.equals("null")){ |
|
filter +="beschreibung~'"+beschreibung+"'"; |
|
} |
|
%> |
|
<db:dbform tableName="konstanten" maxRows="*" autoUpdate="false" captionResource="true" multipart="false" followUp="/edit/kern/konstanten_edit.jsp" gotoHt="<%= gotoMyHash %>" filter="<%= filter %>" orderBy="tid" |
|
dbConnectionName="<%= mandantenid %>" ><db:header> |
|
<table class="dbform_tab" border="1" > |
|
|
|
<tr> |
|
<th></th><th align="left"> |
|
<db:message key="Tid"/></th><th align="left"> |
|
<db:message key="Apnr"/></th><th align="left"> |
|
<db:message key="Beschreibung"/></th><th align="left"> |
|
<db:message key="Standardwert"/></th><th align="left"> |
|
<db:message key="Erläuterungstext"/></th><th align="left"> |
|
<db:message key="Komponente"/></th><th align="left"> |
|
<db:message key="Sachgebiet"/></th><th align="left"> |
|
<db:message key="Link zur Dokumentation"/></th><th align="left"> |
|
<db:message key="1=nicht änderbar,0=änderbar "/></th><th align="left"> |
|
<db:message key="Wertebereich"/></th><th align="left"> |
|
<db:message key="Nutzbar ab Version"/></th><th align="left"> |
|
<db:message key="Gruppe"/></th> |
|
</tr> |
|
</db:header> |
|
<db:errors/> |
|
<db:body allowNew="true"> |
|
<tr> |
|
<td> |
|
<input type="hidden" name="beschreibung" value="<%= beschreibung %>" /> |
|
</td><td align="left"> |
|
<db:textField nullFieldValue="" styleClass="clsInputStyle" size="6" fieldName="tid"/></td><td align="left"> |
|
<db:textField nullFieldValue="" styleClass="clsInputStyle" size="6" fieldName="apnr"/></td><td align="left"> |
|
<db:textArea nullFieldValue="" styleClass="clsInputStyle" wrap="virtual" rows="3" cols="20" fieldName="beschreibung"/></td><td align="left"> |
|
<db:textField nullFieldValue="" styleClass="clsInputStyle" size="6" fieldName="defaultvalue"/></td><td align="left"> |
|
<db:textArea nullFieldValue="" styleClass="clsInputStyle" wrap="virtual" rows="3" cols="20" fieldName="description"/></td><td align="left"> <db:select fieldName="systeminfo_id" customEntry=",,true"><% sql = "select tid, name from systeminfo order by name;"; %><db:queryData name="konstanten_systeminfo76" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" /></db:select></td><td align="left"> <db:select fieldName="sachgebiete_id" customEntry=",,true"><% sql = "select tid, name from sachgebiete order by name;"; %><db:queryData name="konstanten_sachgebiete77" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" /></db:select></td><td align="left"> |
|
<db:textArea nullFieldValue="" styleClass="clsInputStyle" wrap="virtual" rows="3" cols="20" fieldName="doku_link"/></td><td align="left"> |
|
<db:textField nullFieldValue="" styleClass="clsInputStyle" size="6" fieldName="read_only"/></td><td align="left"> |
|
<db:textArea nullFieldValue="" styleClass="clsInputStyle" wrap="virtual" rows="3" cols="20" fieldName="wertebereich"/></td><td align="left"> |
|
<db:textField nullFieldValue="" styleClass="clsInputStyle" maxlength="20" size="20" fieldName="ab_version"/></td><td align="left"> |
|
<db:textArea nullFieldValue="" styleClass="clsInputStyle" wrap="virtual" rows="3" cols="20" fieldName="gruppe"/></td><td class="naviBtn"> |
|
<db:updateButton styleClass="clsButtonStyle" alt="button.update" src="../../images/save.svg" flavor="image" id="db_updateButton"/></td><td class="naviBtn"> |
|
<db:deleteButton confirmMessage="button.delete.confirm" styleClass="clsButtonStyle" title="Datensatz löschen" alt="button.delete" src="../../images/delete.svg" id="db_deleteButton" flavor="image"/></td> |
|
</tr> |
|
</db:body> |
|
<db:footer><tr><td class="naviBtn"><span connectId="new11" dojoType="tooltip">Neuen Datensatz erzeugen. Mit Mausklick auf diesen Button geht das Formular bzw. Unterformular in den Einfügemodus, alle vorhandenen Datensätze werden ausgeblendet. Zum Einfügen des neuen Datensatzes klicken Sie dann auf das Häkchen-Symbol rechts neben bzw. unter mir.</span> |
|
<db:navNewButton styleClass="clsButtonStyle" showAlwaysInFooter="false" alt="button.nav.new" src="../../images/context_add.svg" id="new11" flavor="image"/></td><td class="naviBtn"><span connectId="ins11" dojoType="tooltip">Datensatz einfügen. Wenn Sie einen neuen Datensatz erzeugt haben, können Sie diesen mit diesem Button speichern.</span> |
|
<db:insertButton showAlways="false" styleClass="clsButtonStyle" alt="Datensatz einfügen" src="../../images/circle_tick.svg" id="ins11" flavor="image"/></td></tr> |
|
</table> |
|
</db:footer></db:dbform></body> |
|
</html>
|
|
|