<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>个人中心</title>
|
[#include "/business/pages/include/static.html" /]
|
<script type="text/javascript">
|
$(document).ready(function() {
|
$.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
|
document.getElementById("myform").target = window.top.openDialog("0","操作",
|
{},
|
{"width":40,"height":40,"noclose":true},
|
[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
|
return true;
|
}});
|
$("#zsxm").formValidator({empty: false, onShow:"请输入真实姓名!",onFocus: "请输入真实姓名"}).inputValidator({min: 3, onError: "真实姓名至少两个汉字或3个英文字符!"}).inputValidator({max:20, onError: "真实姓最多10个汉字或20个字符!"});
|
$("#age").formValidator({empty:true,onFocus:"1-99岁之间"}).inputValidator({min: 1,max:2, onError: "年龄为1到99"})
|
.regexValidator({regExp:"intege1", dataType:"enum", onError:"年龄格式不正确"});
|
$("#sjhm").formValidator({empty:false,onShow:"请输入手机号码!",onFocus:"手机号码不能为空"})
|
.inputValidator({min:11,max:11,onError:"手机号码为11位"})
|
$("#email").formValidator({empty:false,onShow:"请输入电子邮箱!",onFocus:"请输入电子邮箱"})
|
.inputValidator({min:5,max:64,onError:"邮箱为5到32位字符"})
|
.regexValidator({regExp:"email",dataType:"enum",onError:"email格式不正确"});
|
$("#gh").formValidator({empty: true, onShow:"请输入工号!",onFocus: "请输入工号"}).inputValidator({min:0,max:10,onError:"工号最大为10位"})
|
});
|
|
</script>
|
</head>
|
<body class="fullscreen">
|
[#include "/business/pages/include/header.html" /]
|
[#assign label = GnConstants.WDZL]
|
[#include "/business/pages/include/gps.html" /]
|
<div class="tabcon">
|
|
<form method="post" action="saveAccount.html" enctype="multipart/form-data" id="myform" name="myform">
|
<input type="hidden" name="remind_type" id="remind_type">
|
<div class="fs_navtitle" id="fsNavtitle">
|
<div class="fs_navtitle_con">
|
<div class="fsnt_btn">
|
<a class="fb_submit fb_save" id="btOk" onclick="javascript:save();"><span>保存</span></a>
|
<!-- <a class="mainbtn close" id="btReset" onclick="reset();"><span>取消</span></a> -->
|
</div>
|
</div>
|
</div>
|
<div class="fs_main bind_account modify_padssword clearfix">
|
<table class="edit_layout">
|
<tr><th><label class="required">登录名:</label></th><td>${user.LOGINNAME}</td>
|
<th><label class="required">真实姓名:</label></th><td><input class="general" type="text" value="${user.ZSXM}" name="zsxm" id="zsxm"/>
|
<div id="zsxmTip" style="display:inline-block;"></div></td></tr>
|
<tr><th><label>年龄:</label></th><td><input class="general" type="text" name="age"id="age" value="${user.AGE}" /><div id="ageTip" style="display:inline-block;"></div></td>
|
<th><label>性别:</label></th><td>
|
<input type="radio" name="sex" style="position:relative;top:2px;" id="sex" value="1" [#if user.XINGB=='男'||user.XINGB=='']checked[/#if]/> 男
|
<input type="radio" name="sex" style="position:relative;top:2px;" id="sex" value="2" [#if user.XINGB=='女']checked[/#if]/> 女
|
</td></tr>
|
<tr><th><label>手机号:</label></th><td><input class="general" type="text" value="${user.SJHM}" name="sjhm" id="sjhm" />
|
<div id="sjhmTip" style="display:inline-block;"></div></td>
|
<th><label>Email:</label></th><td><input class="general" type="text" value="${user.EMAIL}" name="email" id="email" />
|
<div id="emailTip" style="display:inline-block;"></div></td></tr>
|
<tr style="display: none;"><th><label>桌面头像:</label></th>
|
<td>
|
<input type="file" name="photopathUrl" id="photopath" accept=".jpg,.jpeg,.png"/>
|
[#if user.ZHAOP??]
|
<img src="${base}${user.ZHAOP}" width="80px" height="80px;"/>
|
<input type="hidden" value="${user.ZHAOP}" name="photopath"/>
|
[/#if]
|
</td>
|
<th>接收提醒方式:</th>
|
<td>
|
<input type="checkbox" name="remind" style="position:relative;top:2px;" value="1" [#if user.remind_type!=''&&user.remind_type?substring(0,1)=='1']checked[/#if]/> 短信
|
<input type="checkbox" name="remind" style="position:relative;top:2px;" value="2" [#if user.remind_type!=''&&user.remind_type?substring(1,2)=='1']checked[/#if]/> 邮箱
|
<input type="checkbox" name="remind" style="position:relative;top:2px;" value="3" [#if user.remind_type!=''&&user.remind_type?substring(2,3)=='1']checked[/#if]/> 微信
|
</td>
|
</tr>
|
<th><label>工号:</label></th><td><input class="general" type="text" value="${user.GH}" name="gh" id="gh" />
|
<tr><th class="postop"><label>备注:</label></th><td colspan="3"><textarea class="general" name="note" id="note">${user.BEIZ}</textarea></td></tr>
|
</table>
|
</div>
|
</form>
|
</div>
|
<div class="tabcon"></div>
|
<div class="tabcon" id="thirdConfirm"></div>
|
<div class="tabcon" id="changeDesk"></div>
|
<script type="text/javascript">
|
var shownum = '${RequestParameters.shownum}';
|
$(function(){
|
|
|
|
$('#btn').click(function(){
|
$('#photopath').click();
|
});
|
});
|
|
function save(){
|
var $types = $(":checkbox");
|
var remind_type = "";
|
if($types.length>0) {
|
$types.each(function() {
|
if($(this).is(":checked")){
|
remind_type += "1";
|
}else{
|
remind_type += "0";
|
}
|
})
|
$("#remind_type").val(remind_type);
|
}
|
$("#myform").submit();
|
}
|
|
function reset(){
|
document.getElementById("myform").reset();
|
}
|
|
function refreshDetail(){
|
window.location.reload();
|
}
|
|
</script>
|
[#include "/business/pages/include/footer.html" /]
|
</body>
|
</html>
|