📄 appbuy.jsp
字号:
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<%=request.getContextPath()%>/css/SMSpublic.css" rel="stylesheet" type="text/css" />
</head>
<script language="javascript" type="text/javascript"
src="<%=request.getContextPath()%>/js/birthday.js"></script>
<script language="javascript" type="text/javascript"
src="<%=request.getContextPath()%>/js/ajax.js"></script>
<script type="text/javascript" language="javascript">
function ckeck(){
var projectID = document.form1.projectID.value;
var productID = document.form1.productID.value;
var check = document.form1.check.value;
var amount = document.form1.amount.value;
var checkamt = document.form1.checkamt.value;
var appID = document.form1.appID.value;
var appbuytime = document.form1.appbuytime.value;
if(productID==""){
alert("货品ID不能为空!");
return false;
}
if(projectID==""){
alert("项目ID不能为空!");
return false;
}
if(check==""){
alert("必须核对货品ID!");
return false;
}
if(amount==""){
alert("数量不能为空!");
return false;
}
if(checkamt==""){
alert("必须核对申购数量!");
return false;
}
if(appID==""){
alert("申请人的ID不能为空!");
return false;
}
if(appbuytime==""){
alert("申购时间不能为空!");
return false;
}
if(isNaN(projectID)){
alert("申购项目ID必须为数字!");
return false;
}
if(isNaN(productID)){
alert("货品ID必须为数字!");
return false;
}
if(isNaN(check)){
alert("核对货品ID必须为数字!");
return false;
}
if(isNaN(amount)){
alert("数量必须位数字!");
return false;
}
if(isNaN(checkamt)){
alert("核对数量必须位数字!");
return false;
}
if(isNaN(checkamt)){
alert("核对数量必须位数字!");
return false;
}
if(isNaN(appID)){
alert("申请人ID必须位数字!");
return false;
}
if(productID!=check){
alert("确认的货品ID不一致,请核对");
return false;
}
if(amount!=checkamt){
alert("确认的数量不一致,请核对");
return false;
}
}
</script>
<body>
<form id="form1" name="form1" method="post" action="appbuy.do" onsubmit="return ckeck()" >
<label></label>
<table width="100%" border="0" cellspacing="1" class="table">
<tr>
<td colspan="2" ><span class="title1"> 添加申购信息</span></td>
</tr>
<tr>
<td class="title2">申购项目ID:</td>
<td><input name="projectID" type="text" class="inputcontent" id="projectID" /> </td>
</tr>
<tr>
<td width="134" class="title2">申购货品ID:</td>
<td width="626"><label>
<input name="productID" type="text" class="inputcontent" id="productID" />
</label></td>
</tr>
<tr>
<td class="title2">确认货品ID:</td>
<td><label>
<input name="check" type="text" class="inputcontent" id="check" />
</label></td>
</tr>
<tr>
<td class="title2">申购货品数量:</td>
<td><label>
<input name="amount" type="text" class="inputcontent" id="amount" />
</label></td>
</tr>
<tr>
<td class="title2">确认货品数量:</td>
<td width="626"><label>
<input name="checkamt" type="text" class="inputcontent" id="checkamt"
/></label></td>
</tr>
<tr>
<td class="title2">申请人ID:</td>
<td><label>
<input name="appID" type="text" class="inputcontent" id="appID" />
</label></td>
</tr>
<tr>
<td height="28" class="title2">申购时间:</td>
<td height="28"><input name="appbuytime" type="text" class="inputcontent" onfocus="getNow(appbuytime)" onchange="getNow(appbuytime)"/></td>
</tr>
<tr>
<td height="23" colspan="2" class="title2">提示信息: ${error}</td>
</tr>
<tr>
<td height="35" colspan="2"><label>
<input name="appbuy" type="submit" class="button" id="appbuy" value="申请" />
<input name="cancel" type="button" class="button" id="cancel" onclick="window.location.href='/mainpage/right.html'" value="取消"/>
</label></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -