<?php /*a:1:{s:62:"D:\phpstudy\WWW\12xz\app\admin\view/default\user\saveinfo.html";i:1782629701;}*/ ?>
<?php echo ModuleInclude('public/header'); ?>

<!-- right content start  -->
<div class="content-right">
	<div class="content">
        <!-- nav start -->
        <?php echo ModuleInclude('public/admin_nav', [
            'title'     => MyLang('user.base_nav_title').(empty($data['id']) ? MyLang('created_title') : MyLang('edit_title')),
            'back_url'  => MyUrl('admin/user/index', $form_back_params)
        ]); ?>
        <!-- nav end -->
        <!-- form start -->
        <form class="am-form form-validation am-form-full-screen am-form-popup-sticky" action="<?php echo MyUrl('admin/user/save'); ?>" method="POST" request-type="ajax-url" request-value="<?php echo MyUrl('admin/user/index', $form_back_params); ?>">
            <div class="am-form-group am-form-file">
                <label class="am-block"><?php echo MyLang('common_service.user.form_item_avatar'); ?></label>
                <div class="am-form-file-upload-container">
                    <ul class="plug-file-upload-view avatar-images-view" data-form-name="avatar" data-max-number="1" data-dialog-type="images" data-is-eye="1">
                        <li class="plug-file-upload-submit" data-view-tag="ul.avatar-images-view">
                            <?php if(empty($data['avatar'])): ?>
                                <i class="iconfont icon-add"></i>
                            <?php else: ?>
                                <input type="text" name="avatar" value="<?php echo htmlentities((string) $data['avatar']); ?>" />
                                <img src="<?php echo htmlentities((string) $data['avatar']); ?>" />
                                <i class="iconfont icon-close"></i>
                                <i class="iconfont icon-eye"></i>
                            <?php endif; ?>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="am-form-group">
                <label><?php echo MyLang('common_service.user.form_item_username'); ?></label>
                <input type="text" name="username" class="am-radius" placeholder="<?php echo MyLang('common_service.user.form_item_username_message'); ?>" data-validation-message="<?php echo MyLang('common_service.user.form_item_username_message'); ?>" value="<?php if(!empty($data['username'])): ?><?php echo htmlentities((string) $data['username']); ?><?php endif; ?>" />
            </div>
            <div class="am-form-group">
                <label><?php echo MyLang('common_service.user.form_item_nickname'); ?></label>
                <input type="text" name="nickname" class="am-radius" placeholder="<?php echo MyLang('common_service.user.form_item_nickname_message'); ?>" data-validation-message="<?php echo MyLang('common_service.user.form_item_nickname_message'); ?>" value="<?php if(!empty($data['nickname'])): ?><?php echo htmlentities((string) $data['nickname']); ?><?php endif; ?>" />
            </div>
            <div class="am-form-group">
                <label><?php echo MyLang('common_service.user.form_item_mobile'); ?></label>
                <input type="text" name="mobile" class="am-radius" placeholder="<?php echo MyLang('common_service.user.form_item_mobile'); ?>" pattern="<?php echo MyConst('common_regex_mobile'); ?>" data-validation-message="<?php echo MyLang('common_service.user.form_item_mobile_message'); ?>" value="<?php if(!empty($data['mobile'])): ?><?php echo htmlentities((string) $data['mobile']); ?><?php endif; ?>" />
            </div>
            <div class="am-form-group">
                <label><?php echo MyLang('common_service.user.form_item_email'); ?></label>
                <input type="email" name="email" class="am-radius" placeholder="<?php echo MyLang('common_service.user.form_item_email'); ?>" data-validation-message="<?php echo MyLang('common_service.user.form_item_email_message'); ?>" value="<?php if(!empty($data['email'])): ?><?php echo htmlentities((string) $data['email']); ?><?php endif; ?>" />
            </div>
            <div class="am-form-group">
                <label><?php echo MyLang('common_service.user.form_item_province'); ?></label>
                <input type="text" placeholder="<?php echo MyLang('common_service.user.form_item_province'); ?>" name="province" data-validation-message="<?php echo MyLang('common_service.user.form_item_province_message'); ?>" class="am-radius" value="<?php if(!empty($data['province'])): ?><?php echo htmlentities((string) $data['province']); ?><?php endif; ?>" />
            </div>
            <div class="am-form-group">
                <label><?php echo MyLang('common_service.user.form_item_city'); ?></label>
                <input type="text" placeholder="<?php echo MyLang('common_service.user.form_item_city'); ?>" name="city" data-validation-message="<?php echo MyLang('common_service.user.form_item_city_message'); ?>" class="am-radius" value="<?php if(!empty($data['city'])): ?><?php echo htmlentities((string) $data['city']); ?><?php endif; ?>" />
            </div>
            <div class="am-form-group">
                <label><?php echo MyLang('common_service.user.form_item_county'); ?></label>
                <input type="text" placeholder="<?php echo MyLang('common_service.user.form_item_county'); ?>" name="county" data-validation-message="<?php echo MyLang('common_service.user.form_item_county_message'); ?>" class="am-radius" value="<?php if(!empty($data['county'])): ?><?php echo htmlentities((string) $data['county']); ?><?php endif; ?>" />
            </div>
            <div class="am-form-group">
                <label><?php echo MyLang('common_service.user.form_item_address'); ?></label>
                <input type="text" placeholder="<?php echo MyLang('common_service.user.form_item_address'); ?>" name="address" data-validation-message="<?php echo MyLang('common_service.user.form_item_address_message'); ?>" class="am-radius" value="<?php if(!empty($data['address'])): ?><?php echo htmlentities((string) $data['address']); ?><?php endif; ?>" />
            </div>
            <div class="am-form-group">
                <label><?php echo MyLang('common_service.user.form_item_integral'); ?></label>
                <input type="number" placeholder="<?php echo MyLang('common_service.user.form_item_integral'); ?>" name="integral" min="0" data-validation-message="<?php echo MyLang('common_service.user.form_item_integral_message'); ?>" class="am-radius" value="<?php if(!empty($data['integral'])): ?><?php echo htmlentities((string) $data['integral']); ?><?php endif; ?>" />
            </div>
            <div class="am-form-group">
                <label><?php echo MyLang('common_service.user.form_item_locking_integral'); ?></label>
                <input type="number" placeholder="<?php echo MyLang('common_service.user.form_item_locking_integral'); ?>" name="locking_integral" min="0" data-validation-message="<?php echo MyLang('common_service.user.form_item_locking_integral_message'); ?>" class="am-radius" value="<?php if(!empty($data['locking_integral'])): ?><?php echo htmlentities((string) $data['locking_integral']); ?><?php endif; ?>" />
            </div>
            <div class="am-form-group">
                <label><?php echo MyLang('common_service.user.form_item_birthday'); ?></label>
                <input type="text" name="birthday" class="am-radius Wdate" placeholder="<?php echo MyLang('common_service.user.form_item_birthday'); ?>" pattern="<?php echo MyConst('common_regex_date'); ?>" data-validation-message="<?php echo MyLang('common_service.user.form_item_birthday_message'); ?>" value="<?php if(!empty($data['birthday'])): ?><?php echo htmlentities((string) $data['birthday']); ?><?php endif; ?>" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd'})" />
            </div>
            <div class="am-form-group">
                <label><?php echo MyLang('common_service.user.form_item_referrer'); ?></label>
                <input type="number" placeholder="<?php echo MyLang('common_service.user.form_item_referrer'); ?>" name="referrer" data-validation-message="<?php echo MyLang('common_service.user.form_item_referrer_message'); ?>" min="0" class="am-radius" value="<?php if(!empty($data['referrer'])): ?><?php echo htmlentities((string) $data['referrer']); ?><?php endif; ?>" />
            </div>
            <div class="am-form-group">
                <label><?php echo MyLang('common_service.user.form_item_pwd'); ?><span class="am-form-group-label-tips"><?php echo MyLang('common_service.user.form_item_pwd_tips'); ?></span></label>
                <input type="text" placeholder="<?php echo MyLang('common_service.user.form_item_pwd'); ?>" name="pwd" pattern="<?php echo MyConst('common_regex_pwd'); ?>" data-validation-message="<?php echo MyLang('common_service.user.form_item_pwd_message'); ?>" class="am-radius" value="" />
            </div>
            <?php echo ModuleInclude('lib/gender'); ?>
            <?php echo ModuleInclude('lib/user_status'); ?>
            
            <!-- 插件扩展数据 start -->
            <?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
                <div class="plugins-tag">
                    <span>plugins_view_admin_user_save</span>
                </div>
            <?php endif; if(!empty($plugins_view_admin_user_save_data) and is_array($plugins_view_admin_user_save_data)): ?>
                <div class="plugins-view-save-container">
                    <label class="am-text-sm am-text-danger"><?php echo MyLang('plugins_view_region_config_tips'); ?></label>
                    <div>
                        <?php foreach($plugins_view_admin_user_save_data as $hook): if(is_string($hook) or is_int($hook)): ?>
                                <?php echo $hook; ?>
                            <?php endif; ?>
                        <?php endforeach; ?>
                    </div>
                </div>
            <?php endif; ?>
            <!-- 插件扩展数据 end -->

            <div class="am-form-popup-submit">
                <input type="hidden" name="id" <?php if(!empty($data)): ?> value="<?php echo htmlentities((string) $data['id']); ?>"<?php endif; ?> />
                <button type="submit" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example" data-am-loading="{spinner: 'circle-o-notch', loadingText:'<?php echo MyLang('save_title'); ?>'}">
                    <i class="am-icon-save"></i>
                    <span><?php echo MyLang('save_title'); ?></span>
                </button>
            </div>
        </form>
        <!-- form end -->
	</div>
</div>
<!-- right content end  -->

<!-- footer start -->
<?php echo ModuleInclude('public/footer'); ?>