📄 index.asp
字号:
<% @LANGUAGE="VBSCRIPT" CODEPAGE="65001" %>
<%
'=================================================
' Copyright 2007-05 jinqiu. All Rights Reserved.
' Last Update: 2007-05-01 HTTP://wap.czhome.net
' E-Mail: 316801451@qq.com QQ:316801451
'=================================================
%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<!--#include file="conn.asp"-->
<!--#include file="char.asp"-->
<%
if request("shouji")<>"" then
set rs=Server.CreateObject("ADODB.Recordset")
rs.open "select * from login where id='" & request("shouji") &"'",conn,1,2
if not (rs.bof and rs.eof) then
Session.Timeout=999
session("nameup")=rs("name")
session("shoujiup")=request("shouji")
session("shoujipno")=rs("phone")
end if
end if
Set rs= Server.CreateObject("ADODB.Recordset")
sql ="SELECT * From config Order By id DESC"
rs.open sql,conn,1,1
webname=rs("webname")
duqi=rs("duqi")
weblogo=rs("weblogo")
bbsname=rs("bbsname")
xinxian=rs("xinxian")
zuixin=rs("zuixin")
remen=rs("remen")
chaxu=rs("chaxu")
liuyan=rs("liuyan")
guanyu=rs("guanyu")
yqlj=rs("yqlj")
l=rs("lists")
x=rs("shijian")
b=rs("br")
rs.close
set rs=nothing
%>
<wml>
<head>
<meta http-equiv='Cache-Control' content='no-Cache'/>
<meta http-equiv='Cache-Control' content='max-age=0'/>
</head>
<card id='main' title='<%=untow(webname)%>'>
<p align='<%=duqi%>'>
<% if weblogo<>"" then
response.write "<img src='"&weblogo&"' alt='load..'/><br/>"
end if %>
<% if xinxian<>"" then
response.write ""&untow(xinxian)&"<br/>"
end if %>
<% if session("nameup")<>"" then
response.write "您好,"&session("nameup")&"!<a href='elogout.asp'>退出</a><br/>"
else
response.write "<a href='logo.asp'>注册/登陆</a><br/>"
end if %>
<% if zuixin<>"" then
response.write "<a href='new.asp'>"&untow(zuixin)&"</a>"&tmow(b)&""
end if %>
<% if remen<>"" then
response.write "<a href='top.asp'>"&untow(remen)&"</a>"&tmow(b)&""
end if %>
<%
if bbsname<>"" then
if session("nameup")<>"" then
response.write "<a href='bbs/bbs.asp?shouji="&session("shoujiup")&"'>"&untow(bbsname)&"</a><br/>"
else
response.write "<a href='bbs/index.asp'>"&untow(bbsname)&"</a><br/>"
end if
end if %>
<%
set rs = server.createobject("adodb.recordset")
sql="select * from Aclass order by classtop"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "还没有任何栏目<br/>"
else
a=1
do while not rs.eof
if rs("classon")=0 then
response.write "<a href='step.asp?id="&rs("id")&"'>"&untow(rs("class"))&"</a>"
else
response.write "<a href='"&rs("classurl")&"'>"&untow(rs("class"))&"</a>"
end if
if int(a/l)=(a/l) then
response.write "<br/>"
elseif a=rs.recordcount then
response.write "<br/>"
else response.write ""&tmow(x)&""
end if
a=a+1
rs.movenext
loop
end if
rs.close
%>
<% if liuyan<>"" then
response.write "<a href='guest.asp'>"&untow(liuyan)&"</a>"&tmow(b)&""
end if %>
<% if chaxu<>"" then
response.write "<a href='query.asp'>"&untow(chaxu)&"</a><br/>"
end if %>
<% if yqlj<>"" then
response.write "<a href='yqljclass.asp'>"&untow(yqlj)&"</a><br/>"
end if %>
<% if guanyu<>"" then
response.write "<a href='guanyu.asp'>"&untow(guanyu)&"</a><br/>"
end if %>
<%=webname%> 版权所有<br/>
<%
set rs = server.createobject("adodb.recordset")
rs.open "update hit set hit=hit+1 where id=1",conn,1,3
rs.open "select hit from hit where id=1",conn,1,1
%>CopyRight 2007 2.00版<br/>
总访问人次:<%=rs("hit")%><br/>
<% rs.close %>
</p>
</card>
</wml>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -