?? 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 + -