📄 addowner.jsp
字号:
<%@page contentType="text/html; charset=GBK"%>
<html>
<head>
<title>addowner</title>
<link href="<%=request.getContextPath()%>/css/fund.css" rel="stylesheet" type="text/css"/>
</head>
<body bgcolor="#ffffff">
<%@include file="header.jsp"%>
<script type="" language="JavaScript">
function chkNull() {
if (document.frm.oname.value.length==0) {
alert("所有人必须输入");
document.frm.oname.focus();
return false;
}
if (document.frm.oaddress.value.length==0) {
alert("地址必须输入");
document.frm.oaddress.focus();
return false;
}
if (document.frm.ocity.value.length==0) {
alert("城市必须输入");
document.frm.ocity.focus();
return false;
}
if (document.frm.otelephone.value.length==0) {
alert("电话必须输入");
document.frm.otelephone.focus();
return false;
}
return true;
}
function check(){
var r = document.frm.otelephone.value;
if(isNaN(r)==true)){
alert("请输入数字并且小于13位!");
document.frm.otelephone.focus();
document.frm.otelephone.select();
}
}
</script>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="thd" width="70%" align="center">
<form name="frm" action="<%=request.getContextPath()%>/addownerservlet" method="POST" onsubmit="return chkNull()">
<table border="0" width="60%">
<tr>
<td class="tdata" width="50%">所有人名称</td>
<td class="tdata" width="50%">
<input class="inputstyle" size="1" type="text" name="oname"/>
</td>
</tr>
<tr>
<td class="tdata" width="50%">地址</td>
<td class="tdata" width="50%">
<input class="inputstyle" size="1" type="text" name="oaddress"/>
</td>
</tr>
<tr>
<td class="tdata" width="50%">城市</td>
<td class="tdata" width="50%">
<input class="inputstyle" size="1" type="text" name="ocity"/>
</td>
</tr>
<tr>
<td class="tdata" width="50%">电话</td>
<td class="tdata" width="50%">
<input class="inputstyle" size="1" type="text" name="otelephone" maxlength="13" onblur="check()"/>
</td>
</tr>
<tr>
<td class="thd" colspan="2"> </td>
</tr>
<tr>
<td colspan="1" align="center">
<input class="btnaction" type="submit" name="qqq" value="增加"/>
</td>
<td colspan="1" align="center">
<input class="btnaction" type="button" name="aaa" value="放弃" onclick="javascript:history.back()"/>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<%@include file="foot.jsp"%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -