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

📄 listlist.jsp

📁 OBPM是一个开源
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.cyberway.cms.util.CMSCommonUtil"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/smartweb" prefix="s" %>
<%
String contextPath = request.getContextPath();
pageContext.setAttribute("SITE", CMSCommonUtil.getSite());
%>
<html:html>
<head>
<title> {*[Template list]*} </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="<%= contextPath %>/css/css.jsp" type="text/css">
<script src="<%= contextPath %>/js/billlist.js"></script>
<script src="<%= contextPath %>/js/util.js"></script>
<script src="<%= contextPath %>/js/category.js"></script>
<script language="JavaScript">
var contextPath = '<%= contextPath %>';

cmdNew = '/dynaform/form/new.do';
cmdDelete = '/dynaform/form/delete.do';

function ev_new(){
  if(formList.n_type.value!=''){
	  cmdNew = addParam(cmdNew, 'type', formList.n_type.value);
  }
  doNew();
}

function ev_delete(){
  cmdDelete = addParam(cmdDelete, 'type',  formList.n_type.value);
  doDelete();
}

function ev_check() {
  return true;
}

function ev_resetForm() {
//  document.formList.l_siteid.value = '';
//  document.formList.channelname.value = '';
  document.formList.sm_name.value = '';
  resetForm();
}
function clearChannel(){
	formList.l_channelid.value='';
	formList.channelname.value='';
}


</script>
<script src="<%= contextPath %>/cms/utility/select.js"></script>
</head>
<body>
<html:form styleId="formList" method="post" action="/dynaform/form/listlist.do">
<html:hidden property="_orderby"/>
<html:hidden property="n_type"/>
<html:hidden property="_desc"/>
<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 class="list-table" border="0" cellpadding="4" cellspacing="0">
  <tr colspan="2" height="45">
    <td class="list-toolbar" align="right" valign="middle"> 
	  <input type="button" name="btnNew" value="新 建" class="bt-add" onClick="ev_new()">&nbsp;&nbsp;
      <input type="button" name="btnDelete" value="删 除" class="bt-del" onClick="ev_delete()">
    </td>
  </tr>
  <tr>
    <td colspan="2" class="list-srchbar">
<!--	  {*[Site]*}:<html:select property="l_siteid" styleId="l_siteid" onchange="clearChannel();"> <html:option value=""></html:option><html:options collection="SITE" property="id" labelProperty="name" /></html:select>
      {*[Channel]*}:<html:text property="channelname"/><input type="button" name="btnSelectMenu" value="" class="srchbt" onclick="selectChannel(formList.l_siteid[formList.l_siteid.selectedIndex].value,formList.l_channelid,formList.channelname);" readonly="true">
-->
      {*[Name]*}:<html:text property="sm_name" size="10"/>&nbsp;
      <html:submit value="{*[Query]*}" styleClass="bt" onclick="resetPage()"/>&nbsp;
     <input type="button" name="btnReset" value="{*[Reset]*}" class="bt" onclick="ev_resetForm()">&nbsp;
    </td>
  </tr>
  <tr>
    <td colspan="2" class="list-datas"> <table class="list-datas-table" border="0" cellpadding="0" cellspacing="1">
        <tr class="row-hd">
          <td width="2%" title="{*[Check or remove all records]*}"><input type="checkbox" name="allbox" onclick="checkAll();"></td>
          <td width="20%" nowrap><a href="javascript:doOrderby('name')"><font color="#FFFFFF">{*[Module name]*}</font></a> <s:OrderImg form="ParamsTableWrapForm" field="name"/></td>
          <td width="20%" nowrap><a href="javascript:doOrderby('discript')"><font color="#FFFFFF">{*[Module desc]*}</font></a> <s:OrderImg form="ParamsTableWrapForm" field="discript"/></td>
		      <td width="20%" nowrap><a href="javascript:doOrderby('siteid')"><font color="#FFFFFF">{*[ site belongs to]*}</font></a> <s:OrderImg form="ParamsTableWrapForm" field="siteid"/></td>
	<!--	      		<td width="38%" nowrap><font color="#FFFFFF">模板绝对{*[Path]*}</font></a></td>
-->
        </tr>
        <c:forEach var="item" items="${requestScope.LIST.datas}">
        <c:url value="/dynaform/form/view.do" var="urlView">
          <c:param name="id" value="${item.id}"/>
        </c:url>
        <tr class="row-content">
          <td><input type="checkbox" name="_selectitem" value="<c:out value='${item.id}' />" onclick="checkOne(this);"></td>
          <td><a href="javascript:doView('<c:out value="${urlView}"/>')"><c:out value="${item.name}" /></a></td>
          <td><c:out value="${item.discript}" /></td>
		      <td><c:out value="${item._sitename}" /></td>
	<!--			      <td><c:out value="${item._tmplfullpath}" /></td>
-->				      
         </tr>
        </c:forEach> </table></td>
  </tr>
  <tr>
    <td class="list-navbar" align="right" colspan="2"><s:PageNav dpName="LIST"/></td>
  </tr>
</table>
</html:form>
</body>
</html:html>

⌨️ 快捷键说明

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