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

📄 password_xg.asp

📁 功能简述 为解决学生自主选课的所带来的繁琐工作问题,特开发网上在线学课系统. 学生:网上选课 重选. 老师:网上在线填报课程信息 管理员:参数设置,帐号管理,学科管理等
💻 ASP
字号:
<!--#include file="conn.asp"-->
<% Response.Buffer = true%>
<html>
<head>
<title>密码修改</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK 
href="images/css.css" type=text/css rel=stylesheet>
</HEAD>
<script language="JavaScript" type="text/JavaScript">
<!--
function chkform1(form){
	if (form.newpasswd.value.length<3){
		alert("请填写你新密码!(必须是3位以上)");
		form.newpasswd.focus();
		return false;
	}
	if (form.renewpasswd.value.length<3){
		alert("请填写你确认新密码!(必须是3位以上)");
		form.renewpasswd.focus();
		return false;
	}
	if (form.newpasswd.value!=form.renewpasswd.value){
		alert("两次输入的新密码不一样!");
		form.newpasswd.focus();
		return false;
	}
	return true;
}
-->
</script>

<script language="JavaScript" type="text/JavaScript">
<!--
function chkform2332(form){
	if (form.orgpasswd.value.length<3){
		alert("请填写你原来密码!(必须是3位以上)");
		form.orgpasswd.focus();
		return false;
	}
	if (form.newpasswd.value.length<3){
		alert("请填写你新密码!(必须是3位以上)");
		form.newpasswd.focus();
		return false;
	}
	if (form.renewpasswd.value.length<3){
		alert("请填写你确认新密码!(必须是3位以上)");
		form.renewpasswd.focus();
		return false;
	}
	if (form.newpasswd.value!=form.renewpasswd.value){
		alert("两次输入的新密码不一样!");
		form.newpasswd.focus();
		return false;
	}
	return true;
}
-->
</script>

</head>

<BODY bgColor=#f0f0f0 leftMargin=0 topMargin=0 MARGINWIDTH="0" MARGINHEIGHT="0">
<!--#include file="top1.asp"-->
<%
id=SafeRequest("name",0)
UserType=SafeRequest("UserType",0)
if 	UserType="student" then
	sql="select * from 学生表_student where xuehao='"&ID&"'"
	elseif UserType="teacher" then
	sql="select * from Tinfor where id='"&ID&"'"
	else
	sql="select * from Tinfor where 5=6"
end if
	set rs=conn.execute(sql)
	if rs.eof and rs.bof then
	str="系统没有此用户,或者你没有权限修改此账号!谢谢合作"
	MsgShow str,"2",url   
	'str:提示消息内容;flag:0:返回,标志1:跳转到URL,标志2:关闭窗口 标志3:用于显示  标志4: 刷新页面 标志5: 刷新父窗口 
	response.end	
	end if
%>
<table width="785" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    
    <td align="center" valign="top"><form name="formReg" method="post" action="password_xg_save.asp" onSubmit="return chkform1(formReg)">
	<INPUT TYPE="hidden" name="userid" value="<%=rs("ID")%>">
	<INPUT TYPE="hidden" name="UserType" value="<%=UserType%>">
        <table width="98%" border="0" cellpadding="0" cellspacing="0" bgcolor="#99cc00">
          <tr>
            <td align="center" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="4">
                <tr align="center" background="images/title_cell.gif"> 
                  <td colspan="2"><strong><%=rs("rename")%>  <%=rs("xuehao")%> 的 密 码 修 改</strong></td>
                </tr>
                <!--<tr bgcolor="#ffffff"> 
                  <td align="right">请输入原有密码:</td>
                  <td><input type="password" name="orgpasswd"></td>
                </tr>-->
                <tr bgcolor="#ffffff"> 
                  <td align="right">请输入新的密码:</td>
                  <td><input type="password" name="newpasswd"></td>
                </tr>
                <tr bgcolor="#ffffff"> 
                  <td align="right">请再次确认新密码:</td>
                  <td><input type="password" name="renewpasswd"></td>
                </tr>
                <tr align="center" bgcolor="#ffffff"> 
                  <td colspan="2"><input type="submit" name="Submit" value="确 定 提 交">
                    &nbsp;&nbsp;&nbsp; 
                    <input type="button" onClick="history.back();" value="放 弃 返 回">
                    &nbsp;&nbsp;&nbsp; 
                    <input type="reset" name="Submit3" value="重 新 填 写"></td>
                </tr>
              </table></td>
          </tr>
        </table>
      </form> </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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