📄 cellphonelistright.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.longtime.wap.model.Cellphone" %>
<%@ 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="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested"%>
<%@ taglib uri="/page-tag" prefix="page"%>
<html:form action="cellphoneList.do?method=listCellphone" styleId="listCellphone" method="post" onsubmit="return false;">
<table align="center" width="98%" class="TableBack">
<th colspan="3" align="left">
机型管理
</th>
<tr>
<td colspan="3">
<table width="100%" class="TableBack">
<tr>
<td align="left">
机型搜索:
手机型号:<html:text property="searchType" size="15"></html:text>
厂商:<html:text property="searchCompany" size="15"></html:text>
<input type="button" name="search" value="搜索" onClick="formSubmit('listCellphone', 'module/cellphone/cellphoneList.do?method=listCellphone')">
</td>
<TD align="center">
<logic:notEmpty name="actionMessages" scope="request">
<logic:iterate id="message" name="actionMessages" scope="request">
<center>
<font color="red"><li>
<bean:write name="message" />
</li>
</font>
</center>
</logic:iterate>
</logic:notEmpty>
</TD>
<td align="right" width="30%">
<input type="button" value="机型添加" name="add" onClick="formSubmit('listCellphone', 'module/cellphone/cellphoneEdit.do?method=getCellphone&type=new')">
<input type="button" value="删除" name="delete" onClick="recordDelete('deleteCellphoneIds', 'listCellphone', 'module/cellphone/cellphoneList.do?method=deleteCellphones')">
</td>
</tr>
<logic:notEmpty name="wap_global_messages" scope="request">
<tr>
<TD colspan="2">
<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>
</tr>
</logic:notEmpty>
</table>
</td>
</tr>
<tr>
<td colspan="3">
<table align="center" border="1" width="100%" id="cellphoneTable" class="TableBack2">
<tr>
<th>
手机UA
</th>
<th>
手机型号
</th>
<th>
厂商
</th>
<th>
查看
</th>
<th>
编辑
</th>
<th>
<input type="checkbox" onclick="allCheck('cellphoneTable','5')">
</th>
</tr>
<%
if (null != request.getAttribute("cellphones")){
List cellphones = (List)request.getAttribute("cellphones");
for (int i = 0; i < cellphones.size(); i++) {
Cellphone cellphone = (Cellphone)cellphones.get(i);
%>
<TR>
<TD align="left">
<%=cellphone.getUa()%>
</TD>
<TD align="left">
<%=cellphone.getModel()%>
</TD>
<TD align="left">
<%=cellphone.getBrand()%>
</TD>
<TD align="center">
<a href="javascript:formSubmit('listCellphone', 'module/cellphone/cellphoneEdit.do?method=getCellphone&type=view&id=<%=cellphone.getCellphoneId()%>')" class="href">查看</a>
</TD>
<TD align="center">
<a href="javascript:formSubmit('listCellphone', 'module/cellphone/cellphoneEdit.do?method=getCellphone&type=edit&id=<%=cellphone.getCellphoneId()%>')" class="href">编辑</a>
</TD>
<TD align="center">
<input type="checkbox" id="deleteCellphoneIds" name="deleteCellphoneIds" value="<%=cellphone.getCellphoneId()%>" />
</TD>
</TR>
<%
}
}
%>
</table>
</td>
</tr>
<TR>
<td class="tborder"></td>
<td>
<page:page_tag formName="listCellphone" action="module/cellphone/cellphoneList.do?method=listCellphone"/>
</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 + -