📄 application.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 type="text/javascript" language="javascript">
function ckeck(){
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.apptime.value;
if(productID==""){
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(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(checkamt!=amount){
alert("确认的数量不一致,请重新输入");
return false;
}
}
</script>
<body>
<form id="form1" name="form1" method="post" action="application.do" onsubmit="return ckeck()">
<table border="0" cellspacing="1">
<tr>
<td colspan="2"> <span class="title1"> 添加申领信息</span></td>
</tr>
<tr>
<td width="123" class="title2">申领货品ID:</td>
<td width="637"><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><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="apptime" type="text" class="inputcontent" onfocus="getNow(apptime)" onchange="getNow(apptime)"/></td>
</tr>
<tr>
<td height="35" 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" value="取消" onclick="window.location.href='/mainpage/right.html'"/>
</label></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -