product.jsp
上传用户:zhc3n3
上传日期:2022-07-30
资源大小:2750k
文件大小:3k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. <%@ page contentType="text/html; charset=GBK" language="java" import="java.sql.*" errorPage="" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <title>商品的添加</title>
  7. <script type="text/javascript">
  8. function tishi(){
  9. alert("添加成功!");
  10. }
  11. </script>
  12. <script language="JavaScript" type="text/JavaScript">
  13. <!--
  14. function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  15.   if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
  16.     document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  17.   else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
  18. }
  19. MM_reloadPage(true);
  20. //-->
  21. </script>
  22. </head>
  23. <body style="background-image:url(images/10636126.jpg)">
  24. <div id="Layer1" style="position:absolute; left:219px; top:57px; width:721px; height:382px; z-index:1;background-color:#CCCCCC ">
  25.   <form action="addProduct.do" method="post" enctype="multipart/form-data" name="form1">
  26.     <table width="584" height="253" border="0" align="center">
  27.       <tr>
  28.         <td colspan="3"><h1 align="center">商品的添加</h1></td>
  29.       </tr>
  30.       <tr>
  31.         <td colspan="2"><h3>欢迎登录:${sessionScope.username}</h3></td>
  32.         <td width="189" rowspan="9"><img width="180" height="188" src="" name="img"/></td>
  33.       </tr>
  34.       <tr>
  35.         <td width="128"><div align="right">商品编号:</div></td>
  36.         <td width="253"><input name="productid" type="text" disabled="true" value="默认添加(禁用)"></td>
  37.       </tr>
  38.       <tr>
  39.         <td><div align="right">名称:</div></td>
  40.         <td><input name="productname" type="text"></td>
  41.       </tr>
  42.       <tr>
  43.         <td><div align="right">价格: </div></td>
  44.         <td><input name="productprice" type="text"></td>
  45.       </tr>
  46.       <tr>
  47.         <td><div align="right">作者: </div></td>
  48.         <td><input name="productauthor" type="text"></td>
  49.       </tr>
  50.       <tr>
  51.         <td><div align="right">出版社: </div></td>
  52.         <td><input name="productpublishing" type="text"></td>
  53.       </tr>
  54.       <tr>
  55.         <td><div align="right">简介: </div></td>
  56.         <td><textarea name="productintroduction"></textarea></td>
  57.       </tr>
  58.       <tr>
  59.         <td><div align="right">图片名称:</div></td>
  60.         <td><input name="productimage" type="file" value="图片路径" onpropertychange="img.src=this.value;"></td>
  61.       </tr>
  62.       <tr>
  63.         <td colspan="2"><div align="center">
  64.           <input type="submit" name="button" value="添加商品" onClick="tishi()"/>
  65.         </div></td>
  66.       </tr>
  67.     </table>
  68.   </form>
  69. </div>
  70. </body>
  71. </html>