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

📄 viewinfo.jsp

📁 OBPM是一个开源
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=GBK"
	pageEncoding="GBK"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<%@ taglib prefix="ww" uri="webwork"%>
<%@include file="/common/taglibs.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>{*[{*[Form info]*}]*}</title>


<script src="<ww:url value='/script/util.js'/>"></script>
<link rel="stylesheet"
	href="<c:out value='${pageContext.request.contextPath}'/>/resource/css/main.css"
	type="text/css">
</head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet"
	href="<ww:url id="url" value='/resourse/main.css'/>" />
<script src="<ww:url value='/script/list.js'/>"></script>
<script src='<ww:url value="/dwr/engine.js"/>'></script>
<script src='<ww:url value="/dwr/util.js"/>'></script>
<script src='<ww:url value="/dwr/interface/FormHelper.js"/>'></script>
<script>
function ev_isPagination(item) {
	
	if (item.checked && item.value == 'true') {
		pl_tr.style.display="";
	} else {
		pl_tr.style.display="none";
		document.all('content.pagelines').value="";	
	}
	
}

function ev_showTreeDialog() {
	var url = contextPath + '/core/formula/tree.jsp';
	var moduleid = '<ww:property value="#parameters.s_module" />';
	var filterScript = document.all('content.filterScript').value;
	//var include = "#include \"doclib\"; \n";
	if (moduleid != null && moduleid != '') {
		url = url + '?s_module=' + moduleid;
	} 
	if (filterScript != null && filterScript.trim != '') {
		filterScript = ev_filtrate(filterScript);
		url = addParam(url, 'content', filterScript);
	}
	//alert("url->" + url);	
	var rtn = showframe('tree', url);
	
	if (rtn != undefined && rtn != '' && rtn != null) {
		//alert("rtn->" + rtn);
		document.all('content.filterScript').value = "\""+ rtn + "\""; 
	}
}

	function ev_filtrate(content) { //过滤掉#和"号;
		//var newcontent = content.substring(include.length + 1, content.length);
		var oldcontent
		do {
			oldcontent = content;
		  	content = content.replace("#","%23");
		  	content = content.replace("\"","");
		   	//content = content.replace(" ","&nbsp;")
		}

		while(oldcontent != content);
		return content;
	}
</script>
<body onload="ev_isPagination(document.all('_isPagination'))">
<ww:form name="thisform" action="save" method="post">

	<table width="100%">
		<tr>
			<td width="10" class="image-label"><img
				src="<ww:url value="/resource/image/email2.jpg"/>" /></td>
			<td width="3"></td>
			<td width="90" class="text-label">{*[Create View]*}</td>
			<td>
			<table width="100%" border=0 cellpadding="0" cellspacing="0"
				class="line-position">
				<tr>
					<td></td>
				</tr>
			</table>
			</td>
		</tr>
	</table>
	<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>
	<table width="100%">
		<tr>
			<td><%@include file="/common/page.jsp"%> <ww:bean
				name="cn.myapps.core.style.repository.action.StyleRepositoryHelper"
				id="sh">
				<ww:param name="moduleid" value="#parameters.s_module" />
			</ww:bean> <ww:bean
				name="cn.myapps.core.dynaform.view.action.ViewHelper" id="vh">
				<ww:param name="moduleid" value="#parameters.s_module" />
			</ww:bean> <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'/>" /> <input
				type="hidden" name="applicationid"
				value="<ww:property value='#session.APPLICATION'/>"> <input
				type="hidden" name="s_application"
				value="<ww:property value='#session.APPLICATION'/>"> <ww:hidden
				name="_resourceid" />
		<tr>
			<td class="commFont">{*[Name]*}:</td>
			<td><ww:textfield cssClass="input-cmd" theme="simple"
				name="content.name" /></td>
			<td class="commFont">{*[Search template]*}:</td>
			<td><ww:select label="{*[Search template]*}" name="_searchformid"
				list="#vh.get_searchForm(#session.APPLICATION)" listKey="id"
				listValue="name" theme="simple" emptyOption="true" /></td>
		</tr>
		<tr>
			<td class="commFont">{*[Superior]*}:</td>
			<td><ww:select cssClass="input-cmd" theme="simple" name="_superiorid"
				list="#vh.get_MenuTree(#session.APPLICATION)" /></td>
			<td class="commFont">{*[Description]*}:</td>
			<td><ww:textfield cssClass="input-cmd" theme="simple"
				name="_resourcedesc" /></td>

		</tr>
		<tr>
			<td class="commFont">{*[Style lib]*}:</td>
			<td><ww:select cssClass="input-cmd" theme="simple" name="_styleid"
				list="#sh.get_listStyle(#session.APPLICATION)" listKey="id"
				listValue="name" emptyOption="true" /></td>
			<td class="commFont">{*[Open type]*}:</td>
			<td><ww:select label="{*[Open type]*}" name="content.openType"
				theme="simple" list="_OPENTYPE" /></td>
		</tr>
		<tr>
			<td class="commFont">{*[IsPagination]*}:</td>
			<td><ww:radio name="_isPagination" onclick="ev_isPagination(this)"
				list="#{'true':'{*[Yes]*}','false':'{*[No]*}'}" theme="simple" /></td>
			<td>
			<table>
				<tr id="pl_tr">
					<td><ww:select label="{*[PageLines]*}" name="content.pagelines"
						list="#{'05':'{*[5]*}','10':'{*[10]*}','15':'{*[15]*}'}"
						theme="simple" /></td>
				</tr>
			</table>
			</td>
			<td></td>
		</tr>
		<tr>
		</tr>
		<tr>
			<td class="commFont" align="right"></td>
			<td class="commFont" colspan="2" align="center">
			<button
				onClick="forms[0].action='<ww:url action="saveviewinfo"></ww:url>';forms[0].submit();">{*[Confirm]*}</button>
			&nbsp;
			<button onClick="if(parent){parent.close();}else{window.close();}">{*[Cancel]*}</button>
			</td>
		</tr>
	</table>
</ww:form>
</body>
</html>

⌨️ 快捷键说明

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