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

📄 userpass.asp

📁 通用考勤系统
💻 ASP
📖 第 1 页 / 共 2 页
字号:
                    </tr>
                   </table> </form>
 
      <%else%>
                   <p align=center><font color=red size=5><br><br>您还没有通过审核!<br><br>如果您非本系统人员,<br><br>您的账号将被删除!</font></p>
     <% end if
 end if
 if request("action")="get" then
                   %><center>
 
                  <form action="userpass.asp?action=get2" method=post>
                 <table border=1 bgcolor=#E4F7FE bordercolor=#3399ff><br>
                 <tr align="center" >
                    
                     <td height="23" colspan="4" background="images/NavBG.gif">  <img src="images/User.gif" width="20" height="20"><font color=ffaa00>取回我的密码--第一步</font></td>
                  </tr>
				   <tr  >
                         <td height="5" colspan="4" align="center" bordercolor="#FF9900" background="images/loginLine.gif" >     </td>
                       </tr>
                            <tr>
                     <td colspan="2" bgcolor="#aaccff" >输入你的账号 </td>
                     <td colspan="2" bgcolor="#aaccff">    <input name=pusername type=text value="" > </td>
 
     
	</tr>
                  <tr >
                         <td height="5" colspan="4" align="center" bordercolor="#FF9900" background="images/bj.gif">  <input type=submit value="提交" class=ibox>   &nbsp; &nbsp;&nbsp;&nbsp;      <input type=reset value="重置" class=ibox> </td>
                       </tr>
                  </table>
	           </form>
 
    <%
end if
 if request("action")="get2" then

   puname=request.form("pusername")
   sql="select * from ct_sql where username='"&puname&"'"
   rs.open sql,cn,1,1
if rs.eof and rs.bof then
   response.write "<script>alert('没有此用户');history.back()</script>"
else 
shenhe=rs("noshenhe")
askaa=trim(rs("passwordask"))
 if (askaa<>empty or askaa<>"未设定") then 
 
if shenhe=0 then 
  response.write "<script>alert('这个帐号还没有通过审核');history.back()</script>"
else
   passask=rs("passwordask") 
 %>
                  <form action="userpass.asp?action=get3" method=post>
                 <table border=1 bgcolor=#E4F7FE bordercolor=#3399ff align=center>
	 <tr align="center" >
                    
                     <td height="23" colspan="4" background="images/NavBG.gif">  <img src="images/User.gif" width="20" height="20"><font color=ffaa00>取回我的密码--第二步</font></td>
                  </tr>
                  <tr>
                     <td colspan="2" bgcolor="#aaccff" >您的密码问题 </td>
                     <td colspan="2" bgcolor="#aaccff">     <%=passask%>  </td>
 
     
	</tr>
	<tr>
                     <td colspan="2">输入密码答案 </td>
                     <td colspan="2">    <input name=passanwser type=text value=""   > </td>
 
                       <input name="puser"  type=hidden  value=<%=puname%>   >
	                 </tr>
	
                  <tr >
                         <td height="5" colspan="4" align="center" bordercolor="#FF9900" background="images/bj.gif">  <input type=submit value="提交" class=ibox>   &nbsp; &nbsp;&nbsp;&nbsp;      <input type=reset value="重置" class=ibox> </td>
                       </tr>
	  <tr  >
                         <td height="5" colspan="4" align="center" bordercolor="#FF9900" background="images/loginLine.gif" >     </td>
                       </tr>
                 </table> </form>
 
 
<%end if
   else
    response.write "<script>alert('你没有设置密码保护\n\n请找管理员给与密码还原');history.back();</script>"
 end if
 end if
end if

 if request("action")="get3" then
    user=request.form("puser")
     anwsernew=trim(request.form("passanwser"))
if anwsernew=empty  then 
    response.write "<script>alert('没有输入答案');history.back();</script>"
else
     anwsernew=MD5(anwsernew)
     sql="select * from ct_sql where username='"&user&"'"
      rs.open sql,cn,3,3
       anwser=rs("passwordanwser")
      id=rs("id")
if anwser=anwsernew then 
%>


 <form action="?action=get4" method=post>
                 <table border=1 bgcolor=#E4F7FE bordercolor=#3399ff align=center>
	        <tr align="center" >
                    
                           <td height="23" colspan="4" background="images/NavBG.gif">  <img src="images/User.gif" width="20" height="20"><font color=ffaa00>取回我的密码--第三步</font></td>
                         </tr>

	          <tr>
                              <td colspan="2">输入新密码 
                                </td>
                                 <td colspan="2">    <input name=passnew  type=password value=""   >
                                  </td>
 
                                 <input name=aid type=hidden  value=<%=id%>   >
	           </tr>
	
                  <tr >
                         <td height="5" colspan="4" align="center" bordercolor="#FF9900" background="images/bj.gif"> 
                                      <input type=submit value="提交" class=ibox>   &nbsp; &nbsp;&nbsp;&nbsp;      
                                       <input type=reset value="重置" class=ibox> 
                           </td>
                 </tr>
	 <tr  >
                         <td height="5" colspan="4" align="center" bordercolor="#FF9900" background="images/loginLine.gif" >     </td>
                       </tr>
                 </table> 
      </form>

<%
elseif anwser<>anwsernew then 

response.write "<script>alert('密码保护答案不正确');history.back();</script>"
end if
 rs.close

end if
end if


 if request("action")="get4" then
     aid=request.form("aid")
     pass=trim(request.form("passnew"))

if  pass=empty  then 
    response.write "<script>alert('没有输入任何字符');history.back();</script>"
else
      pass=md5(pass)
     sql="select * from ct_sql where id="&aid
      rs.open sql,cn,3,3
      rs("password")=pass
      rs.update
end if
 rs.close
response.write "<script>alert('密码重设成功!请牢记!');location.href='index.asp';</script>"
end if
%>


 
 
  </center>
 
</center></td>
          </tr>
        </table>
        <p>&nbsp;</p>
        </td>
    </tr>
    <tr > 
      <td height="46" colspan="2" VALIGN=TOP background="images/bottom_bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="15" ALIGN=RIGHT>&nbsp;</td>
          </tr>
          <tr>
            <td height="30" align="center" valign="middle"> <font color="#FF9900">推荐<font color="#FF0000">1024*768</font>分辨率</font> 
              <font color="green">Copyright &copy; 2005 <font color="#FF0000">野马</font> 
              All Rights Reserved</font> </td>
          </tr>
        </table></td>
    </tr>
    <tr > 
      <td height="34" colspan="2" > <!--#include file="foot.asp"--></td>
    </tr>
  </table>
</div>
</body>
<%
if request("action")="xiugaiask" then
 session("xiugaiask")=1
 response.write "<script>location.href='userpass.asp?action=xiugai'</script>"
end if
%>
</html>

⌨️ 快捷键说明

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