?? cplistright.jsp
字號:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.longtime.wap.model.Cp,com.longtime.wap.model.UserInfo" %>
<%@ 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"%>
<% String path = request.getContextPath();%>
<html:form action="/manageCpAdmin.do?method=listCpAdmin" styleId="listCp" method="post" onsubmit="return false;">
<table align="center" width="98%" class="TableBack">
<th colspan="3" align="left">
CP管理員維護(hù)
</th>
<tr>
<td colspan="3">
<table width="100%" class="TableBack">
<tr>
<td align="right">
<input type="button" name="create" value="新增cp管理員" onclick="window.location.href='<%=path%>/module/cost/manageCpAdmin.do?method=getCpAdmin&flag=1';">
<input type="button" value="刪除" name="delete" onclick="recordDelete('delIds', 'listCp', '<%=path%>/module/cost/manageCpAdmin.do?method=deleteCpAdmins');"/>
</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="cpList" class="TableBack2">
<tr>
<th>
登錄名
</th>
<th>
單位名稱
</th>
<th>
管理員名稱
</th>
<th>
描述
</th>
<th>
添加日期
</th>
<th>
查看
</th>
<th>
編輯
</th>
<th>
<input type="checkbox" onclick="allCheck('cpList','7')"/>
</th>
</tr>
<%
List list = (List) request.getAttribute("cps");
for(int i=0;i<list.size();i++){
UserInfo userInfo = (UserInfo)list.get(i);
%>
<tr>
<td>
<%=userInfo.getUserName()%>
</td>
<td>
<%=userInfo.getCp().getCompanyName()%>
</td>
<td>
<%=userInfo.getNickname()%>
</td>
<td>
<%if(userInfo.getMemo()==null){%>
<%}else{%>
<%=userInfo.getMemo()%>
<%}%>
</td>
<td align="center">
<%=userInfo.getRegDate()%>
</td>
<td align="center">
<a href="<%=path%>/module/cost/manageCpAdmin.do?method=viewCpAdmin&id=<%=userInfo.getUserId()%>">查看</a>
</td>
<td align="center">
<a href="<%=path%>/module/cost/manageCpAdmin.do?method=getCpAdmin&flag=2&userId=<%=userInfo.getUserId()%>">編輯</a>
</td>
<td align="center">
<input type="checkbox" id="delIds" name="delIds" value="<%=userInfo.getUserId()%>" />
</td>
</tr>
<%} %>
</table>
</td>
</tr>
<TR>
<td class="tborder"></td>
<td>
<page:page_tag formName="listCp" action="module/cost/manageCpAdmin.do?method=listCpAdmin"/>
</td>
<td class="tborder"></td>
</TR>
<tr>
<td colspan="3" class="tborder"></td>
</tr>
</table>
</html:form>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -