<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>itHelpDesk</title>
<link rel="stylesheet" href="../CSS/change_password.css" type="text/css">
<script type="text/javascript" src="../JS/jquery-1.6.4.js"></script>
<script>
$(document).ready(function(){
$("#submit").click(function(){
var newPassword = $("#new_password").val();
var passwordComfirm = $("#password_comfirm").val();
if (newPassword == passwordComfirm) {
$("#form").attr('action', '../user/changePasswordComfirm.action');
$("#form").submit();
return true;
}
$("#password_comfirm_span").html("Twice passwords are not same");
return false;
});
$("#cancel").click(function(){
history.go(-1);
return false;
});
});
</script>
</head>
<body>
<div id="warp">
<div id="header">
<div id="logo"></div>
<h1 class="title">IT Help Desk System</h1>
</div>
<div id="content">
<c:if test="${USER.role.id eq 4}">
<div><h2 id="home"><a href="../user/userList.action">Home > </a>Change Password</h2></div>
</c:if>
<c:if test="${USER.role.id ne 4}">
<div><h2 id="home"><a href="../request/list.action">Home > </a>Change Password</h2></div>
</c:if>
<div id="shadow">
<div id="login">
<form action="" id="form" method="post">
<div>
<input id="old_password" type="password" name="oldPassword" placeholder="Old Password" >
<span id="old_password_span"></span>
</div>
<div>
<input id="new_password" type="password" name="newPassword" placeholder="New Password">
<span id="new_password_span"></span>
</div>
<div>
<input id="password_comfirm" type="password" name="passwordComfirm" placeholder="Password Comfirm">
<span id="password_comfirm_span"></span>
</div>
<div id="button_left">
<button id="submit">Submit</button>
<button id="cancel">Cancel</button>
</div>
</form>
</div>
</div>
</div>
</div>
</body>
</html>
pwd
猜你喜欢
转载自yuexiahandao.iteye.com/blog/1974965
今日推荐
周排行