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

📄 passstu.asp

📁 学生信息化管理系统,目前最完美的学生信息化管理系统,界面美观,操作方面,个性化设置.一套软件管理多所学校.
💻 ASP
字号:
<% Set hdobj = Server.CreateObject("HD.comOpen")'请确保此行在最前
conn = hdobj.weekaaConn()
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="pragma" content="no-cache">
<title>红笛软件</title>
<style type="text/css">
<!--
.tables {
background-image: url(../Image/bigbg.jpg);
background-repeat: no-repeat;

}
.style3 {font-size: 12px}
.style4 {	color: #FFFFFF;
	font-size: 14px;
}
body,td,th {
	font-size: 12px;
}
a:link {
	text-decoration: none;
	color: #000066;
}
a:visited {
	text-decoration: none;
	color: #000066;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
.B A:link {
	FONT-SIZE: 12px; COLOR: #ffffff; TEXT-DECORATION: none
}
.B A:visited {
	FONT-SIZE: 12px; COLOR: #ffffff; TEXT-DECORATION: none
}
.B A:hover {
	FONT-SIZE: 12px; COLOR: #ffffff; TEXT-DECORATION: none
}
.B A:active {
	FONT-SIZE: 12px; COLOR: #ffffff; TEXT-DECORATION: none
}
body {
	background-color: #DEE7FF;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-image: url(../Image/bg.gif);
}
.STYLE15 {
	font-family: "黑体";
	font-size: 16px;
}
.STYLE17 {color: #FFFFFF}
.STYLE18 {font-size: 12px; color: #FFFFFF; }
-->
</style>
<script language="JavaScript">
<!--
function chk(theForm){
if (theForm.a.value == ""){
                alert("原密码不能为空!");
                theForm.name.focus();
                return (false);
        } 
if (theForm.b.value == ""){
                alert("新密码不能为空!");
                theForm.pwd.focus();
                return (false);
        } 
if (theForm.c.value == ""){
                alert("请重复新密码!");
                theForm.pwd.focus();
                return (false);
        } 
}
//-->
</script>

</head>

<body onmouseover="self.status='红笛软件:服务网址[http://weekaa.com/red]';return true">
<table width="1003" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#3399fd">
  <tr>
    <td height="150" align="center" valign="bottom"><img src="../Image/bigbga.jpg" width="1003" height="150"></td>
  </tr>
  <tr>
    <td height="28" align="center" valign="middle" background="../Image/bg01a.jpg"><span class="b"><a href="LoginList.asp">日志</a> <a href="SQlist.asp">授权</a> <a href="BF.asp">备份</a> <a href="Bak/HFa.asp">恢复</a> <a href="User_Edit.asp">管理密码</a> <a href="User_Edit.asp">老师密码</a> <a href="passstu.asp">学生密码</a></span></td>
  </tr>
  <tr>
    <td height="20" align="center" valign="top" bgcolor="#3399FD">&nbsp;</td>
  </tr>
  <tr>
    <td height="400" align="center" valign="top" bgcolor="#3399FD">


<%

dim Use_nam
Use_nam=session("AdminUser")
if mid(Use_nam,1,3)<>"adm" then
response.write "<br><br><br><br><br><br><p align='center'>对不起,你没有获得使用本功能的授权。</p>"
response.end
end if

If Request.QueryString("action")="" Then

%>

<table width="600" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DEE7FF">
  <tr>
    <td height="28" align="center" background="../Image/bg01.jpg">&nbsp;</td>
  </tr>
  <tr>
    <td><table cellpadding="0" cellspacing="0" border="0" width="100%" class="tableBorder" align=center>
      <form action="?action=add" method=post id=form1 name=form1 onSubmit="return chk(this)">
        
        <tr align="center" bgcolor=ffffff>
          <td height="40" colspan="2" class=forumrow><span class="style6">修 改 学 生 密 码</span></td>
          </tr>
        <tr bgcolor=ffffff>
          <td height="30" align="right" class=forumrow>学号:</td>
          <td class=forumrow><input name="La" type=text class="style1" id="La" maxlength="16"></td>
        </tr>
        <tr bgcolor=ffffff>
          <td width="38%" height="30" align="right" class=forumrow>密码:</td>
          <td width="62%" class=forumrow><input name="Lb" type=password class="style1" id="Lb" maxlength="16">          </td>
        </tr>
        <tr align="center"  bgcolor=ffffff>
          <td class=forumrow>&nbsp;</td>
          <td class=forumrow><div align="left">    
            <input type="submit" name="Submit" value="修改">
          </div></td>
        </tr>
        <tr align="center"  bgcolor=ffffff>
          <td height="40" colspan="2" class=forumrow>&nbsp;</td>
        </tr>
      </form>
    </table></td>
  </tr>
  <tr>
    <td height="28" background="../Image/bg01.jpg">&nbsp;</td>
  </tr>
</table>
  </td>
  </tr>
  <tr>
    <td height="25" background="../Image/bg01a.jpg" bgcolor="#3399FD">  </td>
  </tr>
</table>
</body>
</html>
<%
else

La=Request.Form("La")
Lb=Request.Form("Lb")
Lb=hdobj.md(Lb)


Set rs = Server.CreateObject("ADODB.RecordSet")
Sql = "Select * From [student] Where a='" & La & "'"
rs.Open Sql,Conn,1,3
if rs.eof then
response.write "<br><br><br><div align='center'><span class='style6'>找不到学号为'"& La &"'的学生!</div>"
else
rs("pass")=Lb
rs.update
response.write "<br><br><br><div align='center'><span class='style6'>密码已经修改,请记住新密码,否则没人能帮你!</span></div>"
end if
response.end

End if

%>

⌨️ 快捷键说明

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