📄 insertkhcpxz.jsp
字号:
<%@ page contentType="text/html; charset=gb2312"%>
<%java.util.Date date=new java.util.Date();%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加产品信息</title>
<style type="text/css">
<!--
body {
background-color: #000000;
margin-left: 0px;
margin-top: 0px;
}
td{
font-size:9pt;
}
.style1 {font-size: 11pt}
-->
</style>
</head>
<script language="JavaScript">
function RgTest(){
if(document.form.mc.value==""){
window.alert("请输入产品名称");
return false;
}
if(document.form.dj.value==""){
window.alert("请输入产品单价");
return false;
}
if(isNan(document.form.dj.value)){
window.alert("产品单价只能是数字");
return false;
}
if(document.form.bz.value==""){
window.alert("请输入产品备注信息");
return false;
}
return true;
}
</script>
<body>
<table width="579" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td> </td>
</tr>
</table>
<table width="579" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" bgcolor="#FFFFFF"> <table width="579" height="487" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" bgcolor="#FFFFFF"><table width="579" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="2%" height="28"> </td>
<td width="9%" background="images/circle.jpg"> </td>
<td width="89%" bgcolor="#FFFFFF"><span class="style1">添加产品信息</span></td>
</tr>
<tr style="line-height:2px">
<td width="2%" height="5"> </td>
<td height="5" colspan="2" bgcolor="#D4D0C8"> </td>
</tr>
<tr align="center" valign="top" bgcolor="#FFFFFF">
<td height="454" colspan="3"><br>
<form name="form" method="post" action="" onSubmit="return RgTest()">
<table width="515" border="0" cellpadding="2" cellspacing="1" bgcolor="#666666">
<tr>
<td width="86" height="24" align="right" bgcolor="#ffcc33"><div align="center">产品编号</div></td>
<td width="146" align="left" bgcolor="#FFFFFF"><input name="id" type="hidden" value="XS-<%=request.getAttribute("count")%>">
XS-<%=request.getAttribute("count")%></td>
<td width="85" align="center" bgcolor="#ffcc33"> 产品名称</td>
<td width="177" bgcolor="#FFFFFF"><input type="text" name="mc"></td>
</tr>
<tr>
<td height="24" align="right" bgcolor="#ffcc33"><div align="center">产品单价</div></td>
<td bgcolor="#FFFFFF"><input type="text" name="dj"></td>
<td align="center" bgcolor="#ffcc33">产品销售日期</td>
<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>
</tr>
<tr>
<td height="24" align="right" bgcolor="#ffcc33"><div align="center">产品备注</div></td>
<td colspan="3" bgcolor="#FFFFFF"><input name="bz" type="text" value="无" size="58"></td>
</tr>
</table>
<br>
<input type="submit" name="Submit2" value="提交">
<input type="reset" name="Submit" value="重置">
</form>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -