📄 newhouse_fabu.asp
字号:
<%
'┌─ 风云ASP在线 ────────────────────────┐
'│ │
'│ 作者:赵振波. http://www.fyasp.com │
'│ │
'│ Q Q:176189168 │
'│ │
'│ Email:fy96@163.com │
'│ │
'│ 程序定做,系统开发,网站制作,提供高质量的网络产品、技术和服务!│
'│ │
'│ │
'└─────────────────── http://www.fyasp.com ──┘
%>
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/getPartStrAndBytesLen.asp" -->
<!--#include file="../top.asp" -->
<!--#include file="../inc/UpLoadClass.asp"-->
<!--#include file="../inc/config.inc"-->
<%
Dim Rs,Sql
OpenDataConn
%>
<HTML><HEAD><TITLE>发布房产信息,<%=homepage_title%></TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript" src="../inc/index.js"></script>
<script language="JavaScript" src="../inc/admin.js"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<script language="JavaScript" type="text/javascript">
function CheckIfEnglish(String)
{
var Letters = "1234567890.";
var i;
var c;
for( i = 0; i < String.length; i ++ )
{
c = String.charAt( i );
if (Letters.indexOf( c ) < 0)
return false;
}
return true;
}
function CheckForm()
{
if (document.myform.housename.value=="")
{
alert("请填写楼盘名称!");
document.myform.housename.focus();
return false;
}
if (document.myform.Developer.value=="")
{
alert("请填写开发商!");
document.myform.Developer.focus();
return false;
}
if (document.myform.simgname.value=="")
{
alert("请上传楼盘小图!");
document.myform.simgname.focus();
return false;
}
if (document.myform.area.value=="")
{
alert("请选择区域!");
document.myform.area.focus();
return false;
}
if (document.myform.houseaddress.value=="")
{
alert("请填写详细地址!");
document.myform.houseaddress.focus();
return false;
}
if (document.myform.selladdress.value=="")
{
alert("请填写售楼地址!");
document.myform.selladdress.focus();
return false;
}
if (document.myform.linkman.value=="")
{
alert("请填写联系人!");
document.myform.linkman.focus();
return false;
}
if (document.myform.jianjie.value=="")
{
alert("请填写楼盘简介!");
document.myform.jianjie.focus();
return false;
}
if (document.myform.mianji.value=="")
{
alert("请填写面积!");
document.myform.mianji.focus();
return false;
}
if (!CheckIfEnglish(document.myform.mianji.value)) {
alert("\面积有误,只能写数字或小数点!");
document.myform.mianji.focus();
return false;
}
if (document.myform.avgprice.value=="")
{
alert("请填写均价!");
document.myform.avgprice.focus();
return false;
}
if (!CheckIfEnglish(document.myform.avgprice.value)) {
alert("\均价中含有非法字符,只能写数字或小数点!");
document.myform.avgprice.focus();
return false;
}
if (document.myform.beginprice.value=="")
{
alert("请填写起价!");
document.myform.beginprice.focus();
return false;
}
if (!CheckIfEnglish(document.myform.beginprice.value)) {
alert("\起价中含有非法字符,只能写数字或小数点!");
document.myform.beginprice.focus();
return false;
}
if (document.myform.sellfax.value=="")
{
alert("请填写传真!");
document.myform.sellfax.focus();
return false;
}
if (!CheckIfEnglish(document.myform.sellfax.value)) {
alert("\传真中含有非法字符!只能写数字!");
document.myform.sellfax.focus();
return false;
}
if (document.myform.sellhottel.value=="")
{
alert("请填写售楼热线!");
document.myform.sellhottel.focus();
return false;
}
if (!CheckIfEnglish(document.myform.sellhottel.value)) {
alert("\售楼热线中含有非法字符!只能写数字!");
document.myform.sellhottel.focus();
return false;
}
for(var i=0;i<document.myform.xqimgname_s.length;i++){
if (document.myform.xqimgname.value=="") document.myform.xqimgname.value=document.myform.xqimgname_s.options[i].value;
else document.myform.xqimgname.value+="@@@"+document.myform.xqimgname_s.options[i].value;
}
for(var i=0;i<document.myform.slimgname_s.length;i++){
if (document.myform.slimgname.value=="") document.myform.slimgname.value=document.myform.slimgname_s.options[i].value;
else document.myform.slimgname.value+="@@@"+document.myform.slimgname_s.options[i].value;
}
for(var i=0;i<document.myform.fximgname_s.length;i++){
if (document.myform.fximgname.value=="") document.myform.fximgname.value=document.myform.fximgname_s.options[i].value;
else document.myform.fximgname.value+="@@@"+document.myform.fximgname_s.options[i].value;
}
for(var i=0;i<document.myform.TempUploadFiles.length;i++){
if (document.myform.UploadFiles.value=="") document.myform.UploadFiles.value=document.myform.TempUploadFiles.options[i].value;
else document.myform.UploadFiles.value+="|"+document.myform.TempUploadFiles.options[i].value;
}
}
</script>
<link href="../inc/style.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<TABLE height=28 cellSpacing=0 cellPadding=0 width=980 align=center
background=../img/headbg4.gif border=0>
<TBODY>
<TR>
<TD align=right width=35>
<IMG height=13 src="../img/headarrow.gif"
width=17></TD>
<TD align=middle width=10></TD>
<TD class=TD_Place width=935>您现在的位置:<span style="text-decoration: none"><a href="../index.aspx"><FONT color=#ffffff><%=homepage_title%></FONT></a><FONT color=#ffffff> </FONT>
</span> <FONT color=#ffffff>>> 发布楼盘信息</FONT></TD></TR></TBODY></TABLE>
<TABLE height=7 cellSpacing=0 cellPadding=0 width=980 align=center
background=img/headbg5.gif border=0>
<TBODY>
<TR>
<TD></TD></TR></TBODY></TABLE>
<TABLE width="970" border=0 align="center" cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD width=5 bgColor=#dadcc8></TD>
<TD width="970" align=middle vAlign=top bgColor=#ffffff> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=282><IMG height=80
src="../image/center_r1_c1.jpg" width=282></TD>
<TD vAlign=center align=middle bgColor=#62c128> </TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=222><IMG height=46
src="../image/center_r2_c1.jpg" width=222></TD>
<TD> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD background=../image/center_r2_c13.jpg
height=14></TD>
</TR>
<TR>
<TD> </TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=98% align=middle vAlign=top>
<TABLE width=98% border=0 align="center" cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD width=1 bgColor=#d7d7d7></TD>
<TD vAlign=top align=middle bgColor=#fafafa><%
action=changechr(request("action"))
Select case action
Case "add"
call add
Case "saveadd"
if DateDiff("s",session("startime"),Now())<20 then
Response.write("<script>alert(""error!"");location.href=""newhouse_fabu.asp"";</script>")
Response.end
end if
call saveadd
Case else
call add
End Select
sub add
session("startime")=now()
%><form name="myform" onSubmit="return CheckForm();" action="?action=saveadd" method="post" enctype="multipart/form-data">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr bgcolor="#F3F3F3">
<td height="25" colspan="4" align="center"> 楼 盘
添 加</td>
</tr>
<tr bgcolor="#F3F3F3">
<td width="19%" height="24" align="center">
楼盘名称:</td>
<td height="24" colspan="3"> <input name="housename" type="text" id="housename" size="30">
*</td>
</tr>
<tr bgcolor="#F3F3F3">
<td height="24" align="center">
位 置 图:</td>
<td height="27" colspan="3">
<input name="wzimgname" type="text" size="37"><br>
<iframe style="top:2px" ID="UpFile" src="../inc/Upload.asp?Type=0&Obj=wzimgname&TObj=TempUploadFiles" frameborder=0 scrolling=no width="341" height="27"></iframe> </td>
</tr>
<tr bgcolor="#F3F3F3">
<td height="19" align="center">
小区环境:</td>
<td height="19" colspan="3"><input type="hidden" name="xqimgname" value="">
<select name='xqimgname_s' style='width:389;height:78' size='2' ondblclick="return ModifyUrl('小区环境','xqimgname_s');"></select><br>
<input type="button" name="addurl" value="添加地址" onClick="AddUrl('小区环境','xqimgname_s');">
<input type="button" name="addurl" value="修改当前地址" onClick="ModifyUrl('小区环境','xqimgname_s');">
<input type="button" name="addurl" value="删除当前地址" onClick="DelUrl('小区环境','xqimgname_s');">
<input type="button" name="upurl" value="↑" onClick="UpUrl('小区环境','xqimgname_s');">
<input type="button" name="downurl" value="↓" onClick="DownUrl('小区环境','xqimgname_s');"></td>
</tr>
<tr bgcolor="#F3F3F3">
<td height="29" align="center">
上传图片:</td>
<td height="29" colspan="3"><iframe style="top:2px" ID="UpFile" src="../inc/Upload.asp?Type=6&Obj=xqimgname_s&TObj=TempUploadFiles" frameborder=0 scrolling=no width="100%" height="27"></iframe></td>
</tr>
<tr bgcolor="#F3F3F3">
<td height="29" align="center">
室内实景:</td>
<td height="29" colspan="3"><input type="hidden" name="slimgname" value="">
<select name='slimgname_s' style='width:389;height:78' size='2' ondblclick="return ModifyUrl('室内实景','slimgname_s');"></select><br>
<input type="button" name="addurl" value="添加地址" onClick="AddUrl('室内实景','slimgname_s');">
<input type="button" name="addurl" value="修改当前地址" onClick="ModifyUrl('室内实景','slimgname_s');">
<input type="button" name="addurl" value="删除当前地址" onClick="DelUrl('室内实景','slimgname_s');">
<input type="button" name="upurl" value="↑" onClick="UpUrl('室内实景','slimgname_s');">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -