?? wap.asp
字號:
<!--#include file="Conn.asp"-->
<!--#include file="Inc/Cl_ClsSysTem.asp"-->
<!--#include file="Inc/Cl_ClsCount.asp"-->
<!--#include file="Inc/Cl_ClsWap.asp"-->
<!--#include file="Inc/Cl_MD5.asp"-->
<%
Dim Rs,SQL
Dim Action,ChannelID,ClassID,InfoID
Dim PageSize,TotalPut,CurrentPage,TotalPages
Cl.Get_WebSetting
Cl.ChkUserLogin
Const FileNameStr="Wap.asp"
Response.ContentType="text/vnd.wap.wml"
Response.Charset="gb2312"
Response.write ("<?xml version=""1.0"" encoding=""gb2312""?>"& vbCrLf)
Response.write ("<!DOCTYPE wml PUBLIC ""-//WAPFORUM//DTD WML 1.1//EN"" ""http://www.wapforum.org/DTD/wml1_1.1.xml"">"& vbCrLf)
Response.write ("<wml>"& vbCrLf)
Response.write ("<head>"& vbCrLf)
Response.write ("<meta http-equiv=""Cache-control"" content=""max-age=0"" forua=""true""/>"& vbCrLf)
Response.write ("<meta http-equiv=""Cache-control"" content=""must-revalidate"" forua=""true""/>"& vbCrLf)
Response.write ("</head>"& vbCrLf)
Response.write ("<template><do type=""prev"" label="""&Wap.FormatStr("返回")&"""><prev/></do></template>"& vbCrLf)
Response.write ("<card id=""main"" title="""&Wap.FormatStr(Cl.Web_Info(0))&""">"& vbCrLf)
Response.write ("<p mode=""nowrap"" align=""center""><img alt="""&Wap.FormatStr(Cl.Web_Info(0))&"Loading..."" src="""&Wap.FormatStr(Replace(Cl.Web_Info(5),"{$webdir}",InstallDir)&"")&""" height=""39"" width=""110"" align=""center""/></p>"& vbCrLf)
ChannelID = Cl.GetClng(Request("ChannelID"))
ClassID = Cl.GetClng(Request("ClassID"))
InfoID = Cl.GetClng(Request("InfoID"))
Action = Trim(Request("Action"))
CurrentPage = Cl.GetClng(Request("page"))
If Cl.Web_Setting(51)="No" Then
Response.write("<p align=""center"">"&Wap.FormatStr("當前網站WAP已關閉!")&"</p>"& vbCrLf)
Else
If Trim(Request("Err"))<>"" Then
Call Wap.ShowErr(Trim(Request("Err")))
Else
'Openconn 此處不用再打開數據庫
Select Case Action
Case "Login"
Call Wap.UserLogin()
Case "Logout"
Call Wap.UserLogout()
Case "Reg"
Call Wap.User_Reg()
Case "RegPost"
Call Wap.User_RegPost()
Case "ChkLogin"
Call Wap.UserChkLogin()
Case Else
Call Wap.Main()
End Select
End If
If Cl.Web_Setting(54)="Yes" Then
If Cl.UserID>0 Then
Response.write ("<p align=""center""><br/>==="&Wap.FormatStr("用戶面板")&"===<br/><br/>"&Wap.FormatStr("尊敬的"&Cl.MemberName&":您好,歡迎登陸")&"<br/>"& vbCrLf)
Response.write ("<a href='"& FileNameStr &"?Action=Logout'>"&Wap.FormatStr("退出")&"</a> <a href='"& FileNameStr &"?Action=Login'>"&Wap.FormatStr("重登陸")&"</a> <a href='"& FileNameStr &"'>"&Wap.FormatStr("回首頁")&"</a></p>"& vbCrLf)
Else
Response.write ("<p align=""center""><br/>==="&Wap.FormatStr("會員選項")&"===<br/><br/><a href='"& FileNameStr &"?Action=Reg'>"&Wap.FormatStr("注冊")&"</a> <a href='"& FileNameStr &"?Action=Login'>"&Wap.FormatStr("登陸")&"</a> <a href='"& FileNameStr &"'>"&Wap.FormatStr("回首頁")&"</a></p>"& vbCrLf)
End if
End if
End If
'Response.write ("<p align=""center"">Powered by:<a href='http://www.aspoo.com/wap.asp'>创力网络</a>"& vbCrLf)
'Response.write ("</p>"& vbCrLf)
Response.write ("</card>"& vbCrLf)
Response.write ("</wml>"& vbCrLf)
CloseAllObj
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -