?? buildings_eh.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,java.util.*,imis_hous.com.impl.*" errorPage="" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>無標(biāo)題文檔</title>
</head>
<link href="/Imis/imis_hous/css/style.css" rel="stylesheet" type="text/css">
<script language="javascript" src="/Imis/imis_hous/jf/checkdata.js">
</script>
<script language="JavaScript">
function checkValue() {
var J_BuildingNu = document.form1.J_BuildingNu.value;
if (J_BuildingNu=="") {
window.alert("請輸入建筑物代號");
document.form1.J_BuildingNu.focus();
return false;
}
var J_BuildDate = document.form1.J_BuildDate.value;
if (J_BuildDate=="") {
window.alert("請輸入建筑物年代");
document.form1.J_BuildDate.focus();
return false;
}
if (J_BuildingNu.length > 30){
window.alert("輸入建筑物代號長度超出,限定為15個中文字符或者30個英文字符。");
document.form1.J_BuildingNu.focus();
return false;
}if(J_BuildingNu!=null){
var regp =/^[0-9a-zA-Z]{1,30}$/;
if(J_BuildingNu.match(regp)==null){
document.form1.J_BuildingNu.focus();
window.alert("輸入的建筑物編號格式錯誤!!必須是數(shù)字和字母組合");
return false;
}
}
var J_BuildingName = document.form1.J_BuildingName.value;
if (J_BuildingName=="") {
window.alert("請輸入建筑物名稱");
document.form1.J_BuildingName.focus();
return false;
}
if (J_BuildingName.length > 50){
window.alert("輸入建筑物名稱長度超出,限定為25個中文字符或者50個英文字符。");
document.form1.J_BuildingName.focus();
return false;
}
var J_BuildingArea = document.form1.J_BuildingArea.value;
if (J_BuildingArea!=""){
var regp = /(^[\d]{1,7}|^[\d]{1,7})($|[\.][\d]{0,2}$)/;
if (J_BuildingArea.match(regp) == null)
{
document.form1.J_BuildingArea.focus();
alert("輸入建筑物面積格式錯誤!使用“0.00”格式");
return false;
}
}
var J_BuildingLayers = document.form1.J_BuildingLayers.value;
if (J_BuildingLayers!=""){
var regp = /^\d{1,9}$/;
if (J_BuildingLayers.match(regp) == null)
{
document.form1.J_BuildingLayers.focus();
alert("輸入建筑物層數(shù)格式錯誤!必須為正整數(shù)!");
return false;
}
}
var J_Memo = document.form1.J_Memo.value;
if (J_Memo.length > 1000){
window.alert("輸入建筑物備注長度超出,限定為500個中文字符或者1000個英文字符。");
document.form1.J_Memo.focus();
return false;
}
var J_BuildIdNo = document.form1.J_BuildIdNo.value;
if (J_BuildIdNo.length > 50){
window.alert("輸入房產(chǎn)證號長度超出,限定為25個中文字符或者50個英文字符。");
document.form1.J_BuildIdNo.focus();
return false;
}
var J_IdTime = document.form1.J_IdTime.value;
if (J_IdTime=="") {
window.alert("請輸入辦證時間");
document.form1.J_IdTime.focus();
return false;
}
return true;
}
</script>
<body background="/Imis/imis_hous/css/images/bg_main.png">
<table width="100%" border="0" class="ziti" background="/Imis/imis_hous/css/images/bg_main.png" align="center">
<tr>
<td colspan="2" height="20" background="/Imis/imis_hous/css/images/bg_main2.png"><font color="#000000">建筑物信息錄入</font></td>
</tr>
</table>
<form name="form1" method="post" action="/Imis/servlet/Building_sl?id=add" onsubmit="return checkValue()">
<table width="100%" border="0" class="ziti" background="/Imis/imis_hous/css/images/bg_main.png" align="center">
<tr>
<td width="388"><div align="right">建筑物代號:</div></td>
<td width="383"><input name="J_BuildingNu" type="text" class="text1" size="20" maxlength="30">
<c:if test="${requestScope.BuildingsInfo!=null}">
<font color="red"> ${requestScope.BuildingsNuNotExists}</font>
</c:if>
<font color=red>*</font></td>
</tr>
<tr>
<td><div align="right">地塊名稱:</div></td>
<td>
<select name="J_AreaNu">
<%
HashMap hashDept = new GetBuildName().getDepartment("Areanu","AreaName","area_info");
int length = hashDept.size();
String []deptName = new String[length];//部門數(shù)組
String []deptId= new String[length];//部門用房面積數(shù)組
Iterator itDeptId = hashDept.keySet().iterator();//鍵迭代
Iterator itDeptName = hashDept.values().iterator();//值迭代
int i=0;
while(itDeptId.hasNext()){
deptId[i] = itDeptId.next().toString();
i++;
}
i=0;
while(itDeptName.hasNext()){
deptName[i] = itDeptName.next().toString();
i++;
}
for(int j=0;j<length;j++ ){
%>
<option value=<%=deptId[j] %>><%= deptName[j] %></option>
<% }%>
</select>
</td>
</tr>
<tr>
<td><div align="right">建筑物名稱:</div></td>
<td><input name="J_BuildingName" type="text" class="text1" size="20" maxlength="50">
<font color=red>*</font></td>
</tr>
<tr>
<td><div align="right">建筑物面積:</div></td>
<td><input name="J_BuildingArea" type="text" class="text1" value="0.00" size="8">
</td>
</tr>
<tr>
<td><div align="right">建筑物層數(shù):</div></td>
<td><input name="J_BuildingLayers" type="text" class="text1" value="0" size="5">
</td>
</tr>
<tr>
<td><div align="right">建筑物年代:</div></td>
<td>
<input name="J_BuildDate" id="J_BuildDate" size="10" maxlength="10" readonly="readonly" type="text" class="text1" onMouseDown="javascript:setday(form1.J_BuildDate);"/>
<font color=red>*</font>
</td>
</tr>
<tr>
<td><div align="right">房產(chǎn)證號:</div></td>
<td><input name="J_BuildIdNo" type="text" class="text1" size="20" maxlength="50">
</td>
</tr>
<tr>
<td><div align="right">辦證時間:</div></td>
<td><input name="J_IdTime" type="text" class="text1" size="10" maxlength="10" readonly="readonly" type="text" class="text1" onMouseDown="javascript:setday(form1.J_IdTime);"/>
<font color=red>*</font></td>
</tr>
<tr>
<td><div align="right">建筑物用途:</div></td>
<td><select name="J_UseFor" class="text1">
<option selected value="1">辦公用</option>
<option value="2">出租</option>
<option value="3">居住</option>
<option value="4">其他</option>
</select></td>
</tr>
<tr>
<td><div align="right">備注:</div></td>
<td><textarea name="J_Memo" rows="5" class="text1"></textarea></td>
</tr>
<tr><td> </td>
<td> </td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="提 交" class="anniu">
<input type="reset" name="Submit2" value="重 置" class="anniu">
</div></td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -