📄 changepwd.asp
字号:
<!--#include file="conn/db.asp"-->
<%
if session("login")<>true then
%>
<script language="javascript">
alert("你还没有登陆!");
this.location.href="administratorlogin.asp"
</script>
<%
else
%>
<html>
<head>
<title>岳海鑫源后台管理</title>
<style>
body{ margin: 0 auto; width: 778px; padding: 0; text-align: center;}
#head{ background: url("image/head.gif") #fff no-repeat 0 0; height: 101px; width: 778px;}
#head ul{ width: 762px; list-style-type: none; margin:75px 7px 0 9px; padding: 0; height: 20px; background: #13b3fd; text-align: center;}
#head ul li{ float: left; display: block; margin: 0; padding: 3px 2px; width: 88px; text-align: center;}
#head li a{ display: block; width: 100%; height: 18px; padding: 2px 3px; text-decoration: none; font-size: 14px; color: #fff; font-weight: bold; border-left: 1px #fff solid;}
#head li#empty{ width: 142px;}
#head li a#first{ border: 0;}
#head li a:hover{ color: #1193fd; background: #fff; border-right: 1px solid #fff;}
#hengfu{ background: url("image/cont_04.jpg") #fff no-repeat 0 0; width: 778px; height: 184px;}
#foot{ width: 778px;}
img{ display: block;}
#center{ width: 778px; margin: 0; padding: 0;}
#c_left{ background: url("image/cont_left.jpg") #fff repeat-y 0 0; float: left; padding: 0 0 0 34px;}
#c_right{ background: url("image/cont_071.jpg") #fff repeat-y 0 0; width: 31px; height: 461px; padding: 0; float: right;}
#c_center{ width: 489px; float: left; background: #fff; padding: 0; height: 461px; line-height: 120%;}
#c_center p{ padding: 0 0 0 34px;}
#c_bottom{ clear: both; background: url("image/cont_left3.jpg") #fff no-repeat 0 0;}
h1{ font-size: 16px; font-weight: bold; color: #1b1b1b; padding: 20px 0 0 0;}
</style>
<script src="common.js" language="javascript" type="text/javascript"></script>
</head>
<body>
<div id="head">
<ul>
<li id="empty"> </li>
<li><a href="company.asp" title="公司简介" id="first">公司简介</a></li>
<li><a href="zhici.asp" title="总经理致辞">总经理致辞</a></li>
<li><a href="zhaopin.asp" title="招聘启事">招聘启事</a></li>
<li><a href="zgrz.asp" title="资格认证">资格认证</a></li>
<li><a href="fwxm.asp" title="服务项目">服务项目</a></li>
<li><a href="pgyj.asp" title="评估业绩">评估业绩</a></li>
<li><a href="messageboard.asp" title="留言板">留言板</a></li>
</ul>
</div>
<div id="hengfu">
</div>
<div id="center">
<div id="c_left">
<img src="image/cont_left2.jpg" />
</div>
<div id="c_center">
<img src="image/cont_06_admin.jpg" />
<div id="updatepwd">
<form action="pwdsave.asp" method="post">
<fieldset style="margin: 10px 0 0 40px;">
<legend><h1>修改密码</h1></legend><br />
<div >
<label>帐 号</label>
<input name="user" type="text" id="user" size="14" />
</div><br />
<div >
<label>新密码</label>
<input name="npwd" type="password" id="npwd" size="14" />
</div><br />
<div >
<label>确 认</label>
<input name="npwd1" type="password" id="npwd1" size="14" />
</div><br />
<div >
<label> </label>
<input type="submit" name="Submit" value="修改" onclick="return updatepwd();" />
<input type="reset" name="Submit2" value="重置" /><br /><br />
</div>
</fieldset>
</form>
<script>
function updatepwd(){
if(document.getElementById("user").value!="admin"){
alert("无效帐号");
return false;
}
if(document.getElementById("npwd").value==""){
alert("密码不能为空!");
return false;
}
if(document.getElementById("npwd").value!=document.getElementById("npwd1").value){
alert("内容不能为空!");
return false;
}
}
</script>
</div>
<div style="text-align: center; margin: 10px 0 0 0;"><a href="checkadmin.asp">返回管理首页</a></div>
</div>
<div id="c_right">
</div>
</div>
<!--#include file="foot.asp"-->
</body>
</html>
<%end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -