insertKhcpxz.jsp
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:4k
源码类别:

企业管理

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%java.util.Date date=new java.util.Date();%>
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  6. <title>添加产品信息</title>
  7. <style type="text/css">
  8. <!--
  9. body {
  10. background-color: #000000;
  11. margin-left: 0px;
  12. margin-top: 0px;
  13. }
  14. td{
  15. font-size:9pt;
  16. }
  17. .style1 {font-size: 11pt}
  18. -->
  19. </style>
  20. </head>
  21. <script language="JavaScript">
  22. function RgTest(){
  23. if(document.form.mc.value==""){
  24. window.alert("请输入产品名称");
  25. return false;
  26. }
  27. if(document.form.dj.value==""){
  28. window.alert("请输入产品单价");
  29. return false;
  30. }
  31. if(isNan(document.form.dj.value)){
  32. window.alert("产品单价只能是数字");
  33. return false;
  34. }
  35. if(document.form.bz.value==""){
  36. window.alert("请输入产品备注信息");
  37. return false;
  38. }
  39. return true;
  40. }
  41. </script>
  42. <body> 
  43. <table width="579"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> 
  44.   <tr> 
  45.     <td>&nbsp;</td> 
  46.   </tr> 
  47. </table> 
  48. <table width="579" border="0" cellpadding="0" cellspacing="0"> 
  49.   <tr> 
  50.     <td align="left" valign="top" bgcolor="#FFFFFF"> <table width="579" height="487"  border="0" cellpadding="0" cellspacing="0"> 
  51.         <tr> 
  52.           <td align="left" valign="top" bgcolor="#FFFFFF"><table width="579" border="0" cellpadding="0" cellspacing="0"> 
  53.               <tr> 
  54.                 <td width="2%" height="28">&nbsp;</td> 
  55.                 <td width="9%" background="images/circle.jpg">&nbsp;</td> 
  56.                 <td width="89%" bgcolor="#FFFFFF"><span class="style1">添加产品信息</span></td> 
  57.               </tr> 
  58.               <tr style="line-height:2px"> 
  59.                 <td width="2%" height="5">&nbsp;</td> 
  60.                 <td height="5" colspan="2" bgcolor="#D4D0C8">&nbsp;</td> 
  61.               </tr> 
  62.               <tr align="center" valign="top" bgcolor="#FFFFFF"> 
  63.                 <td height="454" colspan="3"><br> 
  64.                   <form name="form" method="post" action=""  onSubmit="return RgTest()"> 
  65.                     <table width="515" border="0" cellpadding="2" cellspacing="1" bgcolor="#666666"> 
  66.                       <tr> 
  67.                         <td width="86" height="24" align="right" bgcolor="#ffcc33"><div align="center">产品编号</div></td> 
  68.                         <td width="146" align="left" bgcolor="#FFFFFF"><input name="id" type="hidden" value="XS-<%=request.getAttribute("count")%>"> 
  69.                         XS-<%=request.getAttribute("count")%></td> 
  70.                         <td width="85" align="center" bgcolor="#ffcc33"> 产品名称</td> 
  71.                         <td width="177" bgcolor="#FFFFFF"><input type="text" name="mc"></td> 
  72.                       </tr> 
  73.                       <tr> 
  74.                         <td height="24" align="right" bgcolor="#ffcc33"><div align="center">产品单价</div></td> 
  75.                         <td bgcolor="#FFFFFF"><input type="text" name="dj"></td>
  76.                         <td align="center" bgcolor="#ffcc33">产品销售日期</td> 
  77.                         <td bgcolor="#FFFFFF"><input type="hidden" name="xsrq" value="<%=date.getYear()+1900%>年<%=date.getMonth()+1%>月<%=date.getDate()%>日"><%=date.getYear()+1900%>年<%=date.getMonth()+1%>月<%=date.getDate()%>日</td>
  78.                       </tr> 
  79.                      
  80.                       <tr> 
  81.                         <td height="24" align="right" bgcolor="#ffcc33"><div align="center">产品备注</div></td> 
  82.                         <td colspan="3" bgcolor="#FFFFFF"><input name="bz" type="text" value="无" size="58"></td> 
  83.                       </tr> 
  84.                     </table> 
  85.                     <br>
  86.                     <input type="submit" name="Submit2" value="提交"> 
  87. &nbsp;&nbsp;&nbsp;&nbsp; 
  88.                     <input type="reset" name="Submit" value="重置"> 
  89.                   </form> 
  90.             </table></td> 
  91.         </tr> 
  92.       </table></td> 
  93.   </tr> 
  94. </table> 
  95. </body>
  96. </html>