⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 content.jsp

📁 OBPM是一个开源
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK" language="java"%>
<%@include file="/common/taglibs.jsp"%>
<%@ page buffer="50kb"%>
<%@ taglib prefix="ww" uri="webwork"%>
<ww:bean name="cn.myapps.core.deploy.application.action.ApplicationHelper" id="ApplicationHelper" />
<html>
<head>
<title>{*[Form]*}</title>
<script>
var sContentPath = '<ww:url value="/"/>';

</script>
<title>Register result</title>
<script>
var mode = 'basicpage';

function ev_switchpage(sId) {
	if(eWebEditor.window.ev_updatefield) {
		eWebEditor.window.ev_updatefield();
	}
	

      document.all('basicpage').style.display="none";
	document.all('advancepage').style.display="none";
	if (document.all(sId)) {
		document.all(sId).style.display="";
	}

	if(sId=='basicpage'){
		eWebEditor.location="formeditor/eWebEditor.jsp?id=content.templatecontext&style=standard";
		
	}
	else if(sId=='advancepage'){
	    eWebEditor.location="<ww:url value="/"/>core/macro/editor/Advance.jsp?fieldName=content.templatecontext";
		document.all('beforeScriptContent').style.display="";
				
	}
	
	mode = sId;
}

function ev_preview(){
  var formid = document.forms[0].elements['content.id'].value;
  
  if (formid == "") {
  	alert("{*[Pls save]*}");
  }
  else {	
    var url = '<ww:url action="new" namespace="/core/dynaform/document" />' 
  			+ '?formid=' + formid;
  	window.open(url);
  }
}

function ev_save() {
//	alert(document.all("content.templatecontext").value);
	
	if(eWebEditor.window.ev_updatefield) {
		eWebEditor.window.ev_updatefield();
	}
	document.forms[0].action='<ww:url action="save"></ww:url>';
	document.forms[0].submit();
}

</script>
<link rel="stylesheet"
	href="<c:out value='${pageContext.request.contextPath}'/>/resource/css/main.css"
	type="text/css">
</head>
<body leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0>
<table width="100%" class="list-table">
	<tr class="list-toolbar">
		<td width="10" class="image-label"><img
			src="<ww:url value="/resource/image/email2.jpg"/>" /></td>
		<td width="3"></td>
		<td width="70" class="text-label">{*[Form]*}</td>
		<td>
			<input class="button-cmd" type="button" onClick="ev_switchpage('basicpage')" value="{*[Basic]*}"/>
			<input class="button-cmd" type="button" onClick="ev_switchpage('advancepage')" value="{*[Advance]*}"/>
					
		</td>
		<td >
		
		<table width="100%" border=1 cellpadding="0" cellspacing="0"
			class="line-position">
			<tr >
				<td></td>
				<td class="line-position2" width="60" valign="top">
				<button class="back-class" onClick="ev_preview()">
					<img src="<ww:url value="/resource/image/preview.gif" ></ww:url>">{*[Preview]*}</button>
				</td>
				<td class="line-position2" width="60" valign="top">
				<button class="back-class"
					onClick="ev_save()"><img
					src="<ww:url value="/resource/image/save.gif"></ww:url>">{*[Save]*}</button>
				</td>
				<td class="line-position2" width="70" valign="top">
				<button class="back-class"
					onClick="forms[0].action='<ww:url action="list"></ww:url>';forms[0].submit();"><img src="<ww:url value="/resource/image/back.gif"/>">{*[Exit]*}</button>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
<table border=0 width=98% height=80% valign='top'>
	<ww:form action="save" method="post" theme="simple">
		<ww:bean name="cn.myapps.core.style.repository.action.StyleRepositoryHelper" id="sh">
			<ww:param name="applicationid" value="#session.APPLICATION" />
			<ww:param name="moduleid" value="#parameters.s_module" />
		</ww:bean>
 <%@include file="/common/page.jsp"%>
 <ww:hidden name='content.version'></ww:hidden>
 <div style="display:none"><ww:textarea label="Form在{*[Module content]*}" name="content.templatecontext" theme="simple"/></div>
		<ww:hidden name="content.titlescript"/>
		<input type="hidden" name="s_module" value="<ww:property value='#parameters.s_module'/>">
		<input type="hidden" name="moduleid" value="<ww:property value='#parameters.s_module'/>">
		<tr valign='top' height='20'>
			<td colspan="4">
				<table width='100%'>
					<tr id="basicpage">
									
			        <td width="39%">
				    <fieldset  style="WIDTH:160px;HEIGHT:50px"><legend>{*[Basic]*}</legend>
				        <table>
							<tr  valign="top">
								<td class="commFont"  align="right">{*[Name]*}: &nbsp;&nbsp; </td>
								<td align="left"><ww:textfield   size="15" name="content.name" theme="simple"/></td>
								<td class="commFont" align="right">{*[Type]*}: &nbsp;&nbsp;</td>
								<td align="left"><ww:select name="content.type" list="_FORMTYPE" theme="simple" /></td>						
							</tr>
						  </table>
				   </fieldset>
			     </td>
			    <td width="61%">
			       <ww:if test="content.id!=null && content.id!=''">
					<fieldset style=" HEIGHT: 50px"><legend>{*[Activity]*}</legend>
						<table width="100%">
						<tr  valign="top">
							
							<td  align="right"> <IFRAME scrolling="no" name="activityFrame" frameborder="0" width="100%" height="30"src="<ww:url value="/core/dynaform/activity/list.action"><ww:param name="_formid" value="content.id"/><ww:param name="parentType" value="'FORM'"/><ww:param name="s_module" value="#parameters.s_module"/></ww:url>"></IFRAME></td>				
						</tr>
					    </table>
				  </fieldset>
				 		    
			     </ww:if>
			    </td>
		       
					</tr>
			  </table>
			</td>
		</tr>
<ww:if test="hasFieldErrors()">
	<span class="errorMessage"> <b>Errors:</b><br>
	<ww:iterator value="fieldErrors">
		*<ww:property value="value[0]" />;
	</ww:iterator> </span>
</ww:if>
		
		
		<tr id='advancepage' style='display:none' valign="top">
			<td colspan="4" height="20">
				<table width="100%">
					<tr>
						<td   class="commFont" align="right">{*[StyleLib]*}:</td><td>
						<ww:select cssClass="select-size" label="{*[StyleLib]*}" name="_styleid" list="#sh.get_listStyle(#session.APPLICATION)" 
						listKey="id" listValue="name" emptyOption="true" theme="simple"/></td>
						<td class="commFont" align="right">{*[Description]*}:</td><td align="right"><ww:textarea  cols ="67" rows="1" cssClass="input-cmd" name="content.discription" theme="simple" /></td>
					</tr>
					<tr valign="top"  class="label-size" id='beforeScriptContent'>
					<td  class="commFont" valign="top" align="right">BeforopenScript:</td><td colspan="3"><ww:textarea cssClass="input-cmd" name="content.beforopenscript" cols="97" rows="2" ></ww:textarea>
		           </td>
		           </tr>
				</table>
			</td>
		</tr>

		<tr valign="top"><td>
		<div style="height:335px;overflow:auto">
			<IFRAME ID="eWebEditor" src="formeditor/eWebEditor.jsp?id=content.templatecontext&style=standard" frameborder="0" scrolling="no" width="100%" height="100%"></IFRAME>
		</div>
			</td>
		</tr>	
	</ww:form>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -