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

📄 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"%>
<html>
<head>
<title>{*[Component]*}</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="<ww:url value="/"/>core/dynaform/form/formeditor/eWebEditor.jsp?id=content.templatecontext&style=standard";
	}
	else if(sId=='advancepage'){
		eWebEditor.location="<ww:url value="/"/>core/macro/editor/ScriptEditor.jsp?fieldName=content.templatecontext";
	}
	else if(sId=='activity') {
		eWebEditor.location='<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>';
	}

	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() {
	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="98%" 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">{*[Component]*}</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="workflow-image" 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="workflow-image"
					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="workflow-image"
					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:bean>
 <%@include file="/common/page.jsp"%>
 <ww:hidden name='content.version'></ww:hidden>
 <div style="display:none"><ww:textarea label="Component{*[Module content]*}" name="content.templatecontext" theme="simple"/></div>
		<ww:hidden name="content.titlescript"/>
		<ww:hidden name="isComponent" value="false" />
		<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>
					<tr><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]*}"/>
					<ww:if test="content.id!=null && content.id!=''">
					<input class="button-cmd" type="button" onclick="ev_switchpage('activity')" value="{*[Activity]*}"/>
					</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='basicpage' valign="top">
			<td colspan="4" height="20">
				<table width='100%'>
					<tr>
						<td class="label-size" align="right">{*[Name]*}:</td><td align="left"><ww:textfield cssClass="input-cmd"  name="content.name" theme="simple"/></td>
					</tr>
				</table>
			</td>
		</tr>
		
		<tr id='advancepage' style='display:none' valign="top">
			<td colspan="4" height="20">
				<table width="100%">
					<tr>
						<td  width="60" class="label-size">{*[StyleLib]*}:</td><td><ww:select cssClass="select-size" label="{*[StyleLib]*}" name="_styleid" list="#sh.get_listStyleByApp(#session.APPLICATION)" 
						listKey="id" listValue="name" emptyOption="true" theme="simple"/></td>
						<td class="label-size">{*[Description]*}:</td><td><ww:textarea  cols ="60" rows="1" cssClass="input-cmd" name="content.discription" theme="simple" /></td>
					</tr>
				</table>
			</td>
		</tr>

		<tr valign="top"><td>
			<IFRAME ID="eWebEditor" src="<ww:url value="/"/>core/dynaform/form/formeditor/eWebEditor.jsp?id=content.templatecontext&style=standard" frameborder="0" scrolling="no" width="100%" height="100%"></IFRAME></td>
		</tr>
	</ww:form>
</table>
</body>
</html>

⌨️ 快捷键说明

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