⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getpass.asp

📁 SK信息采集2.0功能介绍: 1.可针对任何静态网页,动态网页进行采集。包括htm,html,shtml,ASP,ASPX,JSP,PHP等。 2.增加自定文件采集.用户可采集网页中的所有文件.
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%option explicit%>
<!--#include file="../Conn.asp"-->
<!--#include file="../SysCls/KS_UserCommonCls.asp"-->
<%
'===================================================================================================================
'软件名称:科汛网站管理系统
'当前版本:科汛网站管理系统 V2.2企业SQL版
'Copyright (C) 2005-2006 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 Admin_Index
KSCls.Execute()
Set KSCls = Nothing

Class Admin_Index
        Private KSCMS,KSUser
		Private Sub Class_Initialize()
		  Set KSCMS=New CommonCls
		  Set KSUser = New UserCls
		End Sub
        Private Sub Class_Terminate()
		 Set KSCMS=Nothing
		 Set KSUser=Nothing
		End Sub
		Public Sub Execute()

		KSUser.LoadHead()
		%>

		<TABLE height="380" cellSpacing=0 width=770 align=center border=0>
		<TR>
		<TD vAlign=top bgColor=#FFFFFF>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="32">&nbsp;当前位置 >> <a href="<%=KSCMS.GetConfig("WebUrl")%>"><%=KSCMS.GetConfig("WebName")%></a> >> 取回用户密码</td>
          </tr>
         
        </table>
		  <table width="770" height="380" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td>
          <%
		  Dim Step:Step=KSCMS.G("Step")
		  IF Step="" Then Step=1
		  IF Step=2 Then
		     Dim RS
			 Dim UserName:UserName=KSCMS.ReplaceBadChar(KSCMS.G("UserName"))
			 If UserName = "" Then
				 Response.Write("<script>alert('请输入用户名!');history.back();</script>")
				 Response.End
              End IF
			 
			 
             Set RS=Server.CreateObject("Adodb.RecordSet")
			  RS.Open "Select Question From KS_User Where UserName='" & UserName & "'",Conn,1,1
			  IF RS.Eof And RS.Bof Then
			  	 Response.Write("<script>alert('对不起,您输入的用户名不存在!');history.back();</script>")
				 Response.End
			  Else
		     %>
			 	<script language = "JavaScript">
				function CheckForm()
				{
				if (document.myform.Answer.value=="")
				  {
					alert("请输入问题答案!");
					document.myform.Answer.focus();
					return false;
				  }
				if (document.myform.Verifycode.value=="")
				  {
					alert("请输入验证码!");
					document.myform.Verifycode.focus();
					return false;
				  }
	              return true;
				  }
				</script>
    <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="8" valign="bottom" bgcolor="#EAEAEA"><table width="742" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="4" bgcolor="#FFFFFF"></td>
                  </tr>
              </table></td>
            </tr>
          </table>
          <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td></td>
            </tr>
            <tr>
              <td bgcolor="#EAEAEA"><table width="742" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td valign="top" bgcolor="#FFFFFF"><table width="96%"  border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="40%" height="50" align="right"><img src="images/dsd.gif" width="29" height="28" /></td>
                          <td width="47%" valign="middle"><table cellspacing="1" cellpadding="1">
                              <tr>
                                <td height="24" valign="bottom">取回密码第二步 回答密码问题 </td>
                              </tr>
                          </table></td>
                        </tr>
                      </table>
					 			 <form name="myform" method="post" action="?Step=3" onSubmit="return CheckForm();">
                                   <input type="hidden" value="<%=UserName%>" name="UserName">
                        <table bordercolor="#dddddd" cellspacing="1" cellpadding="0" width="96%" align="center" border="1">
                          <tbody>
                            <tr>
                              <td width="40%" height="22" align="right" bordercolor="#eeeeee" bgcolor="#EAEAEA" class="style6"> 密码问题:</td>
                              <td width="60%" bordercolor="#eeeeee" bgcolor="#f5f5f5"><%=RS(0)%></td>
                            </tr>
                          </tbody>
                        </table>
                        <table bordercolor="#dddddd" cellspacing="1" cellpadding="0" width="96%" align="center" border="1">
                          <tbody>
                            <tr>
                              <td width="40%" height="22" align="right" bordercolor="#eeeeee" bgcolor="#EAEAEA" class="style6"> 您的答案:</td>
                              <td width="60%" bordercolor="#eeeeee" bgcolor="#f5f5f5"><input name="Answer" type="text" id="Answer" size="20" /></td>
                            </tr>
                          </tbody>
                        </table>
                        <table bordercolor="#dddddd" cellspacing="1" cellpadding="0" width="96%" align="center" border="1">
                          <tbody>
                            <tr>
                              <td width="40%" height="22" align="right" bordercolor="#eeeeee" bgcolor="#EAEAEA" class="style6"> 验证码:</td>
                              <td width="60%" bordercolor="#eeeeee" bgcolor="#f5f5f5"><input name="Verifycode" type="text" id="Verifycode" size="6" /><IMG style="cursor:hand" src="<%=KSCMS.GetDomain%>inc/verifycode.asp" onClick="this.src=this.src;" align="absmiddle"></td>
                            </tr>
                          </tbody>
                        </table>
                        <table bordercolor="#dddddd" cellspacing="1" cellpadding="0" width="96%" align="center" border="1">
                          <tbody>
                            <tr>
                              <td height="42" align="center" bordercolor="#eeeeee" class="style6"><input name="Submit2" type="submit" class="button2" value="下一步" />
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
                            </tr>
                          </tbody>
                        </table>
                        <table width="96%"  border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td height="4" bgcolor="#999999"></td>
                          </tr>

                        </table>
						</form>
                      <table width="96%"  border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td>&nbsp;</td>
                          </tr>
                      </table></td>
                  </tr>
              </table></td>
            </tr>
          </table>
		  	<table width="745"  border="0" align="center" cellpadding="0" cellspacing="0">
						<tr>
						  <td height="4" bgcolor="#EEEEEE">
						  </td>
						</tr>
			    </table>
			
		  <%   End IF
		  ElseIF Step=3 Then

             Dim Verifycode:Verifycode=	KSCMS.ReplaceBadChar(KSCMS.G("Verifycode"))
			 UserName=KSCMS.ReplaceBadChar(KSCMS.G("UserName"))

			 Dim Answer:Answer=KSCMS.G("Answer")
			IF Trim(Verifycode)<>Trim(Session("Verifycode")) then 
		   	 Response.Write("<script>alert('验证码有误,请重新输入!');history.back();</script>")
		     Response.End
			End IF
			Dim RSC
            Set RSC=Conn.Execute("Select Answer From KS_User Where UserName='" & UserName & "' and Answer='" & Answer & "'")
			IF RSC.EOF AND RSC.Bof Then
			  	 Response.Write("<script>alert('对不起,您输入的答案不正确!');history.back();</script>")
				 Response.End
			Else
			 %>
			 
			 <script language = "JavaScript">
				function CheckForm()
				{
				if (document.myform.PassWord.value=="")
				  {
					alert("请输入新密码!");
					document.myform.PassWord.focus();
					return false;
				  }
				if (document.myform.RePassWord.value=="")
				  {
					alert("请输入确认密码!");
					document.myform.RePassWord.focus();
					return false;
				  }
				if (document.myform.PassWord.value!=document.myform.RePassWord.value)
				  {
					alert("两次输入的密码不一致!");
					document.myform.PassWord.focus();
					return false;
				  }
	              return true;
				  }
				</script>
			  <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
				  <td height="8" valign="bottom" bgcolor="#EAEAEA"><table width="742" border="0" align="center" cellpadding="0" cellspacing="0">
					  <tr>
						<td height="4" bgcolor="#FFFFFF"></td>
					  </tr>
				  </table></td>
				</tr>
			  </table>
			  <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
				  <td></td>
				</tr>
				<tr>
				  <td bgcolor="#EAEAEA"><table width="742" border="0" align="center" cellpadding="0" cellspacing="0">
					  <tr>
						<td valign="top" bgcolor="#FFFFFF"><table width="96%"  border="0" align="center" cellpadding="0" cellspacing="0">

⌨️ 快捷键说明

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