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

📄 content.jsp

📁 OBPM是一个开源
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK" language="java"%>
<%@include file="/common/taglibs.jsp"%>
<%@ taglib prefix="ww" uri="webwork"%>
<%@page import="cn.myapps.core.helper.action.HelperAction" %>
<%@page import="cn.myapps.core.helper.ejb.HelperVO" %>
<html>
<head>
<title>{*[Helper]*}{*[Info]*}</title>
<script src='<ww:url value="/dwr/util.js"/>'></script>
<link rel="stylesheet"
	href="<c:out value='${pageContext.request.contextPath}'/>/resource/css/main.css"
	type="text/css">
<%
   String contextPath = request.getContextPath(); 
   String urlname = request.getParameter("urlname");
 int urllocation;
 int parameterlocation;
  if(urlname!=null&&urlname.trim().length()>0)
{
    urllocation = urlname.lastIndexOf(".");
   parameterlocation = urlname.indexOf("?");
  
  if(parameterlocation!=-1)
  {
	  urlname = urlname.substring(0,urllocation);
		  
  }else{}
  
  }
  int pathLoca = urlname.indexOf(contextPath);
  String temp = urlname.substring(pathLoca);
  HelperVO helper = null;
  HelperAction helperaction = new HelperAction();
  helper = helperaction.getHelperByname(temp,(String)(request.getSession().getAttribute("APPLICATION")));
  String title="";
  String context="";
  String id="";
 if(helper!=null){
	 title=helper.getTitle();
	 id = helper.getId();
	 context=helper.getContext();
   }

 %>

</head>
<script>
function on_submit(){
document.forms[0].action='<ww:url action="save"></ww:url>';
document.forms[0].submit();

}

</script>
<body>
<table width="98%">
	<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">{*[Helper Info]*}</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="button-image"
					onClick="on_submit();"><img
					src="<ww:url value="/resource/image/save.gif"/>">{*[Save]*}</button>
				</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 border=0 width="100%" height="100%">
<ww:form action="save" method="post" theme="simple">
	<%@include file="/common/page.jsp"%>
		<ww:hidden name="urlname"/>
		<ww:hidden name="content.url"/>
		<ww:hidden name="content.context" value="<%=context%>" />
		<tr><td width="10%" align="right" height="10%">{*[Title]*}:</td><td align="left">
		<ww:textfield  cssClass="input-cmd" label="{*[Title]*}" name="content.title" theme="simple" size="50" /></td></tr>
		<tr><td></td></tr>
		<tr ><td colspan="2" height="90%">
		<IFRAME ID="ScriptEditor" src="<ww:url value="/"/>core/dynaform/form/htmlfield/eWebEditor.jsp?id=content.context" frameborder="0" scrolling="no" width="100%" height="95%"></IFRAME></td>
		</tr>
	</ww:form>
</table>
</body>
<script>
document.all('content.url').value='<%=temp%>';
document.all('urlname').value='<%=temp%>';
document.all('content.id').value='<%=id%>';
document.all('content.title').value='<%=title%>';

</script>
</html>

⌨️ 快捷键说明

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