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

📄 view.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"%>
<%
	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 = "Helper Info";
	String urlgh = null;
	if (helper != null) {
		title = helper.getTitle();
		urlgh = helper.getUrl();
	}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title></title>
</head>
<body>
<ww:form name="formList" method="post">
	<%@include file="/common/page.jsp"%>
	<table width="98%">
		<tr>
			<td width="3"></td>
			<td width="90" class="text-label"><img
				src="<ww:url value="/resource/image/help.bmp"/>">{*[Helper]*}</td>
			<td>
			<table width="100%" border=0 cellpadding="0" cellspacing="0"
				class="line-position">
				<tr>
					<td></td>
					<td class="line-position2" width="60" valign="top"></td>
					<td class="line-position2" width="70" valign="top"></td>
					<td></td>
				</tr>
			</table>
		</td>
		</tr>
	</table>
	<table>
		<tr>
			<td><script>
						document.title='<%=title%>';
			</script> <%=helper!=null?helper.getContext():""%> 
			<br>
			<ww:if
				test="#session['USER'].loginno=='admin'">
				<%
				if (urlgh == null || urlgh.trim().length() <= 0) {
				%>
				<a
					href='<ww:url value="new.action"><ww:param name="urlname" value="#parameters.urlname"/></ww:url>'
					style="cursor:hand;color: blue"><FONT face="Arial" size=2> [Create Help] </FONT></a>
				<%
				} else {
				%>
				<a
					href='<ww:url value="edit.action"><ww:param name="urlname" value="#parameters.urlname"/></ww:url>&id=<%=helper.getId()%>'
					style="cursor:hand;color: blue"><FONT face="Arial" size=2> [Edit Help] </FONT></a>
				<%
				}
				%>
			</ww:if></td>
		</tr>
	</table>
</ww:form>
</body>
</html>

⌨️ 快捷键说明

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