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

📄 businesslistright.jsp

📁 这个是完整的wap项目的源码 开发语言 Java 系统架构 Struts + hibernate + spring 数据库 Mysql5.0 应用服务器Tomcat5.0 开发工具 MyEc
💻 JSP
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ 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"%>
<%@ page import="com.longtime.wap.module.business.web.form.BusinessListForm"%>
<%@ page import="java.util.List" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="com.longtime.wap.model.*" %>
<%@ taglib uri="/page-tag" prefix="page"%>

<html:form action="/businessList.do?method=deleteBusiness" styleId="businessListForm">
	<table width="98%" border="0" align="center" class="TableBack">
		  <th colspan="3" align="left">业务管理</th>
		  <tr>
			<td colspan="3" align="right">
			
			<logic:notEmpty name="wap_global_messages" scope="request">
					
						
							<logic:iterate id="message" name="wap_global_messages" scope="request">
								<center>
									<font color="red">
										<li>
											<bean:write name="message" />
										</li>
									</font>
								</center>
							</logic:iterate>
					</logic:notEmpty>
				<INPUT type="button" onclick="formSubmit('businessListForm', 'module/business/businessAdd.do?method=getCp&flug=add')" value="添加业务" name="addcategory">&nbsp;
				<INPUT type="button" value="删除" onclick="recordDelete('deleteBusinessIds', 'businessListForm', 'module/business/businessList.do?method=deleteBusiness')" name="delete">&nbsp;
			</td>
		  </tr>
		  <tr>		
			<td colspan="3">			
				<TABLE align="center" border="1" width="100%" id="" class="TableBack2">
					<TR>
						<Th align="left">&nbsp;&nbsp;业务名称</th>
						<th>CP单位名称</th>
						<th>日期</th>
						<th>编辑</th>
						<th>删除</th>
					</TR>

					<tr>
						<td align="left" height="25">&nbsp;&nbsp;<strong>文字</strong></td>
						<td align="left">&nbsp;</td>
						<td align="center">&nbsp;</td>
						<td align="center">&nbsp;</td>
						<td align="center">&nbsp;</td>
					</tr>
					
					<%
						if(null != request.getAttribute("textbusiness")){
							List textbusiness = (List)request.getAttribute("textbusiness");
							for(int i = 0; i < textbusiness.size(); i++) {
								Business business = (Business)textbusiness.get(i);
					%>
					<tr>
					
						<td align="left">&nbsp;&nbsp;&nbsp;&nbsp;---- <%=business.getBusinessName()%> &nbsp;</td>
						<td align="left">&nbsp;&nbsp;&nbsp;&nbsp; <%
						Cp cp = (Cp)business.getCp();
						out.write(cp.getCompanyName());						
					%>&nbsp;</td>						
						<td align="center">
						<%
						SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
						out.write(sdf.format(business.getPubDate()));%> 
						</td>					
						<td align="center"><a href="toModule.do?prefix=/module/business&page=/businessEdit.do?method=getBusiness&businessId=<%=business.getBusinessId()%>&flug=edit">编辑</a></td>
						<td align="center"><input type="checkbox" id="deleteBusinessIds" name="deleteBusinessIds" value="<%=business.getBusinessId()%>" /></td>
					</tr>
								<%
							}
						}											
					%>
				   
					 <tr>
						<td align="left" height="25">&nbsp;&nbsp;<strong>音乐</strong></td>
						<td align="left">&nbsp;</td>
						<td align="center">&nbsp;</td>
						<td align="center">&nbsp;</td>
						<td align="center">&nbsp;</td>
					</tr>
					<%
						if(null != request.getAttribute("musicbusiness")){
							List musicbusiness = (List)request.getAttribute("musicbusiness");
							for(int i = 0; i < musicbusiness.size(); i++) {
								Business business =(Business) musicbusiness.get(i);
								%>
					<tr>
						<td align="left">&nbsp;&nbsp;&nbsp;&nbsp;---- <%=business.getBusinessName()%> &nbsp;</td>
						<td align="left">&nbsp;&nbsp;&nbsp;&nbsp; <%
						Cp cp = (Cp)business.getCp();
						out.write(cp.getCompanyName());						
					%> &nbsp;</td>						
						<td align="center">
						<%
						SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
						out.write(sdf.format(business.getPubDate()));%> 
						</td>					
						<td align="center"><a href="toModule.do?prefix=/module/business&page=/businessEdit.do?method=getBusiness&businessId=<%=business.getBusinessId()%>&flug=edit">编辑</a></td>
						<td align="center"><input type="checkbox" id="deleteBusinessIds" name="deleteBusinessIds" value="<%=business.getBusinessId()%>"></td>
					</tr>
								<%
							}
						}											
					%>
					<tr>
						<td align="left" height="25">&nbsp;&nbsp;<strong>图片</strong> &nbsp;</td>
						<td align="left">&nbsp;</td>
						<td align="center">&nbsp;</td>
						<td align="center">&nbsp;</td>
						<td align="center">&nbsp;</td>
					</tr>
					<%
						if(null != request.getAttribute("picturebusiness")){
							List picbusiness = (List)request.getAttribute("picturebusiness");
							for(int i = 0; i < picbusiness.size(); i++) {
								Business business = (Business)picbusiness.get(i);
								%>
					<tr>
						<td align="left">&nbsp;&nbsp;&nbsp;&nbsp;---- <%=business.getBusinessName()%> &nbsp;</td>
						<td align="left">&nbsp;&nbsp;&nbsp;&nbsp; <%
						Cp cp = (Cp)business.getCp();
						out.write(cp.getCompanyName());						
					%>&nbsp;</td>						
						<td align="center">
						<%
						SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
						out.write(sdf.format(business.getPubDate()));%> 
						</td>					
						<td align="center"><a href="toModule.do?prefix=/module/business&page=/businessEdit.do?method=getBusiness&businessId=<%=business.getBusinessId()%>&flug=edit">编辑</a></td>
						<td align="center"><input type="checkbox" id="deleteBusinessIds" name="deleteBusinessIds" value="<%=business.getBusinessId()%>"></td>
					</tr>
								<%
							}
						}											
					%>
				</TABLE>
			</td>
		  </tr>
		 
		  <tr><td colspan="3" class="tborder"></td></tr>
		</table>
		<br>
		<div align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注:删除业务将删除该业务下所有发布的信息</div>
</html:form>

⌨️ 快捷键说明

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