123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
- <% String basePath = request.getScheme()+ "://" + request.getServerName() + ":" +request.getServerPort() + request.getContextPath(); %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link href="<%=basePath %>/favicon.ico" rel="shortcut icon" type="image/x-icon"/>
- <jsp:include page="../common/include.jsp" />
- <title>淮安市住房保障管理系统</title>
- <script type="text/javascript">
- $(
- function(){
- var unlock = function()
- {
- if ($('#unlockForm').form('validate')) {
- var url = whzl.basePath+"/userAction_login";
- var params = $('#unlockForm').serialize();
- $.post(
- url,
- params,
- function(result){
- if(result.success){
- location.replace(whzl.basePath + '/mainAction_main');
- }
- else{
- $.messager.alert("提示",result.message);
- $('form :input:eq(0)').focus();
- }
- }
- ,
- 'json'
- );
-
- }
- };
-
- var editPwd = function(){
- if ($('#editPwdForm').form('validate')) {
- var url = whzl.basePath+"/userAction_updatePwd";
- var params = $('#editPwdForm').serialize();
- $.post(
- url
- ,
- params
- ,
- function(result){
- if(result.success){
- $.messager.confirm('提示', result.message, function(r){
- if(r){
- $('#passwordDialog').dialog('close');
- location.replace(whzl.basePath);
- }else{
- $('#passwordDialog').dialog('close');
- }
- });
- }
- else{
- $.messager.alert('提示',result.message);
- $('form :input:eq(0)').focus();
- }
- }
- ,
- 'json'
- );
-
- }
-
- };
-
- $('#loginDialog').show().dialog({
- modal : true,
- closable : false,
- iconCls : 'icon-unlock',
- buttons : [ {
- id : 'loginBtn',
- text : '登录',
- handler : function() {
- unlock();
- }
- } ],
- onOpen : function() {
- $('#loginDialog form :input[name="data.password"]').val('');
- $('form :input').keyup(function(event) {
- if (event.keyCode == 13) {
- unlock();
- }
- });
- }
- }).dialog('close');
-
- $('#passwordDialog').show().dialog({
- modal : true,
- closable : true,
- iconCls : 'icon-useredit',
- buttons : [ {
- text : '修改',
- handler : function() {
- editPwd();
- }
- } ],
- onOpen : function() {
- $('#passwordDialog form :input').val('');
- $('form :input').keyup(function(event) {
- if (event.keyCode == 13) {
- editPwd();
- }
- });
- }
- }).dialog('close');
- }
-
- );
- function closePro(){
- parent.$.messager.progress('close');
- }
- </script>
- </head>
- <body class="easyui-layout">
- <div id="layout_north" data-options="region:'north',border:false,href:'mainAction_north'" style="height:60px;padding:10px;background-color: #1369d8;"></div>
-
- <div data-options="region:'west',title:'功能导航',href:'mainAction_west'" style="width: 200px;overflow: hidden;">
- </div>
-
- <div data-options="region:'center',href:'mainAction_center'">
-
- </div>
-
- <div data-options="region:'south',border:true,split:true" style="height:30px;padding:5px; text-align: center;overflow:hidden; ">
- 版权所有:淮安市保障性住房建设管理中心 技术支持:江苏物合智联科技有限公司
- </div>
-
-
- <div id="loginDialog" style="display: none;" title=" 解除锁定">
- <form id="unlockForm" method="post" class="myform" onsubmit="return false;">
- <table class="mytable">
- <tr>
- <th width="50">用户</th>
- <td>${user.name}<input name="user.name" readonly="readonly" type="hidden" value="${user.name}" /></td>
- </tr>
- <tr>
- <th>密码</th>
- <td><input name="user.password" type="password" class="easyui-validatebox" data-options="required:true,missingMessage:'请输入您的密码!'" /></td>
- </tr>
- </table>
- </form>
- </div>
-
- <div id="passwordDialog" title=" 修改密码" style="display: none;">
- <form id="editPwdForm" method="post" class="myform" onsubmit="return false;">
- <table class="mytable">
- <tr>
- <th width="60">当前密码</th>
- <td>
- <input id="currentPwd" name="currentPwd" type="password" class="easyui-validatebox" data-options="required:true,missingMessage:'请输入当前密码!'" />
- </td>
- </tr>
- <tr>
- <th>新密码</th>
- <td><input id="pwd" name="password" type="password" class="easyui-validatebox" data-options="required:true,missingMessage:'请输入新密码!'" /></td>
- </tr>
- <tr>
- <th>确认密码</th>
- <td><input type="password" class="easyui-validatebox" data-options="required:true,missingMessage:'请输入确认密码!',validType:'equals[\'#pwd\']'" /></td>
- </tr>
- </table>
- </form>
- </div>
-
-
- </body>
- </html>
|