@ -0,0 +1,7 @@ |
|||||||
|
<%@ page |
||||||
|
import ="de.superx.common.SxUser" |
||||||
|
%> |
||||||
|
<% |
||||||
|
SxUser user = (SxUser) request.getSession().getAttribute("user"); |
||||||
|
erlaubt = user.isAdmin() ? "1" : "0"; |
||||||
|
%> |
||||||
@ -0,0 +1,32 @@ |
|||||||
|
<tr> |
||||||
|
<td class="db_label"> |
||||||
|
Wiki-Quellcode</td><td align="left"> |
||||||
|
<div id="fld_contents_long"> |
||||||
|
<db:textArea id="wikisrc" nullFieldValue="" onBlur="" styleClass="editform" wrap="virtual" rows="6" cols="80" fieldName="contents_long" |
||||||
|
onChange="wikiPreview()"/> |
||||||
|
</div> |
||||||
|
<span style="display:none" connectId="fld_contents_long" dojoType="tooltip">Bei Maskenfeldern wird dieses Feld für Tooltips genutzt.</span></td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<td class="db_label"> |
||||||
|
Vorschau</td><td align="left"> |
||||||
|
<script language="Javascript" src="../../xml/js/memtext/mwtools.js" ></script> |
||||||
|
<div id="fld_content_long_preview" style="border:thin solid gray; |
||||||
|
margin-top:1em; |
||||||
|
padding-top:0.5em; |
||||||
|
background-color:white;"> |
||||||
|
|
||||||
|
</div> |
||||||
|
<script language="Javascript"> |
||||||
|
function wikiPreview() |
||||||
|
{ |
||||||
|
var wikisrc=document.getElementById("wikisrc").value; //innerHTML; |
||||||
|
var newWikiModel = new wikiModel(wikisrc); |
||||||
|
var contentHtml=newWikiModel.wikiHtml; |
||||||
|
|
||||||
|
document.getElementById("fld_content_long_preview").innerHTML=contentHtml; |
||||||
|
} |
||||||
|
wikiPreview(); |
||||||
|
</script> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
@ -0,0 +1,129 @@ |
|||||||
|
<%@ 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/sx_common.css" type="text/css" REL="stylesheet"> |
||||||
|
<LINK href="/superx/style/sx_menue.css" type="text/css" REL="stylesheet"> |
||||||
|
<LINK href="/superx/style/dbforms_40.css" type="text/css" REL="stylesheet"> |
||||||
|
<title>Maske Wiki-Willkommensseite</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> |
||||||
|
<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="sx_captions"; |
||||||
|
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">Wiki-Willkommensseite. </span><img border="0" height="18px" alt="Erläuterung" src="/superx/images/information.svg"><span style="display:none" connectId="menuCaption" dojoType="tooltip">In diesem Formular können Sie die Wiki-Willkommensseite bearbeiten. </span> |
||||||
|
</div> |
||||||
|
<% |
||||||
|
String id = request.getParameter("id"); |
||||||
|
if(id != null && !id.equals("null")){ |
||||||
|
if (!filter.isEmpty()) { |
||||||
|
filter += ","; |
||||||
|
} |
||||||
|
filter +="id="+id; |
||||||
|
} |
||||||
|
%> |
||||||
|
<db:dbform tableName="sx_captions" maxRows="1" autoUpdate="false" captionResource="true" multipart="false" followUp="/edit/kern/sx_captions_wiki_bearbeiten.jsp" filter="<%= filter %>" orderBy="id" |
||||||
|
dbConnectionName="<%= mandantenid %>" ><input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/><db:header/> |
||||||
|
<db:errors/> |
||||||
|
<db:body allowNew="true"> |
||||||
|
<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> </p> |
||||||
|
<hr> |
||||||
|
<p> |
||||||
|
<input type="hidden" name="id" value="<%= id %>" /> |
||||||
|
</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">tid</td><td> |
||||||
|
<db:label nullFieldValue="" fieldName="tid"/></td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<td class="db_label"> |
||||||
|
<db:message key="Id"/></td><td align="left"> |
||||||
|
<div id="fld_id"> |
||||||
|
<db:textField nullFieldValue="" styleClass="clsInputStyle" onBlur="" maxlength="200" size="50" id="inp_sx_captionsid" fieldName="id"/> |
||||||
|
</div> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
<%@ include file="/edit/kern/sx_captions_contents_long_wiki_preview.inc" %></table> |
||||||
|
</td><td align="center" style="padding-left:10px"></td> |
||||||
|
</table> |
||||||
|
</db:body> |
||||||
|
<db:footer/></db:dbform></body> |
||||||
|
</html> |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -0,0 +1,138 @@ |
|||||||
|
<%@ 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 Wiki-Willkommensseite</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> |
||||||
|
<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="sx_captions"; |
||||||
|
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">Wiki-Willkommensseite. </span><img border="0" height="18px" alt="Erläuterung" src="/superx/images/information.svg"><span style="display:none" connectId="menuCaption" dojoType="tooltip">In diesem Formular können Sie die Wiki-Willkommensseite bearbeiten. </span> |
||||||
|
</div> |
||||||
|
<% |
||||||
|
String id = request.getParameter("id"); |
||||||
|
if(id != null && !id.equals("null")){ |
||||||
|
if (!filter.isEmpty()) { |
||||||
|
filter += ","; |
||||||
|
} |
||||||
|
filter +="id="+id; |
||||||
|
} |
||||||
|
%> |
||||||
|
<db:dbform tableName="sx_captions" maxRows="1" autoUpdate="false" captionResource="true" multipart="false" followUp="/edit/kern/sx_captions_wiki_edit.jsp" filter="<%= filter %>" orderBy="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> </p> |
||||||
|
<hr> |
||||||
|
<p> |
||||||
|
<input type="hidden" name="id" value="<%= id %>" /> |
||||||
|
</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">tid</td><td> |
||||||
|
<db:label nullFieldValue="" fieldName="tid"/></td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<td class="db_label"> |
||||||
|
<db:message key="Id"/></td><td align="left"> |
||||||
|
<div id="fld_id"> |
||||||
|
<db:textField nullFieldValue="" styleClass="clsInputStyle" onBlur="" maxlength="200" size="50" id="inp_sx_captionsid" fieldName="id"/> |
||||||
|
</div> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<td class="db_label"> |
||||||
|
<db:message key="Sprache"/></td><td align="left"> |
||||||
|
<div id="fld_locale"> |
||||||
|
<input onblur="updateSelect(this)" style="display:none" size="10" name="key_sx_captionslocale" class="schluesselfeld" type="text"> |
||||||
|
<db:select id="inp_sx_captionslocale" styleClass="clsInputStyle" readOnly="false" onChange="updateKeyfield(this)" fieldName="locale" customEntry=",,true"><% sql = "select element_value::char(10)::char(10), description from menu_element where menu_element.element = \'locale\' order by description;"; %><db:queryData name="sx_captions_menu_element55" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" /> </db:select> |
||||||
|
</div> |
||||||
|
</td> |
||||||
|
</tr><%@ include file="/edit/kern/sx_captions_contents_long_wiki_preview.inc" %></table> |
||||||
|
</td><td align="center" style="padding-left:10px"></td> |
||||||
|
</table> |
||||||
|
</db:body> |
||||||
|
<db:footer/></db:dbform></body> |
||||||
|
</html> |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 219 B |
|
Before Width: | Height: | Size: 227 B |
|
Before Width: | Height: | Size: 244 B |
|
Before Width: | Height: | Size: 243 B |
|
Before Width: | Height: | Size: 146 B |
|
Before Width: | Height: | Size: 167 B |
|
Before Width: | Height: | Size: 173 B |
|
Before Width: | Height: | Size: 159 B |
|
Before Width: | Height: | Size: 171 B |
|
Before Width: | Height: | Size: 149 B |
|
Before Width: | Height: | Size: 149 B |