📄 newhouse.asp
字号:
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/UpLoadClass.asp"-->
<!--#include file="../inc/getPartStrAndBytesLen.asp"-->
<!--#include file="fyasp_mange_check.asp"-->
<%
'┌─ 风云ASP在线 ────────────────────────┐
'│ │
'│ 作者:赵振波. http://www.fyasp.com │
'│ │
'│ Q Q:185623333 │
'│ │
'│ Email:fy96@163.com │
'│ │
'│ 程序定做,系统开发,网站制作,提供高质量的网络产品、技术和服务!│
'│ │
'│ │
'└─────────────────── http://www.fyasp.com ──┘
Server.ScriptTimeOut=5000
Response.Buffer = True
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"
OpenDataConn
action=request("action")
fyaction=request("fyaction")
if fyaction<>"" then
strid=cint(request("Hid"))
set rs=server.createobject("adodb.recordset")
sql="select * from newhouse where Hid="&strid
rs.open sql,conn,3,3
if fyaction="sh1" then
rs("sh")="0"
else
rs("sh")="1"
end if
rs.update
rs.close
end if
%>
<html>
<head>
<title>后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../ht.css" type="text/css">
<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>
</head>
<body bgcolor="#d6dff7" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--#include file="../inc/top.asp" -->
<br>
<%
if session("newhouse")="1" then
Select case action
Case "del"
call del
Case "add"
call add
Case "saveadd"
call saveadd
Case "edit"
call edit
Case "saveedit"
call saveedit
Case "tj"
call tj
Case else
call list
End Select
else
Response.Write "权限不足!"
Response.end
end if
%>
</body>
</html><%sub add%><form name="myform" onSubmit="return CheckForm();" action="?action=saveadd" method="post" enctype="multipart/form-data">
<input type="hidden" name="UploadFiles" value="">
<table width="88%" 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="24" colspan="3">
<input name="wzimgname" type="text" size="37"></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">免费版无上传功能,请输入图片绝对地址</td>
</tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -