<!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-statistics-edit" th:object="${bjljStatistics}">
            <input   type="hidden" name="areaname1" id="areaname1" th:value="${bjljStatistics}!=null?${bjljStatistics.areaname}:''">
            <input  type="hidden"  name="type1" id="type1" th:value="${bjljStatistics}!=null?${bjljStatistics.type}:''">

            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">区域：</label>
                <div class="col-sm-8">
                    <select id="areaname" name="areaname"  class="form-control required">
                        <option value="">请选择</option>
                        <option value="自贸区">自贸区</option>
                        <option value="正定新区">正定新区</option>
                        <option value="正定镇">正定镇</option>
                        <option value="新安镇">新安镇</option>
                        <option value="新城铺镇">新城铺镇</option>
                        <option value="南楼乡">南楼乡</option>
                        <option value="西平乐乡">西平乐乡</option>
                        <option value="北早现乡">北早现乡</option>
                        <option value="南牛乡">南牛乡</option>
                        <option value="曲阳桥乡 ">曲阳桥乡 </option>
                    </select>
                </div>
            </div>

<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">类型：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <select id="type" name="type"  class="form-control required">-->
<!--                        <option value="">请选择</option>-->
<!--                        <option value="个体">个体</option>-->
<!--                        <option value="企业">企业</option>-->
<!--                    </select>-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">个体个数：</label>
                <div class="col-sm-8">
                    <input name="quantity" th:field="*{quantity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">企业个数：</label>
                <div class="col-sm-8">
                    <input name="number" th:field="*{number}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        onload = function() {
            var areaname1=$("#areaname1").val();
            $("#areaname").val([areaname1, areaname1]);

            var type1=$("#type1").val();
            $("#type").val([type1, type1]);
        }
        var prefix = ctx + "system/statistics";
        $("#form-statistics-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-statistics-edit').serialize());
            }
        }

        $("input[name='addtime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>