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

📄 pass_diary.asp

📁 日记本(多用户版)V3.0 主要功能: 1、日记本基本功能:添加、修改日记等。 2、日记加密:当日记添加时
💻 ASP
字号:
<!--#include file="top.asp"-->
<%
'=========================================================
' 随然日记本(多用户版) Version:3.0
' Date: 2004-11-15
' Script Written by 随然(dampure)
' 随然日记本演示地址:http://www.suiran.cn
'=========================================================
' Copyright (C) 2003,2004 真露无香. All rights reserved.
' Web: www.yongzi.com
' Diary:http://www.suiran.cn
'=========================================================

id=request("id")
set rs=server.createobject("adodb.recordset")
    sql="select * from diary where id="&id
	rs.open sql,conn,1,1
	
    if rs("readpass")="" then
	set rs2=server.createobject("adodb.recordset")
        sql2="select * from admin where userid="&session("userid")
	    rs2.open sql2,conn,1,1
        pass=rs2("readpwd")
		rs2.close
    else
	pass=rs("readpass")
	end if
	
if not rs("userid")=session("userid") then 
%>
<script language=vbscript>
  MsgBox "呵呵~~~!想干吗呢?登陆超时请重新登陆,或者此则日记不是你的吧!"
  location.href = "javascript:history.back()"
</script>
<%
response.end
end if
%>
<TABLE cellSpacing=0 cellPadding=0 width=617 align=center border=0>
  <TBODY>
  <TR>
    <TD vAlign=top bgColor=#ffffff>
      <SCRIPT language=JavaScript><!--
function FrontPage_Form1_Validator(theForm)
{


 if (theForm.pass_diary.value == "")
  {
    alert("请填写新密码");
    theForm.pass_diary.focus();
    return (false);

  }

if (theForm.pass_diary02.value == "")
  {
    alert("请确认新密码");
    theForm.pass_diary02.focus();
    return (false);

  }
if (theForm.pass_diary.value.length > 12)
  {
    alert("密码不能大于12位,请重新输入!");
    theForm.pass_diary.focus();
    return (false);
  }
  
if (theForm.pass_diary.value <  theForm.pass_diary02.value)
  {
    alert("两次密码输入不同,请重新输入!");
    theForm.pass_diary.focus();
    return (false);
  }


 

return (true);
}
//--></SCRIPT>

      <FORM name=FrontPage_Form1 
      onsubmit="return FrontPage_Form1_Validator(this)" 
      action=save_readpass.asp method=post>
      <TABLE cellSpacing=0 cellPadding=6 width=609 align=center border=0>
        <TBODY>
        <TR>
          <TD width=286 clasee="td">
            <DIV align=right></DIV></TD>
          <TD width=331>&nbsp; </TD></TR>
        <TR>
          <TD width=286 clasee="td">
            <DIV align=right><FONT color=#000000><INPUT type=hidden value=<%=request("id")%> 
            name=id> 阅读默认密码:</FONT></DIV></TD>
          <TD width=331><%=pass%> </TD></TR>
        <TR bgColor=#e7e7e7>
          <TD width=286 bgColor=#e7e7e7 clasee="td">
            <DIV align=right><FONT color=#333333>新密码:</FONT></DIV></TD>
          <TD width=331><INPUT class=input type=password size=15 
            name=pass_diary> </TD></TR>
        <TR>
          <TD width=286 height=19 clasee="td">
            <DIV align=right><FONT color=#000000>确认新密码:</FONT></DIV></TD>
          <TD width=331 height=19>
            <DIV align=left><INPUT class=input type=password size=15 
            name=pass_diary02> </DIV></TD></TR>
        <TR>
          <TD width=286 bgColor=#e7e7e7 clasee="td">
            <DIV align=right></DIV></TD>
          <TD width=331 bgColor=#e7e7e7>&nbsp; </TD></TR>
        <TR>
          <TD colSpan=2>
            <DIV align=center><INPUT type=image height=21 src="images/tijiao.gif" width=74 border=0>
               <A href="#" onclick=history.back()><IMG 
            height=21 src="images/fanhui.gif" width=74 border=0></A> 
            </DIV></TD></TR>
        <TR>
          <TD colSpan=2>&nbsp;</TD></TR></TBODY></TABLE></FORM></TD></TR>
  <TR>
    <TD bgColor=#ffffff height=16>
      <TABLE cellSpacing=0 cellPadding=3 width=609 align=center bgColor=#9c9a9d 
      border=0>
        <TBODY>
<!--#include file="foot.asp"-->
</TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD height=2><IMG height=8 src="images/top01.gif" 
        width=617></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
</BODY></HTML>

⌨️ 快捷键说明

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