📄 xinxiedit01.asp
字号:
<!--#include file="conn1.asp"-->
<!--#include file="err.asp"-->
<!--#include file=usercookies.asp-->
<!--#include file="config.asp"-->
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=title%>-信息发布</title>
<link href="../inc_style.css" rel="stylesheet" type="text/css">
<style>
<!--
.pt9 {
FONT-SIZE: 9pt; COLOR: #000000
}
.pt9 {
FONT-SIZE: 9pt; COLOR: #000000
}
.inText {
BORDER-RIGHT: #999999 1px inset; BORDER-TOP: #999999 1px inset; FONT-SIZE: 9pt; BORDER-LEFT: #999999 1px inset; LINE-HEIGHT: 13pt; BORDER-BOTTOM: #999999 1px inset
}
.button {
BORDER-RIGHT: #333333 1px outset; BORDER-TOP: #333333 1px outset; BORDER-LEFT: #333333 1px outset; BORDER-BOTTOM: #333333 1px outset
}
.button {
BORDER-RIGHT: #333333 1px outset; BORDER-TOP: #333333 1px outset; BORDER-LEFT: #333333 1px outset; BORDER-BOTTOM: #333333 1px outset
}
-->
</style>
</head>
<SCRIPT language=JavaScript src="../function.js"></SCRIPT>
<SCRIPT language=JavaScript>
<!--
var clickNo = 0;
function check()
{
var temp = document.sign.content.value;
if( temp.length > 500 )
{
alert("内容长度超过限制,请减少长度!");
return false;
}
if( !document.sign.wtype[0].checked &&
!document.sign.wtype[1].checked &&
!document.sign.wtype[2].checked &&
!document.sign.wtype[3].checked )
{
alert("请选择您的目的。");
return false
}
var temp = document.sign.title.value.toLowerCase();
if(temp.indexOf('<',0) != -1 || temp.indexOf('>',0) != -1)
{
alert("请不要使用tag语句!\n可能会干扰调页!");
return false;
}
var temp = document.sign.content.value.toLowerCase();
if(temp.indexOf('<',0) != -1 || temp.indexOf('>',0) != -1)
{
alert("请不要使用tag语句!\n可能会干扰调页!");
return false;
}
if (document.sign.title.value=="")
{
alert("请填写您的主题。");
document.sign.title.focus();
return false;
}
if (!checkChar(document.sign.title.value))
{
alert("请不要在标题中使用特殊字符");
document.sign.title.focus();
return false;
}
if (document.sign.pName.value==""){
alert("请填写您的姓名以方便联系。");
document.sign.pName.focus();
return false;
}
if (!isCHN(document.sign.pName.value)){
alert("请填写有效的姓名。");
document.sign.pName.focus();
return false;
}
if (document.sign.addr1.value=="" && document.sign.addr2.value=="")
{
if(document.sign.wtype[2].checked ||
document.sign.wtype[3].checked )
{
alert("请填写您要出租或出售的房屋的地点。");
return false;
}
}
a=parseInt(document.sign.size.value);
if (isNaN(a))
{
if(document.sign.wtype[0].checked ||
document.sign.wtype[1].checked )
{
alert("请填写您需要的房屋面积。");
return false
}
else alert("请填写您要出租或出售的房屋面积。");
document.sign.size.focus();
return false;
}
if ((document.sign.title.value.length>40)||((document.sign.title.value.length>30)&&(document.sign.content.value=="")))
{
alert("文章主题的字数太多了.....\n\n发言无内容时,主题最长为15个汉字\n\n发言有内容时,主题最长为20个汉字\n\n请精简主题内容:)");
document.sign.title.focus();
return false;
}
a=parseInt(document.sign.phone.value);
if (isNaN(a))
{
alert("请填写有效的电话号码。");
document.sign.phone.focus();
return false;
}
b=document.sign.email.value;
if( b.length>0 && (b.indexOf("@")==-1 || b.length<4 ))
{
alert("请填写有效的Email地址,或者不填写。");
document.sign.email.focus();
return false;
}
if (confirm('跳蚤市场声明:\n1)禁止发布违法、淫秽、反动、危害国家和社会公共利益的信息;\n2)禁止发布与各类证件办理业务有关的信息;\n3)禁止发布非交易类广告信息。\n一经发现一律予以删除,收费信息不予退费、不提供任何其他补偿。\n\n您是否要发布?')==0)
{ return false;
document.sign.title.focus();
}
clickNo ++;
if (clickNo<=2) {
return true;
}
else { alert("同一条信息不能发布2次以上。");
return false;
}
return true;
}
// -->
</SCRIPT>
<body topmargin="0">
<!--#include file=usertop.asp-->
<%
dim rs
dim sql,i,id
id=trim(request("id"))
set rs=server.createobject("adodb.recordset")
sql = "select * from xinxi where id="&cstr(id)
rs.open sql,conn,1,1
if rs.eof then
response.write "参数错误!"
response.end
end if
%>
<div align="center">
<center>
<table border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" width="600" bgcolor="#FFFFFF">
<tr>
<td width="600" height="533"><div align="center">
<center>
<FORM name=sign onsubmit="return check()" action="xinxi_editchk.asp?id=<%=id%>" method=post>
<TABLE class=pt9 cellSpacing=1 cellPadding=3 width=600 bgColor=#666666
border=0 id="table1">
<TBODY>
<TR vAlign=center align=middle style="font-size: 9pt; line-height: 13pt">
<TD bgColor=#cbdcb6 colSpan=3 height=50><B><FONT
color=#003399>房屋信息<span lang="zh-cn">修改</span></FONT></B> <BR> </TD></TR>
<TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
<TD align=middle colSpan=3>|
<INPUT onclick="vbscript:mm.innerhtml='元/月'"
type=radio value=4 name=wtype style="font-size: 9pt; line-height: 13pt" <%if rs("leixing")=4 then%>checked<%end if%>>
求租 |
<INPUT
onclick="vbscript:mm.innerhtml='元/平方米'" type=radio value=2 name=wtype style="font-size: 9pt; line-height: 13pt" <%if rs("leixing")=2 then%>checked<%end if%>>
求购 |
<INPUT onclick="vbscript:mm.innerhtml='元/月'" type=radio value=3
name=wtype style="font-size: 9pt; line-height: 13pt" <%if rs("leixing")=3 then%>checked<%end if%>> 出租 |
<INPUT onclick="vbscript:mm.innerhtml='元/平方米'"
type=radio value=1 name=wtype style="font-size: 9pt; line-height: 13pt" <%if rs("leixing")=1 then%>checked<%end if%>>
出售 | <FONT
color=#ff0000>*</FONT></TD></TR>
<TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
<TD colSpan=3>标题: <INPUT class=inText maxLength=25
size=30 name=title value=<%=rs("biaoti")%>> <FONT color=#ff0000>*</FONT> </TD></TR>
<TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
<TD colSpan=3>地点:
<INPUT class=inText maxLength=4
size=5 name=addr1 value="<%=rs("addr1")%>"> 区
<INPUT class=inText maxLength=30 size=50 name=addr2 value="<%=rs("addr2")%>">
<FONT color=#ff0000>(左边请至少填一个)</FONT> </TD></TR>
<TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
<TD width=167>面积:
<INPUT class=inText maxLength=5
size=5 name=size value="<%=rs("size")%>"> 平方米 <FONT color=#ff0000>*</FONT></TD>
<SCRIPT language=javascript>
function show()
{
if (rh.style.display=='none')
{rh.style.display='';}
}
function hide()
{
if (rh.style.display=='')
{rh.style.display='none';}
}
</SCRIPT>
<TD align=middle width=180>
<INPUT onclick=hide() type=radio value=1
name=htype style="font-size: 9pt; line-height: 13pt" <%if rs("htype")=1 then%>checked<%end if%>> 单间 |
<INPUT onclick=show() type=radio value=2
name=htype style="font-size: 9pt; line-height: 13pt" <%if rs("htype")=2 then%>checked<%end if%>> 套房 </TD>
<TD align=middle width=233>
<DIV id=rh>
<INPUT class=inText maxLength=2 size=2 name=room value="<%=rs("room")%>"> 房
<INPUT
class=inText maxLength=2 size=2 name=hall value="<%=rs("hall")%>"> 厅 </DIV></TD></TR>
<TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
<TD colSpan=3>价格:
<INPUT class=inText maxLength=6
size=15 name=price value="<%=rs("price")%>"> <SPAN id=mm>元</SPAN> <FONT
color=#ff0000>(需要价格面议请不填写此项)</FONT> </TD></TR>
<TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
<TD colSpan=3>联系人:
<INPUT class=inText maxLength=10 name=pName value="<%=rs("name")%>" size="20">
<FONT color=#ff0000>* </FONT></TD></TR>
<TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
<TD colSpan=3>联系电话:
<INPUT class=inText maxLength=25 name=phone value="<%=rs("phone")%>" size="20"> <FONT
color=#ff0000>*</FONT> <!--(<a href="http://mark.yalaso.net/ad/#新功能二" target="_blank"><font color=red>小灵通用户可以使用临时联络方式了,免除骚扰烦恼,快快行动!</font></a>)--></TD></TR>
<TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
<TD colSpan=3>电子邮件:
<INPUT class=inText maxLength=28 name=email0 value="<%=rs("email")%>" size="20"> </TD></TR>
<TR vAlign=top bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
<TD colSpan=3 height=105>详情: <TEXTAREA class=inText name=content rows=6 cols=50><%=rs("memo")%></TEXTAREA> </TD></TR>
<TR align=middle bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
<TD colSpan=3><INPUT class=button style="WIDTH: 100px" type=reset value=我要重写> <INPUT class=button style="WIDTH: 150px" type=submit value=提交资料>
</TD></TR>
<INPUT type=hidden value=8 name=ptype style="font-size: 9pt; line-height: 13pt">
</TBODY></TABLE>
</form>
</center>
</div>
<p> </td>
</tr>
</table>
</center>
</div>
<!--#include file=end.htm-->
<%rs.close
set rs=nothing%>
</body>
</html>
<%
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -