?? cpbusinesslistright.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="java.util.List" %>
<%@ page import="com.longtime.wap.model.*" %>
<%@ taglib uri="/page-tag" prefix="page"%>
<html:form action="/cpBusinessList.do?method=saveCpBusiness" styleId="cpListForm">
<table width="98%" border="0" class="TableBack">
<th colspan="3" align="left">時效管理</th>
<tr>
<td colspan="3">
<table width="100%" border="0" class="TableBack">
<tr>
<%
Cp cp = (Cp)request.getAttribute("cp");
String cpName = cp.getCompanyName();
%>
<td colspan="3" align="left"><strong> 操作的cp單位:<%=cpName%></strong></td>
</tr>
<logic:notEmpty name="wap_global_messages" scope="request">
<tr>
<td colspan="3" align="center">
<logic:iterate id="message" name="wap_global_messages" scope="request">
<center>
<font color="red">
<li>
<bean:write name="message" />
</li>
</font>
</center>
</logic:iterate>
<br>
<br>
</td>
</tr>
</logic:notEmpty>
<%
List businessList = (List)request.getAttribute("businessList");
Business business = new Business();
for (int i = 0; i<businessList.size(); i++) {
business= (Business)businessList.get(i);
long businessId = business.getBusinessId();
String businessName = business.getBusinessName();
int duration = business.getDuration();
%>
<tr>
<%
if(i == businessList.size()/2) {
%>
<td align="right"> 欄目:</td>
<%
} else {
%>
<td> </td>
<%
}
%>
<input type="hidden" id="businessIds" name = "businessIds" value="<%=businessId%>"/>
<td align="center"><%=businessName%></td>
<td><input size="5" type="text" value="<%=duration%>" id="durations" name="durations" > 天</td>
</tr>
<%
}
%>
</table>
</td>
</tr>
<tr>
<td class="tborder"></td>
<td align="center">
<br>
<input type="submit" value="保存" >
<input type="reset" value="重置" >
<input type="button" value="返回" onClick="formSubmit('cpListForm', 'module/business/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 + -