<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增待审核')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-share-edit">
            <input name="id" id="id"   type="hidden" th:value="${id}" />
            <input name="a1" id="a1" type="hidden"   th:value="${person.rentype}" />
            <input name="id" id="change"  type="hidden" th:value="${change}" />
            <div class="form-group">
                <label class="col-sm-2 control-label">姓名：</label>
                <div class="col-sm-4 ">
                    <input name="renname" class="form-control" type="text" th:value="${person.renname}" >
                </div>
                <label class="col-sm-2 control-label">性别：</label>
                <div class="col-sm-4">
                    <input name="rensex" class="form-control" type="text"th:value="${person.rensex}"  >
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">身份证号：</label>
                <div class="col-sm-4">
                    <input name="rencardno" class="form-control" type="text"th:value="${person.rencardno}"  >
                </div>
                <label class="col-sm-2 control-label">职务：</label>
                <div class="col-sm-4">
                    <select class="form-control" name="rentype" id="s1">
                        <option th:value="1">请选择</option>
                        <option th:value="2">法定代表人</option>
                        <option th:value="3">董事</option>
                        <option th:value="4">监事</option>
                        <option th:value="5">经理</option>
                        <option th:value="6">委托代理人</option>
                        <option th:value="7">联络员</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">手机号：</label>
                <div class="col-sm-4 ">
                    <input  class="form-control" type="text"  name="renphone" th:value="${person.renmoblie}" >
                </div>
                <label class="col-sm-2 control-label">是否法人：</label>
                <div class="col-sm-4">
                    <input name="czrcardno" class="form-control" readonly type="text"th:value="${person.isfr=='1'? '是':'否'}"  >
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">身份证（正）：</label>
                <div class="col-sm-4 ">
                    <img  style=" height: 168px;width:164px; " th:src="${person.czrsfz}" class="form-control" width="40px" height="50px">

                </div>
                <label class="col-sm-2 control-label">身份证（反）：</label>
                <div class="col-sm-4">
                    <img  style=" height: 168px;width:164px; "   th:src="${person.czrsfz1}" class="form-control" width="40px" height="50px">

                </div>
            </div>
            <div class="form-group">
                <video  th:if="${person.rzqx!=null}" width="320" height="240" th:src="${person.video}" controls>

                </video>
            </div>
        </form>

        <br><br>
        <div style="text-align:center">
            <button th:if="${change}" type="button" th:onclick="submit()"class="btn btn-w-m btn-success">保存</button>
        </div>
    </div>
    <th: th:include="include :: footer" />

    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "company/tenant";

        //编辑保存
        function submit() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/directorbc",$('#form-share-edit').serialize());
            }
        }


        onload = function() {
            /*职务*/
            var jycssy=$("#a1").val();
            document.getElementById("s1").selectedIndex = jycssy-1;
        }
    </script>
</body>
</html>
