|
老版本代码,仅供参考 -
<!--#include file="Conn.asp"--> - <!--#include file="KS_Cls/Kesion.MemberCls.asp"-->
- <%
- '----------------------------------------
- '判断用户是否登录 调用方式:<script language="javascript" type="text/javascript" src="GetQikanPrice.asp?id={$Field(id,Num,0,2)}"></script >
- '----------------------------------------
- Dim KS:Set KS=New PublicCls
- Dim KSUser:Set KSUser=New UserCls
- Dim UserLoginTF:UserLoginTF=KSUser.UserLoginChecked
- Dim RS,SqlStr,id,qkmoney
- id=Trim(Request("id"))
- IF Cbool(KSUser.UserLoginChecked)=false Then
- qkmoney = "<a href=""javascript:ShowLogin();""><font color=red>请登录查看</font></a>"
- Else
- SqlStr = "select qkmoney from qikan where rec=1 and id ="&id
- Set RS = Server.CreateObject("ADODB.Recordset")
- RS.Open SqlStr, conn, 1, 1
- If Not RS.bof Then
- qkmoney = "<span>"&rs("qkmoney") & "</span>元"
- End If
- rs.close
- set rs = nothing
- End If
- Response.Write "document.write('" & qkmoney & "');"
- Response.Write "document.write('<script src=""" & KS.Setting(3) & "ks_inc/kesion.box.js"" language=""JavaScript""></script>');"
- %>
- function ShowLogin()
- {
- new KesionPopup().popupIframe('会员登录','<%=KS.Setting(3)%>user/userlogin.asp?Action=Poplogin',397,184,'no');
- }
- <%
- Call CloseConn()
- Set KS=Nothing
- %>
|