product.jsp
上传用户:zhc3n3
上传日期:2022-07-30
资源大小:2750k
文件大小:3k
- <%@ page contentType="text/html; charset=GBK" language="java" import="java.sql.*" errorPage="" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>商品的添加</title>
- <script type="text/javascript">
- function tishi(){
- alert("添加成功!");
- }
- </script>
- <script language="JavaScript" type="text/JavaScript">
- <!--
- function MM_reloadPage(init) { //reloads the window if Nav4 resized
- if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
- document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
- else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
- }
- MM_reloadPage(true);
- //-->
- </script>
- </head>
- <body style="background-image:url(images/10636126.jpg)">
- <div id="Layer1" style="position:absolute; left:219px; top:57px; width:721px; height:382px; z-index:1;background-color:#CCCCCC ">
- <form action="addProduct.do" method="post" enctype="multipart/form-data" name="form1">
- <table width="584" height="253" border="0" align="center">
- <tr>
- <td colspan="3"><h1 align="center">商品的添加</h1></td>
- </tr>
- <tr>
- <td colspan="2"><h3>欢迎登录:${sessionScope.username}</h3></td>
- <td width="189" rowspan="9"><img width="180" height="188" src="" name="img"/></td>
- </tr>
- <tr>
- <td width="128"><div align="right">商品编号:</div></td>
- <td width="253"><input name="productid" type="text" disabled="true" value="默认添加(禁用)"></td>
- </tr>
- <tr>
- <td><div align="right">名称:</div></td>
- <td><input name="productname" type="text"></td>
- </tr>
- <tr>
- <td><div align="right">价格: </div></td>
- <td><input name="productprice" type="text"></td>
- </tr>
- <tr>
- <td><div align="right">作者: </div></td>
- <td><input name="productauthor" type="text"></td>
- </tr>
- <tr>
- <td><div align="right">出版社: </div></td>
- <td><input name="productpublishing" type="text"></td>
- </tr>
- <tr>
- <td><div align="right">简介: </div></td>
- <td><textarea name="productintroduction"></textarea></td>
- </tr>
- <tr>
- <td><div align="right">图片名称:</div></td>
- <td><input name="productimage" type="file" value="图片路径" onpropertychange="img.src=this.value;"></td>
- </tr>
- <tr>
- <td colspan="2"><div align="center">
- <input type="submit" name="button" value="添加商品" onClick="tishi()"/>
- </div></td>
- </tr>
- </table>
- </form>
- </div>
- </body>
- </html>