newhouse_modi.asp
来自「房地产管理系统 vb写的,很不错!!!!!!!!!!!」· ASP 代码 · 共 477 行 · 第 1/2 页
ASP
477 行
</FONT></SPAN></FONT><font color="#FFCC00" size="2"> </font><font color="#FF6600">*</font></td>
<td width="18%" height="24" align="center"><font color="#FFFF00">占地面积:</font></td>
<td width="36%" height="24"><input name="mianji" type="text" id="mianji" value="<%=Trim(Rs("mianji"))%>" size="15">
M<sup>2</sup></td>
</tr>
<tr bgcolor="#585858">
<td height="24" align="center"><font color="#FFFF00">起 价:</font></td>
<td height="24"><input name="beginprice" type="text" id="beginprice" value="<%=Trim(Rs("beginprice"))%>" size="15">
元/M<sup>2</sup></td>
<td height="24" align="center"><font color="#FFFF00">均 价:</font></td>
<td height="24"><input name="avgprice" type="text" id="avgprice" value="<%=Trim(Rs("avgprice"))%>" size="15">
元/M<sup>2</sup></td>
</tr>
<tr bgcolor="#585858">
<tr bgcolor="#585858">
<td height="24" align="center"><font color="#FFFF00">绿化率:</font></td>
<td height="24">
<input name="liuhua" type="text" id="liuhua" value="<%=Trim(Rs("liuhua"))%>" size="15"></td>
<td height="24" align="center"><font color="#FFFF00">容积率:</font></td>
<td height="24">
<input name="rongji" type="text" id="rongji" value="<%=Trim(Rs("rongji"))%>" size="15">(如:1.2)</td>
</tr>
</tr>
<tr bgcolor="#585858">
<td height="24" align="center"><font color="#FFFF00">物业公司:</font></td>
<td height="24">
<input name="wuye" type="text" id="wuye" value="<%=Trim(Rs("wuye"))%>" size="15"></td>
<td height="24" align="center"><font color="#FFFF00">预售证:</font></td>
<td height="24">
<input name="yusou" type="text" id="yusou" value="<%=Trim(Rs("yusou"))%>" size="15"></td>
</tr>
<tr bgcolor="#585858">
<td height="24" align="center"><font color="#FFFF00">详细地址:</font></td>
<td height="24" colspan="3"><input name="houseaddress" type="text" id="houseaddress" value="<%=Trim(Rs("houseaddress"))%>" size="50">
<font color="#FF6600">*</font></td>
</tr>
<tr bgcolor="#585858">
<td height="24" align="center"><font color="#FFFF00">公交路线:</font></td>
<td height="24" colspan="3"><input name="busline" type="text" id="busline" value="<%=Trim(Rs("busline"))%>" size="60"></td>
</tr>
<tr bgcolor="#585858">
<td height="24" align="center"><font color="#FFFF00">售楼地址:</font></td>
<td height="24"><input name="selladdress" type="text" id="selladdress" value="<%=Trim(Rs("selladdress"))%>" size="15">
<font color="#FF6600">*</font></td>
<td height="24" align="center"><font color="#FFFF00">售楼热线:</font></td>
<td height="24"><input name="sellhottel" type="text" id="sellhottel" value="<%=Trim(Rs("sellhottel"))%>" size="20">
<font color="#FF6600">*</font></td>
</tr>
<tr bgcolor="#585858">
<td height="24" align="center"><font color="#FFFF00">联 系 人:</font></td>
<td height="24"><input name="linkman" type="text" id="linkman" value="<%=Trim(Rs("linkman"))%>" size="15">
<font color="#FF6600">*</font></td>
<td height="24" align="center"><font color="#FFFF00">传 真:</font></td>
<td height="24"><input name="sellfax" type="text" id="sellfax" value="<%=Trim(Rs("sellfax"))%>" size="20"></td>
</tr>
<tr bgcolor="#585858">
<td height="26" align="center"><font color="#FFFF00">E-Mail:</font></td>
<td height="26" colspan="3"> <input name="email" type="text" id="email" value="<%=Trim(Rs("email"))%>" size="50">
</td>
</tr>
<tr bgcolor="#585858">
<td height="26" align="center"><font color="#FFFF00">网 址:</font></td>
<td height="24" colspan="3"><input name="Web" type="text" id="Web" value="<%=Trim(Rs("Web"))%>" size="40"></td>
</tr>
<tr bgcolor="#585858">
<td height="65" align="center"><font color="#FFFF00">交通状况:</font></td>
<td height="24" colspan="3"><textarea name="trafficstatus" cols="47" rows="3" id="trafficstatus"><%=Trim(Rs("trafficstatus"))%></textarea></td>
</tr>
<tr bgcolor="#585858">
<td height="120" align="center"><font color="#FFFF00">楼盘简介:</font></td>
<td height="24" colspan="3"><textarea name="jianjie" cols="47" rows="7" id="jianjie"><%=Trim(Rs("jianjie"))%></textarea>
<font color="#FF6600">*</font></td>
</tr>
<tr bgcolor="#585858">
<td height="24" colspan="4" align="center"><input name="hid" type="hidden" id="hid" value="<%=Trim(Rs("hid"))%>">
<input type="submit" name="Submit" value=" 修 改 " onClick="return check();">
<input type="reset" name="Submit2" value=" 重 置 ">
<script language="JavaScript">
function check()
{
var number="1234567890.";
var astring="1234567890-()"
if(document.form2.housename.value=="")
{
alert("请填写楼盘名称!");
document.form2.housename.focus();
return false;
}
if(document.form2.Developer.value=="")
{
alert("请填写开发商!");
document.form2.Developer.focus();
return false;
}
if(document.form2.area.value=="")
{
alert("请选择区域!");
document.form2.area.focus();
return false;
}
if(document.form2.houseaddress.value=="")
{
alert("请填写详细地址!");
document.form2.houseaddress.focus();
return false;
}
if(document.form2.selladdress.value=="")
{
alert("请填写售楼地址!");
document.form2.selladdress.focus();
return false;
}
if(document.form2.sellhottel.value=="")
{
alert("请填写售楼热线!");
document.form2.sellhottel.focus();
return false;
}
if(document.form2.linkman.value=="")
{
alert("请填写联系人!");
document.form2.linkman.focus();
return false;
}
if(document.form2.jianjie.value=="")
{
alert("请填写楼盘简介");
document.form2.jianjie.focus();
return false;
}
for(i=0;i<=document.form2.mianji.value.length;i++)
{
if (number.indexOf(document.form2.mianji.value.substring(i,i+1))==-1)
{
alert("面积中含有非法字符!");
document.form2.mianji.focus();
return false;
}
}
for(i=0;i<=document.form2.avgprice.value.length;i++)
{
if (number.indexOf(document.form2.avgprice.value.substring(i,i+1))==-1)
{
alert("均价中含有非法字符!");
document.form2.avgprice.focus();
return false;
}
}
for(i=0;i<=document.form2.beginprice.value.length;i++)
{
if (number.indexOf(document.form2.beginprice.value.substring(i,i+1))==-1)
{
alert("起价中含有非法字符!");
document.form2.beginprice.focus();
return false;
}
}
for(i=0;i<=document.form2.sellfax.value.length;i++)
{
if (astring.indexOf(document.form2.sellfax.value.substring(i,i+1))==-1)
{
alert("传真中含有非法字符!");
document.form2.sellfax.focus();
return false;
}
}
for(i=0;i<=document.form2.sellhottel.value.length;i++)
{
if (astring.indexOf(document.form2.sellhottel.value.substring(i,i+1))==-1)
{
alert("售楼热线中含有非法字符!");
document.form2.sellhottel.focus();
return false;
}
}
if(simg.innerText.length<12)
{
alert("请上传楼盘小图片")
return false;
}
document.form2.simgname.value=simg.innerText;
document.form2.bimgname.value=bimg.innerText;
document.form2.wzimgname.value=wzimg.innerText;
document.form2.xqimgname.value=xqimg.innerText;
document.form2.slimgname.value=slimg.innerText;
document.form2.fximgname.value=fximg.innerText;
document.form2.submit();
return true;
}
function LoadImg(TextField,imgtype,action)
{
var TextField=TextField;
var imgtype=imgtype;
var action=action;
// if(document.all(TextField).innerText=="")
//{
window.open('../inc/upload.asp?filename=&imgtype='+imgtype+'&imgname=&textField='+TextField+'&action='+action+'','_blank','width=310,height=105,top=300,left=300')
// return true;
//}
// else
//{
// alert("图片只允许上传一张!");
// return false;
//}
}
</script></td>
</tr>
</form>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="../images/httable_04.gif" width=606 height=19></td>
</tr>
</table></td>
</tr>
<%
Rs.Close
Set Rs=Nothing
CloseDataConn
%>
</table></td>
</tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../images/ht_04.gif" width="778" height="4"></td>
</tr>
</table>
<!-- End ImageReady Slices -->
<map name="Map">
<area shape="rect" coords="630,36,775,56" href="http://www.fyasp.com" target="_blank">
</map>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?