SuperX-Kernmodul
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.
 
 
 
 
 
 

270 lines
7.7 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>Maske Konstante verwalten</title>
<script type="text/javascript">
var djConfig = {isDebug: false };
//djConfig.debugAtAllCosts = true;
</script><script src="/superx/xml/js/dojo/dojo.js" type="text/javascript">&nbsp;</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">&nbsp;</script>
<db:base/>
</head>
<script language="javascript"
src=<%= "\"" +request.getContextPath() + "/dbformslib/jscal/calendar.js\""%>>
</script>
<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();
%>
<div style="margin: 0px; padding: 0px; overflow: hidden; width: 100%;" id="menuCaption">
<span class="menuCaptionTitle" id="menuCaptionTitle">Konstante verwalten. </span>
</div><%
String tid = request.getParameter("tid");
Hashtable gotoMyHash = null;
if(tid !=null) {
gotoMyHash= new Hashtable();
gotoMyHash.put("tid",tid);
}
%>
<db:dbform tableName="konstanten" maxRows="1" autoUpdate="false" captionResource="true" multipart="false" followUp="/edit/kern/konstante_bearbeiten.jsp" gotoHt="<%= gotoMyHash %>" orderBy="param_id"
dbConnectionName="<%= mandantenid %>" >
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
<db:header/>
<db:errors/>
<db:body allowNew="false">
<table border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td class="naviBtn">
<db:updateButton styleClass="clsButtonStyle" style="height:18px" alt="button.update" src="../../images/save.svg" flavor="image" id="db_updateButton"/></td>
</tr>
</table>
<p>&nbsp;</p>
<hr>
<p></p>
<table class="db_form_table" cellspacing="0" cellpadding="0" width="100%" border="0">
<td>
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td class="db_label">
<db:message key="Tid"/></td><td align="left">
<div id="fld_tid">
<db:label nullFieldValue="" fieldName="tid"/>
</div>
</td>
</tr>
<tr>
<td class="db_label">Parametername</td><td><db:label nullFieldValue="" fieldName="beschreibung" />
</td>
</tr>
<tr style="background-color:#99ccff">
<td class="db_label">
<strong>Aktueller Wert</strong>
</pre></td><td align="left">
<div id="fld_apnr">
<%
if(currentRow_konstanten != null
&& currentRow_konstanten.get("read_only") != null
&& currentRow_konstanten.get("read_only").toString().equals("1"))
{
//Komnstante ist read_only=1, daher nur anzeigen:
%>
<db:label nullFieldValue="" fieldName="apnr" pattern="######"/>
<%
}
else
{
if(currentRow_konstanten != null && currentRow_konstanten.get("wertebereich") != null && !currentRow_konstanten.get("wertebereich").toString().equals("") )
{
%>
<db:select fieldName="apnr">
<%
String wertebereich=currentRow_konstanten.get("wertebereich").toString();
if(wertebereich.startsWith("<<SQL>>"))
{
String wertebereichSql=wertebereich.substring(7);
%>
<db:queryData name="aQuery1" query="<%=wertebereichSql %>" dbConnectionName="<%= mandantenid %>" />
<%
}
else
{
%>
<db:staticData name="myQuery1">
<%
String[] wertebereichArray=wertebereich.split("\n");
for (int i = 0; i < wertebereichArray.length; i++)
{
String wbline=wertebereichArray[i];
if(wbline.indexOf(",")>-1)
{
String wbkey=wbline.substring(0,wbline.indexOf(","));
String wbname=wbkey+" ("+wbline.substring(wbline.indexOf(",")+1)+")";
%>
<db:staticDataItem key="<%= wbkey %>" value="<%= wbname %>"/>
<%
}
else
{
%>
<db:staticDataItem key="<%= wbline %>" value="<%= wbline %>"/>
<%
}
}
%>
</db:staticData>
<%
}
%>
</db:select>
<%
}
else
{
%>
<db:textField nullFieldValue="" onBlur="" styleClass="clsInputStyle" pattern="#########" id="inp_konstantenapnr" size="6" fieldName="apnr"/>
<%
}
}
%>
</div>
</td>
</tr>
<tr>
<td class="db_label">Defaultwert</td><td><db:label nullFieldValue="" fieldName="defaultvalue" pattern="######" />
</td>
</tr>
<tr>
<td class="db_label">Beschreibung</td><td><db:label nullFieldValue="" fieldName="description" />
</td>
</tr>
<tr>
<td class="db_label">
<db:message key="Komponente"/></td><td align="left">
<div id="fld_systeminfo_id">
<db:dataLabel fieldName="systeminfo_id" ><% sql = "select tid, name from systeminfo order by name;"; %><db:queryData name="konstanten_systeminfo70" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" />
</db:dataLabel>
</div>
</td>
</tr>
<tr>
<td class="db_label">
<db:message key="Sachgebiet"/></td><td align="left">
<db:dataLabel fieldName="sachgebiete_id"><% sql = "select tid, name from sachgebiete order by name;"; %><db:queryData name="konstanten_sachgebiete71" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" />
</db:dataLabel>
</div>
</td>
</tr>
<tr>
<td class="db_label">Link zur Dokumentation</td><td><%
if(currentRow_konstanten != null
&& currentRow_konstanten.get("doku_link") != null
&& !currentRow_konstanten.get("doku_link").toString().equals(""))
{
String mylink=currentRow_konstanten.get("doku_link").toString();
out.println("<a style=\"font-size:0.7em;\" href=\""+mylink+"\" title=\"Dokumentation zur Konstante\" target=\"_blank\">"+mylink+"</a>");
}
%></td>
</tr>
<tr>
<%
if(currentRow_konstanten != null
&& currentRow_konstanten.get("read_only") != null
&& currentRow_konstanten.get("read_only").toString().equals("1"))
{
out.write("<td class=\"db_label\">&Auml;nderbar</td><td>Nein</td>");
}
else
{
out.write("<td class=\"db_label\">&Auml;nderbar</td><td>Ja</td>");
}
%>
<!--
<td class="db_label">1=Ja,0=Nein </td><td><db:label nullFieldValue="" fieldName="read_only" />
<td class="db_label">1=Ja,0=Nein </td><td><db:label nullFieldValue="" fieldName="read_only" />
</td>
-->
</tr>
<tr>
<td class="db_label">Ab Version </td><td><db:label nullFieldValue="" fieldName="ab_version" />
</td>
</tr>
<tr>
<td class="db_label">Gruppe </td><td><db:label nullFieldValue="" fieldName="gruppe" />
</td>
</tr>
</table>
</td><td align="center" style="padding-left:10px"></td>
</table>
</db:body>
<db:footer/></db:dbform></body>
</html>