123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- {template '_header'}
-
- <div class="page-heading"> <h2>地址库设置</h2> </div>
-
- <form action="" method="post" class="form-horizontal form-validate" enctype="multipart/form-data" >
-
-
- <div class="form-group">
- <label class="col-sm-2 control-label">地址库选择</label>
- <div class="col-sm-9 col-xs-12">
- {ifp 'sysset.area.edit'}
- <label class="radio-inline">
- <input type="radio" name="data[new_area]" class="new_area" value="0" {if empty($data['new_area'])}checked{else}disabled{/if} /> 旧版
- </label>
- <label class="radio-inline">
- <input type="radio" name="data[new_area]" class="new_area" value="1" {if $data['new_area']==1}checked disabled{/if} /> 新版(数据更新并含街道信息)
- </label>
- <span class='help-block'>新版与旧版数据不兼容,开启后,用户地址库将被清空,并且不能再切换回旧版,请谨慎选择!</span>
- {else}
- <input type="hidden" name="data[new_area]" value="{$data['new_area']}" />
- <div class='form-control-static'>{if empty($data['new_area'])}旧版{else}新版{/if}</div>
- {/if}
- </div>
- </div>
-
-
- <div class="form-group street-group" {if empty($data['new_area'])}style="display:none;"{/if}>
- <label class="col-sm-2 control-label">收货地址库是否开启街道</label>
- <div class="col-sm-9 col-xs-12">
- {ifp 'sysset.area.edit'}
- <label class="radio-inline">
- <input type="radio" name="data[address_street]" value="0" {if empty($data['address_street'])}checked{/if} /> 关闭
- </label>
- <label class="radio-inline">
- <input type="radio" name="data[address_street]" value="1" {if $data['address_street']==1}checked{/if} /> 开启
- </label>
-
- {else}
- <input type="hidden" name="data[address_street]" value="{$data['address_street']}" />
- <div class='form-control-static'>{if empty($data['address_street'])}关闭{else}开启{/if}</div>
- {/if}
- </div>
- </div>
-
-
- <div class="form-group"></div>
- <div class="form-group">
- <label class="col-sm-2 control-label"></label>
- <div class="col-sm-9 col-xs-12">
- {ifp 'sysset.area.edit'}
- <input type="submit" value="提交" class="btn btn-primary" />
-
- {/if}
- </div>
- </div>
-
- </form>
-
- <script language="javascript">
- $(function () {
- $('.new_area').click(function () {
- var type = $(".new_area:checked").val();
- if (type == '1') {
- $('.street-group').show();
- } else {
- $('.street-group').hide();
- }
- });
- })
- </script>
-
- {template '_footer'}
-
-
|