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

📄 cplistbody.jsp

📁 这个是完整的wap项目的源码 开发语言 Java 系统架构 Struts + hibernate + spring 数据库 Mysql5.0 应用服务器Tomcat5.0 开发工具 MyEc
💻 JSP
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.longtime.wap.model.Cp"%>
<%@ page import="java.util.List"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
	prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
	prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
	prefix="logic"%>
<%@ taglib uri="/page-tag" prefix="page"%>
<html:form action="/cpList.do?method=listCp" styleId="listCp"
	method="post" onsubmit="return false;">

	<table align="center" width="98%" class="TableBack">
		<th colspan="3" align="left">单位管理</th>
		<logic:notEmpty name="wap_global_messages" scope="request">
			<tr>
				<td class="tborder"></td>
				<td>&nbsp; <logic:iterate id="message" name="wap_global_messages"
					scope="request">
					<center><font color="red">
					<li><bean:write name="message" /></li>
					</font></center>
				</logic:iterate></td>
				<td class="tborder"></td>
			</tr>
		</logic:notEmpty>
		<tr>
			<td colspan="3">
			<table width="100%" class="TableBack">
				<tr>
					<td align="left">
				</tr>
				<tr>
					<td align="right"><input type="button" value="新增CP单位" name="show"
						onClick="formSubmit('listCp','module/cp/cpAdd.do?method=getNewCp')">&nbsp;
					<input type="button" value="删除" name="delete"
						onClick="recordDelete('deleteCpIds', 'listCp', 'module/cp/cpList.do?method=deleteCps')">&nbsp;
					</td>
				</tr>
			</table>
			</td>
		</tr>
		<tr>
			<td colspan="3">
			<table align="center" border="1" width="100%" id="cpTable"
				class="TableBack2">
				<tr>
					<th>企业代码</th>
					<th>单位名称</th>
					<th>地址</th>
					<th>客服电话</th>
					<th>添加日期</th>
					<th>查看</th>
					<th>编辑</th>
					<th><input type="checkbox" id="delIds" name="delete" value='0' onclick="allCheck('cpTable','7')"></th>
				</tr>
				<%if (null != request.getAttribute("cps")) {
				List cps = (List) request.getAttribute("cps");
				for (int i = 0; i < cps.size(); i++) {
					Cp cp = (Cp) cps.get(i);

					%>
				<TR>
					<TD align="center"><%=cp.getCompanyCode()%></TD>
					<TD align="left">&nbsp;&nbsp;<%=cp.getCompanyName()%></TD>
					<TD align="left">&nbsp;&nbsp;<%if(cp.getAddress()!=null)out.print(cp.getAddress());else{out.print("&nbsp;");}%></TD>
					<TD align="center"><%if(cp.getClientPhone()!=null)out.print(cp.getClientPhone());else{out.print("&nbsp;");}%></TD>
					<TD align="center"><%=cp.getRegDate()%></TD>
					<TD align="center"><a
						href="javascript:formSubmit('listCp', 'module/cp/cpEdit.do?method=getCp&type=view&id=<%=cp.getCpId()%>')"
						class="href">查看</a></TD>
					<TD align="center"><a
						href="javascript:formSubmit('listCp', 'module/cp/cpEdit.do?method=getCp&type=edit&id=<%=cp.getCpId()%>')"
						class="href">编辑</a></TD>
					<TD align="center"><input type="checkbox" id="deleteCpIds"
						name="deleteCpIds" value="<%=cp.getCpId()%>" /></TD>
				</TR>
				<%}
			}

		%>
			</table>
			</td>
		</tr>
		<TR>
			<td class="tborder"></td>
			<td><page:page_tag formName="listCp"
				action="module/cp/cpList.do?method=listCp" /></td>
			<td class="tborder"></td>
		</TR>
		<tr>
			<td colspan="3" class="tborder"></td>
		</tr>
	</table>
</html:form>

⌨️ 快捷键说明

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