📄 selectform.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ page import="com.cyberway.cms.util.CMSCommonUtil"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/smartweb" prefix="s" %>
<%
String contextPath = request.getContextPath();
pageContext.setAttribute("TEMPLATETYPE", CMSCommonUtil.getTemplateType());
pageContext.setAttribute("SITE", CMSCommonUtil.getSite());
%>
<html:html>
<head>
<title> {*[Document type list]*} </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet"
href="<%= contextPath %>/resource/css/dtree.css"
type="text/css">
<link rel="stylesheet"
href="<%= contextPath %>/resource/css/main.css"
type="text/css">
<script src="<%= contextPath %>/js/billlist.js"></script>
<script src="<%= contextPath %>/js/util.js"></script>
<script language="JavaScript">
var contextPath = '<%= contextPath %>';
cmdNew = '/dynaform/form/new.do';
function selectOne(value) {
top.window.returnValue = value;
top.window.close();
}
function ev_check() {
return true;
}
function ev_resetForm() {
document.formList.l_siteid.value = '';
document.formList.n_type.value = '';
document.formList.sm_name.value = '';
resetForm();
}
function ev_new(){
wx = '780px';
wy = '590px';
url = "";
if(formList.n_type.value!='')
cmdNew = addParam(cmdNew, 'type', formList.n_type.value);
if(formList.n_channelid.value!='')
cmdNew = addParam(cmdNew, '_channelid', formList.n_channelid.value);
url = addParam(contextPath + cmdNew, 'ISEDIT', 'TRUE');
url = addParam(url, 'COMMAND', 'new');
showframe('{*[New module]*}', url);
formList.submit();
}
</script>
</head>
<body color=black>
<html:form styleId="formList" method="post" action="/dynaform/form/select.do">
<html:hidden property="_orderby"/>
<html:hidden property="_desc"/>
<html:hidden property="n_channelid"/>
<html:hidden property="formtype"/>
<html:hidden property="_currpage"/>
<html:hidden property="_pagelines"/>
<html:hidden property="l_channelid"/>
<input type="hidden" name="_rowcount" value="<c:out value='${requestScope.LIST.rowCount}' />">
<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="120" class="text-label">{*[Form select]*}</td>
<td>
<table width="100%" border=1 cellpadding="0" cellspacing="0"
class="line-position">
<tr>
<td></td>
<td><button class="button-image"
onClick="doExit()"><img
src="<ww:url value="/resource/image/back.gif"/>">{*[Cancle]*}</button></td>
<td><button class="button-image"
onClick="doEmpty()"><img
src="<ww:url value="/resource/image/back.gif"/>">{*[Clear]*}</button></td>
</tr>
</table>
</td>
</tr>
</table>
<table class="list-table" border="0" cellpadding="4" cellspacing="0" width="100%">
<tr>
<td class="list-srchbar" align="right">
<input type="button" name="btnNew" value="{*[New]*}" class="button-cmd" onClick="ev_new()">
<input type="button" class="button-cmd" onclick="doExit()" value="{*[Cancle]*}">
<input type="button" class="button-cmd" onclick="doEmpty()" value="{*[Clear]*}">
</td>
</tr>
<tr>
<td class="list-srchbar">
{*[Type]*}:<html:select property="n_type"><html:option value=""></html:option><html:options collection="TEMPLATETYPE" property="code" labelProperty="value" /></html:select>
{*[Site]*}: <html:select property="l_siteid" styleId="l_siteid"> <html:option value=""></html:option><html:options collection="SITE" property="id" labelProperty="name" /></html:select>
{*[Name]*}:<html:text property="sm_name" size="10"/>
<html:submit value="{*[Query]*}" styleClass="bt" onclick="resetPage()"/>
<input type="button" name="btnReset" value="{*[Reset]*}" class="bt" onclick="ev_resetForm()">
</td>
</tr>
<tr>
<td align="right"><s:PageNav dpName="LIST"/></td>
</tr>
<tr>
<td class="list-datas">
<table class="list-datas-table" border="0" cellpadding="0" cellspacing="1">
<tr class="row-hd">
<td width="30%" nowrap><a href="javascript:doOrderby('name')"><font color="#FFFFFF">{*[Name]*}</font></a> <s:OrderImg form="ParamsTableWrapForm" field="name"/></td>
<td width="12%" nowrap><a href="javascript:doOrderby('type')"><font color="#FFFFFF">{*[Module Type]*}</font></a> <s:OrderImg form="ParamsTableWrapForm" field="type"/></td>
<td width="18%" nowrap><a href="javascript:doOrderby('siteid')"><font color="#FFFFFF">{*[Site belongs to]*}</font></a> <s:OrderImg form="ParamsTableWrapForm" field="siteid"/></td>
<td width="40%" nowrap><a href="javascript:doOrderby('discript')"><font color="#FFFFFF">{*[Description]*}</font></a> <s:OrderImg form="ParamsTableWrapForm" field="discript"/></td>
</tr>
<c:forEach var="item" items="${requestScope.LIST.datas}">
<tr class="row-content">
<a href="javascript:selectOne('<c:out value='${item.id}'/>,<c:out value='${item.name}'/>')">
<td><c:out value="${item.name}"/></td>
<td><c:choose>
<c:when test="${item.type eq '1'}">
<c:out value="{*[Form Module]*}"/>
</c:when>
<c:when test="${item.type eq '2'}">
<c:out value="{*[OverView Form]*}"/>
</c:when>
<c:when test="${item.type eq '3'}">
<c:out value="{*[DetailView Form]*}"/>
</c:when>
</c:choose>
</td>
<td><c:out value="${item._sitename}"/></td>
<td><c:out value="${item.discript}"/></td>
</a>
</tr>
</c:forEach>
</table>
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -