<?php /*a:1:{s:63:"D:\phpstudy\WWW\12xz\app\admin\view/default\users\saveinfo.html";i:1785766854;}*/ ?>
<?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/users/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/users/save'); ?>" method="POST" request-type="ajax-url" request-value="<?php echo MyUrl('admin/users/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="user_photo" 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['user_photo'])): ?>
                                <i class="iconfont icon-add"></i>
                            <?php else: ?>
                                <input type="text" name="avatar" value="<?php echo htmlentities((string) $data['user_photo']); ?>" />
                                <img src="<?php echo htmlentities((string) $data['user_photo']); ?>" />
                                <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="login_name" 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['login_name'])): ?><?php echo htmlentities((string) $data['login_name']); ?><?php endif; ?>" />
            </div>
            <div class="am-form-group">
                <label><?php echo MyLang('common_service.user.form_item_nickname'); ?></label>
                <input type="text" name="user_name" 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['user_name'])): ?><?php echo htmlentities((string) $data['user_name']); ?><?php endif; ?>" />
            </div>
            <div class="am-form-group">
                <label><?php echo MyLang('common_service.user.form_item_mobile'); ?></label>
                <input type="text" name="user_phone" 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['user_phone'])): ?><?php echo htmlentities((string) $data['user_phone']); ?><?php endif; ?>" />
            </div>
            <div class="am-form-group">
                <label><?php echo MyLang('common_service.user.form_item_email'); ?></label>
                <input type="email" name="user_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['user_email'])): ?><?php echo htmlentities((string) $data['user_email']); ?><?php endif; ?>" />
            </div>
            <div class="am-form-group">
                <label><?php echo MyLang('common_service.user.form_item_birthday'); ?></label>
                <input type="text" name="brithday" 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['brithday'])): ?><?php echo htmlentities((string) $data['brithday']); ?><?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_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="login_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>
            <div class="am-form-group">
                <label>支付密码<span class="am-form-group-label-tips">输入则修改支付密码</span></label>
                <input type="text" placeholder="支付密码" name="pay_pwd" pattern="<?php echo MyConst('common_regex_pwd'); ?>" data-validation-message="密码格式6~18个字符之间" 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_users_save</span>
                </div>
            <?php endif; if(!empty($plugins_view_admin_users_save_data) and is_array($plugins_view_admin_users_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_users_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'); ?>