userlogin.asp

来自「1.支持文章」· ASP 代码 · 共 99 行

ASP
99
字号
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%option explicit%>
<!--#include file="Conn.asp"-->
<!--#include file="SysCls/KS_UserCommonCls.asp"-->
<%
'===================================================================================================================
'软件名称:科汛网站管理系统
'当前版本:科汛网站管理系统 V2.2 0628 Free
'Copyright (C) 2006-2008 Kesion.Com  All rights reserved.
'产品咨询QQ:9537636,41904294
'技术支持QQ:111394,54004407 
'程序版权:科汛网络
'程序开发:科汛网络开发组(总策划:林文仲)
'E-Mail  :kesioncms@hotmail.com webmaster@kesion.com
'官方网站:http://www.kesion.com  
'演示站点:http://test.kesion.com 
'郑重声明:
'    ①、免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接,商业版本无此要求;
'    ②、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息;
'    ③、科汛网络保留此软件的法律追究权利
'===================================================================================================================
Dim KSCls
Set KSCls = New UserLogin
KSCls.Execute()
Set KSCls = Nothing

Class UserLogin
        Private KSCMS
		Private KSUser
		Private Sub Class_Initialize()
		  Set KSCMS=New CommonCls
		  Set KSUser = New UserCls
		End Sub
        Private Sub Class_Terminate()
		 Call KSCMS.CloseConn()
		 Set KSCMS=Nothing
		 Set KSUser=Nothing
		End Sub
		Public Sub Execute()
			If KSUser.UserLoginChecked() = False Then%>
			document.writeln('<table align="center" width="98%" border="0" cellspacing="0" cellpadding="0">');
			document.writeln(' <form name="myform" action="<%=KSCMS.GetDomain%>CheckUserLogin.asp" method="post">');
			document.writeln('  <tr>');
			document.writeln('	<td height="25">用户名:');
			document.writeln('	<input name="Username" type="text" class="textbox" id="Username" size="15" /></td>');
			document.writeln('  </tr>');
			document.writeln('  <tr>');
			document.writeln('	<td height="25">密 码:');
			document.writeln('	<input name="Password" type="password" class="textbox" id="Password" size="16" /></td>');
			document.writeln('  </tr>');
			  <%if KSCMS.GetConfig("LoginVerificCodeTF")=1 Then%>
			document.writeln('  <tr>');
			document.writeln('	<td height="25">验证码:')
			document.writeln('	<input name="Verifycode" type="text" class="textbox" id="Verifycode" size="6" />')
				<%
				Response.Write "document.writeln('<IMG style=""cursor:hand"" src=""" & KSCMS.GetDomain & "inc/verifycode.asp"" onClick=""this.src=this.src;"" align=""absmiddle"">');"
				%>
			document.writeln('	</td>');
			document.writeln('  </tr>');
			  <%end if%>
			document.writeln('  <tr>');
			document.writeln('	<td height="25"><div align="center"><a href="<%=KSCMS.GetDomain%>Member/GetPass.asp">忘记密码</a> <a href="<%=KSCMS.GetDomain%>Register/UserReg_Step1.asp">新会员注册</a>    </div></td>');
			document.writeln('  </tr>');
			document.writeln('  <tr>');
			document.writeln('	<td height="25"><div align="center">');
			document.writeln('	  <input type="submit" name="Submit" class="inputButton" value="登录" />');
			document.writeln('	  <input name="ExpiresDate" type="checkbox" id="ExpiresDate" value="checkbox" />');
			document.writeln('永久登录</div></td>');
			document.writeln('  </tr>');
			document.writeln('  </form>');
            document.writeln('</table>');
			<%Else
			Dim MyMailTotal:MyMailTotal=Conn.Execute("Select Count(ID) From KS_Message Where Incept='" &KSUser.Get_UserName &"' And Flag=0 and IsSend=1 and delR=0")(0)
			 IF MyMailTotal>0 Then MyMailTotal="<font color=red>" & MyMailTotal & "</font>"
			 dim  ChargeTypeStr
			 if KSUser.ChargeType=1 Then
			   ChargeTypeStr="点券"
			 elseif KSUser.ChargeType=2 Then
			   ChargeTypeStr="有效期"
			 else
			   ChargeTypeStr="无限期"
			 End If
			%>
			document.writeln('<table align="center" width="80%" border="0" cellspacing="0" cellpadding="0">');
			document.writeln('<tr><td align="center"><font color=red><%=KSUser.Get_UserName%></font>,您好!&nbsp;&nbsp;&nbsp;</td></tr>');
			document.writeln('<tr><td>计费方式: <strong><%= ChargeTypeStr%></strong> </td></tr>');
			document.writeln('<tr><td>经验积分: <strong><%=KSUser.Get_Score%></strong> 分</td></tr>');
			document.writeln('<tr><td>可用点券: <strong><%=KSUser.Get_Point%></strong> 点</td></tr>');
			document.writeln('<tr><td>剩余天数: <strong><%=KSUser.Get_Edays%></strong></td></tr>');
			document.writeln('<tr><td>待阅短信: <strong><%=MyMailTotal%></strong> 条</td></tr>');
			document.writeln('<tr><td>登录次数: <strong><%=KSUser.Get_LoginTimes%></strong> 次</td></tr>');
            document.writeln('<tr><td>【<a href="<%=KSCMS.GetDomain%>Member/">会员中心</a>】 【<a href="<%=KSCMS.GetDomain%>UserLogout.asp">退出登录</a>】</td></tr>');
			document.writeln('</table>');
<%End IF
  End Sub
End Class
%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?