⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 book_add.jsp

📁 简单实现的商品购物系统
💻 JSP
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="java.util.*" %>
<style>
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>
<body bgcolor="#799AE1"><br>

<table border=1 width=90% height=95% style="border-collapse:collapse" bgcolor=#ffffff align=center valign=Middle bordercolor=#000000>
<tr>
<td valign=top><br>
	<table width=85% 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"> <img src="image/head-1.gif" width="22" height="21"> <span class="style3">图书入库</span></span></td>
	</tr>
	</table>
<br>
<jsp:useBean id="bookclass" scope="page" class="bookshop.BookClassBean"/>
<table border=1 cellspacing=1 cellpadding=0 width=85% align=center style="border-collapse:collapse" bordercolor=#6a7f9a bgcolor=#799AE1>
	<tr>
	<td>
		<table border=0 cellspacing=1 cellpadding=0 width=100% align=center>
		<form action="bookUpdate.jsp?action=add" method="post" name="myform">
		<tr>
			<td align=center width=29% height=25>
			  <font size=2 >*图书名称:</font>
			  </td>
			  <td width=29%>
			  <input type="text" name="bookname" align=center size=20 style="border:1px double rgb(88,88,88)">
			</td>
		      <td width=16%>&nbsp;</td>
		      <td width=26%>&nbsp;</td>
		</tr>
		<tr>
			<td align=center  height=25>
			  <font size=2 >*图书类别:</font>
               </td>
			  <td>
                <select name="bookclassno" id="bookclassno">
                <%
                java.util.ArrayList coll=  bookclass.getClassName();
                for(int i=0;i<coll.size();i++)
                {
                %>
                  <option value="<%=coll.get(i)%>"><%=coll.get(i)%></option>
                <%}%>

                </select>
</td>
		      <td width=16% rowspan="6"><img src="image/no.gif" width="114" height="159" name="myimage"></td>
		      <td>&nbsp;</td>
		</tr>
		<tr>
			<td align=center  height=25>
			  <font size=2 >*作者:</font>
			   </td>
			  <td>
			  <input type="text" name="author" size=20 style="border:1px double rgb(88,88,88)">
			</td>
		      <td>&nbsp;</td>
		</tr>
		<tr>
			<td align=center  height=25>
			  <font size=2 >*出版社:</font>
			   </td>
			  <td>
			  <input type="text" name="publish" size=20 style="border:1px double rgb(88,88,88)">
			</td>
		      <td>&nbsp;</td>
		</tr>
		<tr>
			<td align=center  height=27>
			  <font size=2 >*图书价格:</font>
			   </td>
			  <td>
			  <input name="price" type="text" style="border:1px double rgb(88,88,88)" size=20>
			</td>
		      <td>&nbsp;</td>
		</tr>
		<tr>
			<td align=center  height=25>
			  <font size=2 >打折价:</font>
			   </td>
			  <td>
			  <input type="text" name="agioprice" size=20 style="border:1px double rgb(88,88,88)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			</td>
		      <td>&nbsp;</td>
		</tr>
		<tr>
		  <td align=center height=25><font size=2 >总数量:</font> </td>
		  <td><input type="text" name="amount" size=20 style="border:1px double rgb(88,88,88)"></td>
		  <td>&nbsp;</td>
		</tr>
		<tr>
			<td align=center height=25>&nbsp;&nbsp; <font size=2 >库存数量:</font> </td>
			  <td>			    <input type="text" name="leav_number" size=20 style="border:1px double rgb(88,88,88)">
			</td>
		      <td><div align="center"><font size=2 >封面</font>预览</div></td>
		      <td>&nbsp;</td>
		</tr>
		<tr>
                <script type="">
                 function show()
                 {
                   var   today=new Date();
                   var str=today.getYear()+"年"+(today.getMonth()+1)+"月"+today.getDate()+"日";
                   document.myform.regtime.value=str;
                 }
		  function my(p)//改变图片
                   {
                        document.myform.myimage.src=p;
                    }
                </script>
			<td align=center height=25>
			  <font size=2 >登记时间:</font>
			   </td>
			  <td colspan="3">
			  <input type="text" name="regtime"  onfocus="show()" size=20 style="border:1px double rgb(88,88,88)">
			</td>
		</tr>
		<tr>
			<td align=center  height=25><font size=2 >热点图书:</font>
			   </td>
			  <td colspan="3"><input name="hotbook" type="text" id="hotbook" style="border:1px double rgb(88,88,88)" value="是" size=20 >
			</td>
		</tr>
		<tr>
			<td align=center  height=25>			  <font size=2 >图书封面:</font>
			   </td>
			  <td colspan="3">
			  <input type="file" name="picture"  onchange="my(this.value)" size=20 style="border:1px double rgb(88,88,88)">
			</td>
		</tr>
		<tr>
		  <td align=center  height=25>简介:</td>
		  <td colspan="3"><textarea  name="txtcontext" cols=50% rows=5 id="textarea2" style="border:1px double rgb(88,88,88)">本书结合典型实例从图形用户界面设计和事件处理,图形图像处理与多媒体应用,数据库应用,网络编程,文件处理等多个方面介绍,通过本书学习,读者可以全面掌握应用程序的开发方法和技巧,提高读者学平!</textarea></td>
		  </tr>
		<tr>
			<td align=center  height=25>
			  <font size=2 >内容介绍:</font>
			   </td>
			  <td colspan="3">
			  <textarea  name="booktext" cols=50% rows=8 id="booktext" style="border:1px double rgb(88,88,88)">本书结合典型实例从图形用户界面设计和事件处理,图形图像处理与多媒体应用,数据库应用,网络编程,文件处理等多个方面介绍,通过本书学习,读者可以全面掌握应用程序的开发方法和技巧,提高读者学平!</textarea>
			</td>
		</tr>
		<tr>
			<td  colspan=4 align=center><input type="submit" name="submit" value=" 添加 "  style="border:1px double rgb(88,88,88);background-color:#edecf4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="reset" name="reset" value=" 取消 " style="border:1px double
			rgb(88,88,88);background-color:#edecf4"></td>
		</tr>
		</form>
		</table>
	</td>
	</tr>
	</table>
</td>
</tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -