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

📄 updatepwd.asp

📁 功能简介: 前台: 1.用户名注册:登 录 名:密码:确认密码:性别:查询权限: 地址: 联系电话: 移动电话: E - mail: 工作单位 2.系统优点管理,公告新闻管理,联系我们管理
💻 ASP
字号:

<!--#include file="conn.asp"-->
<%
	if session("username")=empty then
		response.Write("<script>alert('请先登陆!');document.location.href='enter.asp';</script>")
	end if

%>
<%
if(request("password1")<>"") then
	dim p1,sql
	p1=trim(request("password1"))
	
	set rs=server.createobject("adodb.recordset")
	
	sql="select * from regist where username='"&session("username")&"' and pwd='"&p1&"'"
	
	rs.open sql,conn,1,1
	
	if rs.eof then
	
		response.write "<script>alert('对不起,当前密码不正确,请重新输入');window.history.back();</script>"
		response.end
	else
	
		sql="update regist set pwd='"&trim(request("password2"))&"' where username='"&session("username")&"'"
	
	conn.Execute(sql)
	response.write "<script>alert('密码修改成功!');</script>"

	end if
	
	
	
end if
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0032)http://www.doofan.cn/25175/4400/ -->
<HEAD><TITLE>信息价系统</TITLE>
<script language="javascript" src="inc/ssq.js"></script>

<script>
function close(){ 
if(document.body.clientWidth-event.clientX< 170&&event.clientY< 0||event.altKey) 
{ 

window.location.href="outlogin.asp";
}  
} 
window.onbeforeunload=close;

</script> 


<SCRIPT language=JavaScript>

//下拉菜单相关代码
 var h;
 var w;
 var l;
 var t;
 var topMar = 1;
 var leftMar = -55;
 var space = 1;
 var isvisible;
 var MENU_SHADOW_COLOR='#BBE0F0';   //定义下拉菜单阴影色
 var global = window.document
 global.fo_currentMenu = null
 global.fo_shadows = new Array

function HideMenu() 
{
 var mX;
 var mY;
 var vDiv;
 var mDiv;
	if (isvisible == true)
{
		vDiv = document.all("menuDiv");
		mX = window.event.clientX + document.body.scrollLeft;
		mY = window.event.clientY + document.body.scrollTop;
		if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){
			vDiv.style.visibility = "hidden";
			isvisible = false;
		}
}
}

function ShowMenu(vMnuCode,tWidth) {
	vSrc = window.event.srcElement;
	vMnuCode = "<table id='submenu' cellspacing=2 cellpadding=2 style='border: 1px #444444 solid;width:"+tWidth+"' onmouseout='HideMenu()'><tr><td nowrap align=right height=20>" + vMnuCode + "</td></tr></table>";

	h = vSrc.offsetHeight;
	w = vSrc.offsetWidth;
	l = vSrc.offsetLeft + leftMar+4;
	t = vSrc.offsetTop + topMar + h + space-2;
	vParent = vSrc.offsetParent;
	while (vParent.tagName.toUpperCase() != "BODY")
	{
		l += vParent.offsetLeft;
		t += vParent.offsetTop;
		vParent = vParent.offsetParent;
	}

	menuDiv.innerHTML = vMnuCode;
	menuDiv.style.top = t;
	menuDiv.style.left = l;
	menuDiv.style.visibility = "visible";
	isvisible = true;
    makeRectangularDropShadow(submenu, MENU_SHADOW_COLOR, 4)
}

function makeRectangularDropShadow(el, color, size)
{
	var i;
	for (i=size; i>0; i--)
	{
		var rect = document.createElement('div');
		var rs = rect.style
		rs.position = 'absolute';
		rs.left = (el.style.posLeft + i) + 'px';
		rs.top = (el.style.posTop + i) + 'px';
		rs.width = el.offsetWidth + 'px';
		rs.height = el.offsetHeight + 'px';
		rs.zIndex = el.style.zIndex - i;
		rs.backgroundColor = color;
		var opacity = 1 - i / (i + 1);
		rs.filter = 'alpha(opacity=' + (100 * opacity) + ')';
		el.insertAdjacentElement('afterEnd', rect);
		global.fo_shadows[global.fo_shadows.length] = rect;
	}
}
//读取下拉菜单

var menulists1 = '  '


</SCRIPT>
<script>
	function getzhong(did){
	var zhong=document.all("zhong");
	var xiao=document.all("xiao");		
				for(i=zhong.length-1;i>0;i--){				
					zhong.options.remove(i);			
				}
				for(i=xiao.length-1;i>0;i--){				
					xiao.options.remove(i);			
				}
		var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");   
			xmlDoc.async="false" ;
			xmlDoc.load("xml/class.xml");   
				
			
			
			if (xmlDoc.parseError.errorCode!=0)
			{
				alert("文件不存在");	
				
			}
			 
			var xmlNodes=xmlDoc.selectNodes("/root/info"); 
			var recordCount=xmlNodes.length;				
			var i,f,yyt="";
				
			for(i=0;i<recordCount;i++){ 
				var node=xmlNodes[i];
				var id=node.selectSingleNode("id").text;
				var title=node.selectSingleNode("title").text;
				var fid=node.selectSingleNode("fid").text;
				if( fid==did)
				zhong.options.add(new Option(title,id)); 	
			}
	}
	
	
	function getxiao(did){
	
	var xiao=document.all("xiao");		
				
				for(i=xiao.length-1;i>0;i--){				
					xiao.options.remove(i);			
				}
		var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");   
			xmlDoc.async="false" ;
			xmlDoc.load("xml/class.xml");   
				
			
			
			if (xmlDoc.parseError.errorCode!=0)
			{
				alert("文件不存在");	
				
			}
			 
			var xmlNodes=xmlDoc.selectNodes("/root/info"); 
			var recordCount=xmlNodes.length;				
			var i,f,yyt="";
				
			for(i=0;i<recordCount;i++){ 
				var node=xmlNodes[i];
				var id=node.selectSingleNode("id").text;
				var title=node.selectSingleNode("title").text;
				var fid=node.selectSingleNode("fid").text;
				if( fid==did)
				xiao.options.add(new Option(title,id)); 	
			}
	}
	function check()
	{
		if(document.form3.password2.value!=document.form3.password3.value)
		 {
		   alert("你输入的密码和确认密码不匹配!");
		  return false;
		 }
	}
	</script>
	
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
href="images/25175css_pro.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
</HEAD>
<BODY onmousemove=HideMenu() bgColor=#fbfdff leftMargin=0 topMargin=0 
marginheight="0" marginwidth="0">
<!--#include file="top.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=970 border=0>
  <TBODY>
  <TR>
    <TD width=10>
      <DIV align=center></DIV></TD></TR>
  <TR>
    <TD>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          
          <TD vAlign=top bgColor=#a5bec6 rowSpan=2>
            <TABLE cellSpacing=1 cellPadding=0 width=970 border=0>
              <TBODY>
              <TR>
                <TD bgColor=#e7f3ff>
				 
                  <TABLE cellSpacing=4 cellPadding=0 width=970 border=0>
                    <TBODY>
                    <TR>
                      <TD vAlign=top bgColor=#004194 height=300>
                        <TABLE cellSpacing=1 cellPadding=0 width=970 border=0>
                          <TBODY>
                          <TR>
                            <TD vAlign=top bgColor=#ffffff height=400>
							<FORM id=form3 name=form3 action=updatepwd.asp method=post onsubmit="return check()">
                              <TABLE cellSpacing=0 cellPadding=2 width="100%" 
                              align=center border=0>
                                <TBODY>
                                <TR>
                                <TD align="center"><IMG height=18 
                                src="images/face5.gif" width=18> 
                                
								  <STRONG>&nbsp;&nbsp;<a href="show.asp">综合版</a></STRONG>
								    <STRONG>&nbsp;&nbsp;<a href="show1.asp">商情版</a></STRONG>
									<STRONG>&nbsp;&nbsp;<a href="updatepwd.asp">修改密码</a></STRONG>	<STRONG>&nbsp;&nbsp;<a href="updateuser1.asp">修改资料</a></STRONG>	<STRONG>&nbsp;&nbsp;<a href="outlogin.asp" class="STYLE1">退出</a>	</TD>
                                </TR>
                               
							
								    <TR>
                                <TD align="center"><TABLE cellSpacing=1 cellPadding=0 width=40% border=0>
                          <TBODY>
                          <TR>
                            <TD vAlign=top bgColor=#ffffff height=400>
                              <TABLE cellSpacing=0 cellPadding=2 width="100%" 
                              align=center border=0>
                                <TBODY> 
								<TR>
                                
                                <TD  height=15 colspan="2" align="right" ></TD>
                                </TR>                               
                                <TR>
                                
                                <TD  width="39%" height=23 align="right" >请输入当前密码:</TD>
                                <TD width="61%" height=30 align="left"><INPUT class=unnamed1_rld type=password size=30 name=password1></TD>
                                </TR>
                                <TR>
                                <TD  width="39%" height=30 align="right" >请输入新的密码:</TD>
                                <TD height=23 align="left"><INPUT class=unnamed1_rld type=password size=30 name=password2></TD></TR>
                                <TR>
                                <TD  width="39%" height=23 align="right" >再次输入新密码:</TD>
                                <TD height=30 align="left"><INPUT class=unnamed1_rld  type=password size=30  name=password3></TD>
                                </TR><TR>
                                
                                <TD  height=15 colspan="2" align="right" ></TD>
                                </TR> 
                                <TR>
                                <TD  width="39%" height=23 align="right" ><input type=submit value=确定 name=Submit2 /></TD>
                                <TD height=23> <DIV  align="left">
                                  &nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name=submit onclick="javascript:window.history.back();" value=返回 />
                           </DIV></TD></TR></TBODY></TABLE></TD>
								    </TR>
								
							   
							    <TR>
                                  <TD>&nbsp;</TD>
							    </TR>	
								</TBODY></TABLE>
								
								
								</TD>
								</TR>
								</TBODY>
								</TABLE>
								</FORM>
					  </TD>
                    </TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD>
      <DIV align=center></DIV></TD></TR>
  <TR>
    <TD width=10>
      <DIV align=center></DIV></TD></TR>
  <TR>
    <TD bgColor=#b1d6e4 height=25>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD bgColor=#b1d6e4 height=25 align="center">&nbsp;Copyright &copy; 2007 25175. All 
            rights reserved. Powered by </TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD>&nbsp;</TD></TR></TBODY></TABLE>
	
		
	
	</BODY></HTML>

⌨️ 快捷键说明

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