?? usermanage.jsp
字號(hào):
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.Collection,bookshop.UserInfoClass" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<jsp:useBean id="users" scope="page" class="bookshop.UserInfoBean"/>
<html>
<style type="text/css">
<!--
.style1 { font-size: 24px;
font-weight: bold;
color: #FF0000;
}
.style3 {font-size: 16px}
-->
</style>
<body bgcolor=#799AE1><br>
<table border=1 width=96% height=95% style="border-collapse:collapse" bgcolor=#ffffff align=center valign=Middle bordercolor=#000000>
<tr>
<td valign=top><br>
<table width=100% height="28" border=1 align=center cellpadding=0 cellspacing=0 bordercolor=#6a7f9a background="image/1.gif" style="border-collapse:collapse;" >
<tr>
<td height=25 align=center><span class="style1"> <span class="style3"><img src="image/oicq.gif" width="16" height="16">刪除用戶</span></span></td>
</tr>
</table>
<br> <table border=1 style="border-collapse:collapse" bordercolor=#6a7f9a
cellspacing=2 align=center width="100%" cellpadding=3>
<tr bgcolor=#edecf4>
<td align=center height=28><font size=2>編號(hào)</font></td>
<td align=center><font size=2>注冊(cè)名</font></td>
<td align=center><font size=2>姓名</font></td>
<td align=center><font size=2>電話</font></td>
<td align=center><font size=2>E-mail</font></td>
<td align=center><font size=2>選擇</font></td>
</tr>
<%
Collection coll= users.getUser("select * from userinformation");
%>
<script type="">
function hello(p)
{
if(confirm("確定要?jiǎng)h除用戶嗎?")==true)
location.href="userDel.jsp?username="+p;
}
</script>
<c:forEach var="my" items="<%=coll%>">
<tr>
<td width=14% align=center height=28>${my.userid}</td>
<td width=14% align=center>${my.username}</td>
<td width=14% align=center>${my.names}</td>
<td width=23% align=center>${my.tel}</td>
<td width=21% align=center>${my.email}</td>
<td width=14% align=center><font size=2><a href="#" onclick="hello('${my.username}')"><img src="image/shanchu.GIF" width="61" height="20" border=0></a></font></td>
</tr>
</c:forEach>
</table>
<br>
</td>
</tr>
</table>
<br>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -