<?php /*a:4:{s:62:"D:\phpstudy\WWW\12xz\app\admin\view/default\public\header.html";i:1782629701;s:68:"D:\phpstudy\WWW\12xz\app\admin\view/default\public\page_loading.html";i:1782629701;s:70:"D:\phpstudy\WWW\12xz\app\admin\view/default\public\nav_switch_btn.html";i:1782629701;s:67:"D:\phpstudy\WWW\12xz\app\admin\view/default\lib\region_linkage.html";i:1782629701;}*/ ?>
<div class="am-form-group region-linkage <?php if(isset($module_params['is_row']) and $module_params['is_row'] == 1): ?>row<?php endif; ?>" data-url="<?php echo MyUrl('admin/region/node'); ?>" data-code-url="<?php echo MyUrl('admin/region/codedata'); ?>" data-original-value="<?php if(!empty($region_linkage_data)): ?><?php echo urlencode(base64_encode(json_encode($region_linkage_data))); ?><?php endif; ?>">
    <label class="am-block">
        <span>
            <?php if(empty($module_params['title'])): ?><?php echo MyLang('form_region_title'); else: ?><?php echo htmlentities((string) $module_params['title']); ?><?php endif; if(!isset($module_params['required']) or $module_params['required'] == 1): ?><span class="am-form-group-label-tips-must">*</span><?php endif; ?>
        </span>
    </label>
    <div class="am-flex am-gap-1">
        <div class="am-cascader <?php if(empty($region_linkage_data)): ?>max-width<?php endif; ?>">
            <div class="am-cascader-suffix">
                <div class="am-input-inner input-model"></div>
                <input type="text" readonly="readonly" name="province_city_county" autocomplete="off" placeholder="<?php if(empty($module_params['title'])): ?><?php echo MyLang('form_region_title'); else: ?><?php echo htmlentities((string) $module_params['title']); ?><?php endif; ?>" data-validation-message="<?php echo MyLang('form_region_message'); ?>"
                value="<?php if(!empty($data['province_name'])): ?><?php echo htmlentities((string) $data['province_name']); ?><?php endif; if(!empty($data['city_name'])): ?>-<?php echo htmlentities((string) $data['city_name']); ?><?php endif; if(!empty($data['county_name'])): ?>-<?php echo htmlentities((string) $data['county_name']); ?><?php endif; ?>"
                class="am-input-inner" <?php if(!isset($module_params['required']) or $module_params['required'] == 1): ?>required<?php endif; ?>>
                <input type="hidden" name="province" value="<?php if(isset($data['province'])): ?><?php echo htmlentities((string) $data['province']); else: ?>0<?php endif; ?>">
                <input type="hidden" name="city" value="<?php if(isset($data['city'])): ?><?php echo htmlentities((string) $data['city']); else: ?>0<?php endif; ?>">
                <input type="hidden" name="county" value="<?php if(isset($data['county'])): ?><?php echo htmlentities((string) $data['county']); else: ?>0<?php endif; ?>">
                <span class="am-input-suffix">
                    <i class="iconfont icon-angle-down"></i>
                </span>
            </div>
            <div class="am-cascader-dropdown">
                <div class="am-cascader-panel">
                    <div class="am-scrollbar province am-cascader-menu <?php if(isset($data['province'])): ?>am-active<?php endif; ?>" data-key="province">
                        <div class="am-cascader-menu-wrap am-scrollbar-wrap am-scrollbar-wrap-hidden-default">
                            <ul class="am-scrollbar-view am-cascader-menu-list">
                            </ul>
                        </div>
                    </div>
                    <div class="am-scrollbar city am-cascader-menu <?php if(isset($data['city'])): ?>am-active<?php endif; ?>" data-key="city">
                        <div class="am-cascader-menu-wrap am-scrollbar-wrap am-scrollbar-wrap-hidden-default">
                            <ul class="am-scrollbar-view am-cascader-menu-list">
                            </ul>
                        </div>
                    </div>
                    <div class="am-scrollbar county am-cascader-menu <?php if(isset($data['county'])): ?>am-active<?php else: ?>0<?php endif; ?>" data-key="county">
                        <div class="am-cascader-menu-wrap am-scrollbar-wrap am-scrollbar-wrap-hidden-default">
                            <ul class="am-scrollbar-view am-cascader-menu-list">
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="am-popper-arrow"></div>
            </div>
        </div>
        <?php if(empty($region_linkage_data)): ?>
            <div class="am-input-group am-input-group-sm region-linkage-code">
                <input type="text" class="am-form-field am-radius" placeholder="<?php echo MyLang('form_region_code_placeholder'); ?>" value="<?php if(!empty($data['address_last_code'])): ?><?php echo htmlentities((string) $data['address_last_code']); ?><?php endif; ?>" />
                <span class="am-input-group-btn">
                    <button type="button" class="am-btn am-btn-xs am-radius"><?php echo MyLang('form_region_code_button_name'); ?></button>
                </span>
            </div>
        <?php endif; ?>
    </div>
</div>