<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
	<title>员工信息</title>
	<meta name="decorator" content="default"/>
    <style>
        body{
            background-color:transparent;
            filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#26FFFFFF, endColorstr=#26FFFFFF);
            color:#ffffff;
            background-color:rgba(255,255,255,0);
            height:100%;
        }
    </style>
    <script type="text/javascript">
        $(document).ready(function() {

        });
	</script>
</head>
<body>
<div class="wrapper wrapper-content">
    <div class="layui-row">

        <div class="full-width fl">
            <div class="contentShadow layui-form contentDetails">
                <%--<div class="nav-btns">--%>
                    <%--<shiro:hasPermission name="workstaff:workStaffBasicInfo:add">--%>
                        <%--<table:addRow url="${ctx}/workstaff/workStaffBasicInfo/form" title="员工信息"></table:addRow><!-- 增加按钮 -->--%>
                    <%--</shiro:hasPermission>--%>
                    <%--<button class="nav-btn nav-btn-refresh" data-toggle="tooltip" data-placement="left" onclick="sortOrRefresh()" title="刷新"><i class="glyphicon glyphicon-repeat"></i>&nbsp;刷新</button>--%>
                    <%--<div style="clear: both;"></div>--%>
                <%--</div>--%>
                <table class="oa-table layui-table" id="dataTable" lay-filter="dataTable"></table>

                <!-- 分页代码 -->
                <%--<table:page page="${page}"></table:page>--%>
                <%--<div style="clear: both;"></div>--%>
            </div>
            <%--<a href="javascript:window.opener=null;window.open('','_self');window.close();">关闭</a>--%>
        </div>

    </div>
    <div id="changewidth"></div>
</div>
<script src="${ctxp}/static/layui/layui.js"></script>
<script>
    layui.use(['table','form','layedit', 'laydate'], function(){
        var table = layui.table //生产数据表格
            ,form = layui.form;
        form.render();//表格渲染
        table.render({
            limit:100
            ,elem: '#dataTable'
            ,page: false
            ,cols: [[
                {field:'name',align:'center', title: '姓名',minWidth:100}
                ,{field:'idCard',align:'center', title: '身份证号码',minWidth:150}
            ]]
            ,data: [
                <c:if test="${ not empty list}">
                <c:forEach items="${list}" var="workStaffBasicInfo" varStatus="index">
                <c:if test="${index.index != 0}">,</c:if>
                {
                    "name":"<c:out value="${workStaffBasicInfo.name}" escapeXml="false"/>"
                    ,"idCard":"<c:out value="${workStaffBasicInfo.idCard}" escapeXml="true"/>"

                }
                </c:forEach>
                </c:if>
            ]
        });
        table.on('rowDouble(dataTable)', function(obj){
            var card = obj.data.idCard;
            parent.$("#username").val(card)
            parent.layer.closeAll();
        });

    })

    // resizeListTable(130);/*消除由于有竖向滚动条造成table出现横向滚动条*/
    // $("a").on("click",addLinkVisied);
</script>
<script>
    resizeListWindow1();
    $(window).resize(function(){
        resizeListWindow1();
    });
</script>
</body>
</html>