📄 bookclassview.jsp
字号:
<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="java.util.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<style type="">
body {margin:0px; font:normal 12px 宋体;
SCROLLBAR-FACE-COLOR: #799AE1; SCROLLBAR-HIGHLIGHT-COLOR: #799AE1;
SCROLLBAR-SHADOW-COLOR: #799AE1; SCROLLBAR-DARKSHADOW-COLOR: #799AE1;
SCROLLBAR-3DLIGHT-COLOR: #799AE1; SCROLLBAR-ARROW-COLOR: #FFFFFF;
SCROLLBAR-TRACK-COLOR: #AABFEC;
}
.style1 {font-size: 24px;
font-weight: bold;
color: #FF0000;
}
.style3 {font-size: 16px}
</style>
<script type="">
//script脚本,用来判断是否输入了值
function check(form)
{
if(form.classname.value=="")
{
alert("请输入您要添加的书的类别名!");
form.classname.focus();
return false;
}
return true;
}
</script>
<body bgcolor="#799AE1"><br>
<jsp:useBean id="my" scope="page" class="bookshop.BookClassBean"/>
<%
ArrayList coll= my.getData();
%>
<table border=1 width=90% height=95% style="border-collapse:collapse" bgcolor=#ffffff align=center valign=Middle bordercolor=#000000>
<tr>
<td valign=top><table width=80% 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>
<table border=1 style="border-collapse:collapse" bordercolor=#6a7f9a
cellspacing=2 align=center width="80%" cellpadding=3>
<tr bgcolor="#edecf4">
<td width=30% height=25 align=center bgcolor="#edecf4">类型编号</td>
<td width=35% align=center>类型名称</td>
<td width=35% align=center>选择</td>
</tr>
<c:forEach var="xie" items="<%=coll%>">
<script type="">
function hello(p)
{
if(confirm("确定要删除图书类型吗?")==true)
location.href="bookClassUpdate.jsp?action=del&id="+p;
}
</script>
<tr>
<td height=25 width=30% align=center>${xie.bookclassno}</td>
<td width=35% align=center>${xie.classname}</td>
<td width=35% align=center><font size=2><a href="#" onclick="hello(${xie.bookclassno})">
<img src="image/shanchu.GIF" width="61" height="20" border=0></a></font></td>
</tr>
</c:forEach>
</table>
<br>
<table border=1 cellspacing=1 cellpadding=0 width=80% align=center style="border-collapse:collapse">
<tr>
<td>
<table width=100% border=0 align=center cellpadding=0 cellspacing=1 background="../background/3.gif">
<form action="bookClassUpdate.jsp?action=add" method="post" name="form" onsubmit="return check(this);">
<tr>
<td align=center width=70% height=25>
<font size=2 >添加类别名称:</font>
<input type="text" name="classname" size=20 style="border:1px double rgb(88,88,88)">
</td>
<td width=30% align=left><input name="imageField" type="image" src="../image/tj.gif" width="61" height="20" border="0"></td>
</tr>
</form>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -