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

<!-- right content start  -->
<div class="content-right">
	<div class="content">
        <!-- nav start -->
        <?php echo ModuleInclude('public/nav_switch_tabs', [
            'nav_data'  => $nav_data,
            'nav_type'  => $type,
            'url'       => 'admin/email/index'
        ]); ?>
        <!-- nav end -->	
        <!-- form start -->
        <form class="am-form form-validation am-form-popup-sticky" action="<?php echo MyUrl('admin/email/save'); ?>" method="POST" request-type="ajax-view" request-value="<?php echo MyUrl('admin/email/index', ['type'=>'message']); ?>">
            <div class="nav-content rich-text">
                <!-- table tips start -->
                <?php echo ModuleInclude('email/tips'); ?>
                <!-- table tips end -->
                <!-- 后台 -->
                <p class="am-margin-bottom-xl am-text-sm am-color-333"><?php echo MyLang('email.base_item_admin_title'); ?></p>
                <div class="am-form-group">
                    <label><?php echo htmlentities((string) $data['admin_email_login_template']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['admin_email_login_template']['describe']); ?></span></label>
                    <textarea id="admin_email_login_template" name="<?php echo htmlentities((string) $data['admin_email_login_template']['only_tag']); ?>"><?php if(!empty($data)): ?><?php echo htmlentities((string) $data['admin_email_login_template']['value']); ?><?php endif; ?></textarea>
                </div>

                <!-- 前端 -->
                <p class="am-margin-bottom-xl am-text-sm am-color-333"><?php echo MyLang('email.base_item_index_title'); ?></p>
                <div class="am-form-group">
                    <label><?php echo htmlentities((string) $data['common_email_currency_template']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_email_currency_template']['describe']); ?></span></label>
                    <textarea id="common_email_currency_template" name="<?php echo htmlentities((string) $data['common_email_currency_template']['only_tag']); ?>"><?php if(!empty($data)): ?><?php echo htmlentities((string) $data['common_email_currency_template']['value']); ?><?php endif; ?></textarea>
                </div>
                <div class="am-form-group">
                    <label><?php echo htmlentities((string) $data['home_email_login_template']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['home_email_login_template']['describe']); ?></span></label>
                    <textarea id="home_email_login_template" name="<?php echo htmlentities((string) $data['home_email_login_template']['only_tag']); ?>"><?php if(!empty($data)): ?><?php echo htmlentities((string) $data['home_email_login_template']['value']); ?><?php endif; ?></textarea>
                </div>
                <div class="am-form-group">
                    <label><?php echo htmlentities((string) $data['home_email_user_reg_template']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['home_email_user_reg_template']['describe']); ?></span></label>
                    <textarea id="email_user_reg" name="<?php echo htmlentities((string) $data['home_email_user_reg_template']['only_tag']); ?>"><?php if(!empty($data)): ?><?php echo htmlentities((string) $data['home_email_user_reg_template']['value']); ?><?php endif; ?></textarea>
                </div>
                <div class="am-form-group">
                    <label><?php echo htmlentities((string) $data['home_email_user_forget_pwd_template']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['home_email_user_forget_pwd_template']['describe']); ?></span></label>
                    <textarea id="email_user_forget_pwd" name="<?php echo htmlentities((string) $data['home_email_user_forget_pwd_template']['only_tag']); ?>"><?php if(!empty($data)): ?><?php echo htmlentities((string) $data['home_email_user_forget_pwd_template']['value']); ?><?php endif; ?></textarea>
                </div>
                <div class="am-form-group">
                    <label><?php echo htmlentities((string) $data['home_email_user_email_binding_template']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['home_email_user_email_binding_template']['describe']); ?></span></label>
                    <textarea id="email_user_email_binding" name="<?php echo htmlentities((string) $data['home_email_user_email_binding_template']['only_tag']); ?>"><?php if(!empty($data)): ?><?php echo htmlentities((string) $data['home_email_user_email_binding_template']['value']); ?><?php endif; ?></textarea>
                </div>
            </div>
            <div class="am-form-popup-submit">
                <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'); ?>