	<style type="text/css">
.pwd-box {
    width: 405px;
    height: 413px;
    margin: 0px auto;
    overflow: hidden;
    box-shadow: 0 0 5px 5px rgba(52, 176, 234, 0.5);
    border-radius: 6px;
    margin-top: 2%;
}

.pwd-mocuz input {
	border-radius: 6px;
    margin: auto;
    background-color: #fff !important;
    border-color: #cccccc;
}



.pwd-btn {
    width: 290px;
    height: 40px;
    border-radius: 6px;
    font-size: 16px;
    margin-top: 20px;
}


.pwd-close {
    position: relative;
    color: #999;
    text-decoration: underline;
    margin-left: -72%;
    margin-top: 5px;
	font-size: 16px;
}

.pwd-mocuz {
    overflow: hidden;
    margin: 20px;
}

.ziti {
    color: #9faeae !important;
    font-size: 16px !important;
    font-weight: lighter !important;
    margin-top: 12px;
    margin-bottom: -10px;
}


.h5a-btn.btn-primary {
    color: #ffffff;
    border-color: #4aa1af;
    background-color: #f9b10f;
    border-radius: 6px;
}

.pwd-btn span {
    line-height: 40px!important;
}

.sdc:hover{background-color: #ea9a25!important;border: 0 !important;}
	</style>
	
	<div style="left: 50%;top: 50%;text-align:center;">

	  	<img class="logo_style" style="margin-top: 7.5%;" src="<?php echo asset_url('images/v3logo.png');?>" class="logo-img"></img>
	<div class="pwd-box" id="main">
		<div class="pwd-mocuz">
			
			<label id="revise-lblName" class="ziti" style="margin-left: -70%;">账号</label>
			<input type="text" placeholder="请输入登录账号" class="h5a-input form-control input-sm" style="width:290px !important;height:40px;" id="revise-iptName" name='revise-iptName'>

		
			<label id="revise-lblOldPwd" class="ziti" style="margin-left: -66%;">原密码</label>
			<input type="password" placeholder="请输入原密码" class="h5a-input form-control input-sm"  style="width:290px !important;height:40px;" maxlength="18" id="revise-iptOldPwd">

			
			<label id="revise-lblPwd" class="ziti" style="margin-left: -70%;">密码</label>
			<input type="password" placeholder="请输入密码，密码为6-18位数字与字母组合" class="h5a-input form-control input-sm"  style="width:290px !important;height:40px;" maxlength="18" id="revise-iptPwd">

		
			<label id="revise-lblRepeat" class="ziti"  style="margin-left: -62%;">密码确认</label>
			<input type="password" placeholder="请再次输入密码" class="h5a-input form-control input-sm" style="width:290px !important;height:40px;" maxlength="18" id="revise-iptRepeat">

			<div style="text-align:center; width:100%;height:100%;margin-top: 0px;margin-bottom: 6px;">
				<button type="button" onclick='revise_pwd()' class="h5a-btn btn  btn-primary btn-xs pwd-btn sdc" style="border: 0 !important;">
		             <span>确定</span>
			    </button>
			   
			</div>
			 <a href="javascript:window.history.go(-1);" class="pwd-close">取消</a>
			
		</div>
	</div>
	
		</div>
<script type="text/javascript">
function revise_pwd()
{
	/* Act on the event */
	$.ajax({
	     url: "<?php echo site_url('admin/action/change');?>",
	     type: 'POST',
	     dataType: 'json',
	     data: {username:$('#revise-iptName').val(),oldpwd:$('#revise-iptOldPwd').val(),password:$('#revise-iptPwd').val(),passconf:$('#revise-iptRepeat').val()},
	     success:function(data){
	     	if(data.code == 1)
	     	{
	     		location.href="<?php echo base_url();?>";
	     	}
	     	else
	     	{
	     		alert(data.msg);
	     	}
	     }
	}) 
}
 </script>