<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!--360浏览器优先以webkit内核解析-->
    <title>个人信息</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/main/animate.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/main/style.min862f.css}" rel="stylesheet"/>
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content">
        <div class="row animated fadeInRight">
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>个人信息</h5>
                    <div class="ibox-tools">
                        
                        <a class="dropdown-toggle" data-toggle="dropdown" href="profile.html#">
                            <i class="fa fa-edit"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-user">
                            <li><a href="javascript:edit()">修改信息</a></li>
                            <li><a href="javascript:resetPwd()">修改密码</a></li>
                            <li><a href="javascript:avatar()">修改头像</a></li>
                        </ul>
                       
                    </div>
                    </div>
                    <div class="contact-box">
	                        <div class="col-sm-4">
	                            <div class="text-center">
	                                <img alt="image" class="img-circle m-t-xs img-responsive" th:src="(${user.avatar} == '') ? @{/img/profile.jpg} : @{/profile/avatar/} + ${user.avatar}">
	                                <div class="m-t-xs font-bold">[[${user.loginIp}]]</div>
	                            </div>
	                        </div>
	                        <div class="col-sm-8">
	                            <h3><strong> [[${user.loginName}]]</strong></h3>
	                            <p><i class="fa fa-user"></i> 用户名称/角色：[[${user.userName}]] / [[${#strings.defaultString(roleGroup,'无角色')}]]
	                            <p><i class="fa fa-phone"></i> 电话：[[${user.phonenumber}]]</p>
	                            <p><i class="fa fa-group"></i> 部门/岗位：[[${user.dept?.deptName}]] / [[${#strings.defaultString(postGroup,'无岗位')}]]</p>
	                            <p><i class="fa fa-transgender"></i> 性别：[[${user.sex}]]</p>
	                            <p><i class="fa fa-envelope-o"></i> Email地址：[[${user.email}]]</p>
	                            <p><i class="fa fa-calendar"></i> 注册时间：[[${#dates.format(user.createTime, 'yyyy-MM-dd HH:mm:ss')}]]</p>
                                <p><i class="fa fa-calendar-check-o"></i> 默认查询时间段：[[${user.dateQuantum}]] 天</p>
	                            <p><i class="fa fa-product-hunt"></i> 默认查询项目：[[${projectName}]]</p>
	                        </div>
	                        <div class="clearfix"></div>
	                    </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <div th:include="include::footer"></div>
    <script>
	    /*用户信息-修改*/
	    function edit() {
	        var url = ctx + 'system/user/profile/edit';
	        $.modal.open("修改用户", url);
	    }
	    /*用户管理-重置密码*/
	    function resetPwd() {
	        var url = ctx + 'system/user/profile/resetPwd';
	        $.modal.open("重置密码", url, '800', '500');
	    }
	    /*用户管理-头像*/
	    function avatar() {
	        var url = ctx + 'system/user/profile/avatar';
	        $.modal.open("修改头像", url);
	    }
	</script>
</body>
</html>
