📄 index.asp
字号:
<%dbdns="../"%>
<!--#include file="../Include/Conn.asp" -->
<%sURL=Request.ServerVariables("HTTP_HOST")
if instr(sUrl,"www.")>0 then
sUrl=replace(sUrl,"www.","")
end if
first_name=split(sURL,".")
if ubound(first_name)>2 then
response.write"<script>alert('页面打开出错,下面是产生错误的可能原因:\n\n·在您输入的网址不正确');window.open('"&application("cityurl")&"','_parent');</script>"
response.end
end if
webname=first_name(0)
set rs=server.createobject("adodb.recordset")
sql="select * from "&WebSqlType&"_club where "&WebSqlType&"_webname='"&webname&"'"
rs.open sql,conn,1,1
if not rs.eof then
if rs(""&WebSqlType&"_key")=1 then
response.write"<script>alert('页面打开出错,下面是产生错误的可能原因:\n\n·该写字楼正在等待管理员审核开通');window.open('"&application("cityurl")&"','_parent');</script>"
response.end
else
id=rs(""&WebSqlType&"_id")
coname=rs(""&WebSqlType&"_title")
co=trim(rs(""&WebSqlType&"_co"))
response.write"<title>"&coname&"</title>"
url=cityurl&"quan/"&co&"/index.asp?id="&id
response.write"<frameset framespacing=0 cols=0,* rows=* border=0 frameborder=NO><frame src=about:blank marginwidth=0 marginheight=0 noresize><frame src="&url&"></frameset>"
end if
else
response.write"<script>alert('页面打开出错,下面是产生错误的可能原因:\n\n·该写字楼可能不存在');window.open('"&application("cityurl")&"','_parent');</script>"
response.end
end if
rs.close%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -