<!doctype html>
<html class="no-js">
<head>

<include file="Common/head" />

    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
</head>
<body>

<include file="Common/header" />

<div class="am-cf admin-main">

    <!-- sidebar start -->
    <include file="Common/sidebar" nav="region"/>
    <!-- sidebar end -->

    <!-- content start -->
    <div class="admin-content">
        <div class="admin-content-body">
            <div class="am-cf am-padding am-padding-bottom-0">
                <div class="am-fl am-cf">
                    <strong class="am-text-primary am-text-lg">地区管理</strong> / <small>村/小区</small>
                </div>
            </div>
            <div class="am-g">
                <div class="am-u-sm-12">
                    <form id="mainForm" class="am-form" action="" method="POST" enctype="multipart/form-data">
                        <input type="hidden" name="id" value="{$info.id}"/>
                        <if condition="$county[id]">
                            <input type="hidden" name="county_id" value="{$county.id}"/>
                        <else/>
                            <input type="hidden" name="county_id" value="{$info.county_id}"/>
                        </if>
                        <fieldset>
                            <legend>{$small}</legend>

                            <div class="am-form-group">
                                <volist name="goods" id="vo">
                                    &nbsp;&nbsp;
                                    <input type="checkbox" name="purchase_goods[]" class="" value="{$vo.id}" <?php if(in_array($vo['id'], $info['purchase_goods']))echo "checked";?>/>
                                    {$vo.goods_name}
                                    &nbsp;&nbsp;
                                </volist>
                            </div>

                            <p>
                                <button type="submit" class="am-btn am-btn-success">确认</button>
                                <!-- <button type="reset" class="am-btn am-btn-info">重置</button> -->
                                <button type="button" class="am-btn am-btn-default" onclick="javascript:location.href=history.back();">
                                    返回
                                </button>
                            </p>
                        </fieldset>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!-- content end -->
</div>

<include file="Common/footer" />

</body>
</html>