<?php /*a:1:{s:65:"D:\phpstudy\WWW\12xz\app\index\view/default\user\reg_content.html";i:1782629701;}*/ ?>
<div class="am-tabs am-margin-0 am-tabs-border user-form-content-container user-register-content-container" data-am-tabs="{noSwipe: 1}">
    <ul class="am-tabs-nav am-nav am-nav-tabs user-entrance-tabs">
        <?php if(in_array('username', $home_user_reg_type)): ?>
            <li class="am-active"><a href="[data-tab-panel-0]"><?php echo MyLang('user.register_type_username_title'); ?></a></li>
        <?php endif; if(in_array('sms', $home_user_reg_type)): ?>
            <li class="<?php if(!in_array('username', $home_user_reg_type)): ?>am-active<?php endif; ?>"><a href="[data-tab-panel-1]"><?php echo MyLang('user.register_type_mobile_title'); ?></a></li>
        <?php endif; if(in_array('email', $home_user_reg_type)): ?>
            <li class="<?php if(!in_array('username', $home_user_reg_type) and !in_array('sms', $home_user_reg_type)): ?>am-active<?php endif; ?>"><a href="[data-tab-panel-2]"><?php echo MyLang('user.register_type_email_title'); ?></a></li>
        <?php endif; ?>
    </ul>
    <div class="am-tabs-bd am-border-0">
        <?php if(in_array('username', $home_user_reg_type)): ?>
            <div data-tab-panel-0 class="am-tab-panel am-active">
                <!-- form start -->
                <form class="am-form form-validation-username" method="post" action="<?php echo MyUrl('index/user/reg'); ?>" request-type="ajax-fun" request-value="RegisterSuccessBack">
                    <div class="am-form-group am-form-group-refreshing am-form-input-material">
                        <input type="text" name="accounts" class="am-radius am-form-field" pattern="<?php echo MyConst('common_regex_username'); ?>" data-validation-message="<?php echo MyLang('user.form_item_username_message'); ?>" autocomplete="off" data-is-clearout="0" required />
                        <span class="am-material-bar"></span>
                        <label class="am-material-label"><?php echo MyLang('user.form_item_username'); ?></label>
                    </div>

                    <div class="am-form-group am-form-group-refreshing am-margin-top-main am-form-input-material">
                        <input type="password" name="pwd" class="am-radius am-form-field input-padding-right-max" pattern="<?php echo MyConst('common_regex_pwd'); ?>" data-validation-message="<?php echo MyLang('user.form_item_password_message'); ?>" autocomplete="new-password" data-is-clearout="0" required />
                        <span class="am-input-group-btn">
                            <button class="am-btn am-btn-default am-radius am-icon-eye eye-submit" type="button"></button>
                        </span>
                        <span class="am-material-bar"></span>
                            <label class="am-material-label"><?php echo MyLang('user.form_item_password'); ?></label>
                    </div>

                    <?php if(MyC('home_user_register_img_verify_state') == 1): ?>
                        <div class="am-form-group am-form-group-refreshing am-margin-top-main am-form-input-material">
                            <input type="text" name="verify" class="am-radius am-form-field" minlength="4" maxlength="4" data-validation-message="<?php echo MyLang('form_images_verify_message'); ?>" autocomplete="off" data-is-clearout="0" required />
                            <span class="am-input-group-btn am-position-verify">
                                <span class="form-verify">
                                    <img src="<?php echo MyUrl('index/user/userverifyentry', ['type'=>'user_reg']); ?>" class="am-cursor-pointer am-radius" id="form-verify-img" onClick="this.src=this.src+((<?php echo htmlentities((string) $url_model); ?> == 0) ? '&' : '?')+Math.random();" />
                                    <a href="javascript:;" class="form-verify-tips am-radius" onClick="document.getElementById('form-verify-img').src='<?php echo MyUrl('index/user/userverifyentry', ['type'=>'user_reg']); if($url_model == 0): ?>&<?php else: ?>?<?php endif; ?>'+Math.random();"><?php echo MyLang('form_images_verify_button_text'); ?></a>
                                </span>
                            </span>
                            <span class="am-material-bar"></span>
                            <label class="am-material-label"><?php echo MyLang('form_verify_title'); ?></label>
                        </div>
                    <?php endif; if(MyC('home_is_enable_userregister_agreement') == 1): ?>
                        <div class="agreement am-margin-top-main">
                            <label class="am-checkbox am-success am-cursor-pointer">
                                <input type="checkbox" value="1" name="is_agree_agreement" data-validation-message="<?php echo MyLang('user.form_item_agreement_message'); ?>" data-am-ucheck autocomplete="off" data-is-clearout="0" required /> <?php echo MyLang('user.form_item_agreement'); ?>
                            </label>
                            <a href="<?php echo MyUrl('index/agreement/index', ['document'=>'userregister']); ?>" target="_blank" rel="noopener noreferrer"><?php echo MyLang('user.form_item_service'); ?></a>
                            <span><?php echo MyLang('and_title'); ?></span>
                            <a href="<?php echo MyUrl('index/agreement/index', ['document'=>'userprivacy']); ?>" target="_blank" rel="noopener noreferrer"><?php echo MyLang('user.form_item_privacy'); ?></a>
                        </div>
                    <?php endif; ?>
                    
                    <div class="am-form-group am-margin-top-main am-padding-0">
                        <input type="hidden" name="type" value="username" />
                        <button type="submit" class="am-btn am-btn-primary am-btn-block am-radius btn-loading-example" data-am-loading="{loadingText: '<?php echo MyLang('processing_tips'); ?>'}"><?php echo MyLang('register_title'); ?></button>
                    </div>
                </form>
                <!-- form end -->
            </div>
        <?php endif; if(in_array('sms', $home_user_reg_type)): ?>
            <div data-tab-panel-1 class="am-tab-panel <?php if(!in_array('username', $home_user_reg_type)): ?>am-active<?php endif; ?>">
                <!-- form start -->
                <form class="am-form form-validation-sms" method="post" action="<?php echo MyUrl('index/user/reg'); ?>" request-type="ajax-fun" request-value="RegisterSuccessBack">
                    <div class="am-form-group am-form-group-refreshing am-form-input-material">
                        <input type="text" name="accounts" class="am-radius am-form-field" pattern="<?php echo MyConst('common_regex_mobile'); ?>" data-validation-message="<?php echo MyLang('user.form_item_mobile_message'); ?>" autocomplete="off" data-is-clearout="0" required />
                        <span class="am-material-bar"></span>
                        <label class="am-material-label"><?php echo MyLang('user.form_item_mobile'); ?></label>
                    </div>

                    <div class="am-form-group am-form-group-refreshing am-margin-top-main am-form-input-material">
                        <input type="number" name="verify" class="am-radius am-form-field input-padding-right-max" minlength="4" maxlength="4" data-validation-message="<?php echo MyLang('form_verify_message'); ?>" autocomplete="off" data-is-clearout="0" required />
                        <span class="am-input-group-btn am-position-verify-sms">
                            <button class="am-btn am-text-sm btn-loading-example user-verify-submit" type="button" data-am-loading="{spinner:'circle-o-notch', loadingText:'<?php echo MyLang('send_tips'); ?>'}" data-url="<?php echo MyUrl('index/user/regverifysend'); ?>" data-verify="<?php echo MyC('common_img_verify_state'); ?>" data-text="<?php echo MyLang('form_verify_button_text'); ?>" data-send-text="<?php echo MyLang('form_verify_send_text'); ?>" data-time="<?php echo MyC('common_verify_interval_time', 30, true); ?>" data-form-tag="form.form-validation-sms"><?php echo MyLang('form_verify_button_text'); ?></button>
                        </span>
                        <span class="am-material-bar"></span>
                        <label class="am-material-label"><?php echo MyLang('form_verify_title'); ?></label>
                    </div>

                    <div class="am-form-group am-form-group-refreshing am-margin-top-main am-form-input-material">
                        <input type="password" name="pwd" class="am-radius am-form-field input-padding-right-max" pattern="<?php echo MyConst('common_regex_pwd'); ?>" data-validation-message="<?php echo MyLang('user.form_item_password_message'); ?>" autocomplete="new-password" data-is-clearout="0" required />
                        <span class="am-input-group-btn">
                            <button class="am-btn am-btn-default am-radius am-icon-eye eye-submit" type="button"></button>
                        </span>
                        <span class="am-material-bar"></span>
                        <label class="am-material-label"><?php echo MyLang('user.form_item_password'); ?></label>
                    </div>

                    <?php if(MyC('home_is_enable_userregister_agreement') == 1): ?>
                        <div class="agreement am-margin-top-main">
                            <label class="am-checkbox am-success am-cursor-pointer">
                                <input type="checkbox" value="1" name="is_agree_agreement" data-validation-message="<?php echo MyLang('user.form_item_agreement_message'); ?>" data-am-ucheck autocomplete="off" data-is-clearout="0" required /> <?php echo MyLang('user.form_item_agreement'); ?>
                            </label>
                            <a href="<?php echo MyUrl('index/agreement/index', ['document'=>'userregister']); ?>" target="_blank" rel="noopener noreferrer"><?php echo MyLang('user.form_item_service'); ?></a>
                            <span><?php echo MyLang('and_title'); ?></span>
                            <a href="<?php echo MyUrl('index/agreement/index', ['document'=>'userprivacy']); ?>" target="_blank" rel="noopener noreferrer"><?php echo MyLang('user.form_item_privacy'); ?></a>
                        </div>
                    <?php endif; ?>

                    <div class="am-form-group am-margin-top-main am-padding-0">
                        <input type="hidden" name="type" value="sms" />
                        <button type="submit" class="am-btn am-btn-primary am-btn-block am-radius btn-loading-example" data-am-loading="{loadingText: '<?php echo MyLang('processing_tips'); ?>'}"><?php echo MyLang('register_title'); ?></button>
                    </div>
                </form>
                <!-- form end -->
            </div>
        <?php endif; if(in_array('email', $home_user_reg_type)): ?>
            <div data-tab-panel-2 class="am-tab-panel <?php if(!in_array('username', $home_user_reg_type) and !in_array('sms', $home_user_reg_type)): ?>am-active<?php endif; ?>">
                <!-- form start -->
                <form class="am-form form-validation-email" method="post" action="<?php echo MyUrl('index/user/reg'); ?>" request-type="ajax-fun" request-value="RegisterSuccessBack">
                    <div class="am-form-group am-form-group-refreshing am-form-input-material">
                        <input type="email" name="accounts" class="am-radius am-form-field" data-validation-message="<?php echo MyLang('user.form_item_email_message'); ?>" autocomplete="off" data-is-clearout="0" required />
                        <span class="am-material-bar"></span>
                        <label class="am-material-label"><?php echo MyLang('user.form_item_email'); ?></label>
                    </div>

                    <div class="am-form-group am-form-group-refreshing am-margin-top-main am-form-input-material">
                        <input type="number" name="verify" class="am-radius am-form-field input-padding-right-max" minlength="4" maxlength="4" data-validation-message="<?php echo MyLang('form_verify_message'); ?>" autocomplete="off" data-is-clearout="0" required />
                        <span class="am-input-group-btn am-position-verify-sms">
                            <button class="am-btn am-text-sm btn-loading-example user-verify-submit" type="button" data-am-loading="{spinner:'circle-o-notch', loadingText:'<?php echo MyLang('send_tips'); ?>'}" data-url="<?php echo MyUrl('index/user/regverifysend'); ?>" data-verify="<?php echo MyC('common_img_verify_state'); ?>" data-text="<?php echo MyLang('form_verify_button_text'); ?>" data-send-text="<?php echo MyLang('form_verify_send_text'); ?>" data-time="<?php echo MyC('common_verify_interval_time', 30, true); ?>" data-form-tag="form.form-validation-email"><?php echo MyLang('form_verify_button_text'); ?></button>
                        </span>
                        <span class="am-material-bar"></span>
                        <label class="am-material-label"><?php echo MyLang('form_verify_title'); ?></label>
                    </div>

                    <div class="am-form-group am-form-group-refreshing am-margin-top-main am-form-input-material">
                        <input type="password" name="pwd" class="am-radius am-form-field input-padding-right-max" pattern="<?php echo MyConst('common_regex_pwd'); ?>" data-validation-message="<?php echo MyLang('user.form_item_password_message'); ?>" autocomplete="new-password" data-is-clearout="0" required />
                        <span class="am-input-group-btn">
                            <button class="am-btn am-btn-default am-radius am-icon-eye eye-submit" type="button"></button>
                        </span>
                        <span class="am-material-bar"></span>
                        <label class="am-material-label"><?php echo MyLang('user.form_item_password'); ?></label>
                    </div>

                    <?php if(MyC('home_is_enable_userregister_agreement') == 1): ?>
                        <div class="agreement am-margin-top-main">
                            <label class="am-checkbox am-success am-cursor-pointer">
                                <input type="checkbox" value="1" name="is_agree_agreement" data-validation-message="<?php echo MyLang('user.form_item_agreement_message'); ?>" data-am-ucheck autocomplete="off" data-is-clearout="0" required /> <?php echo MyLang('user.form_item_agreement'); ?>
                            </label>
                            <a href="<?php echo MyUrl('index/agreement/index', ['document'=>'userregister']); ?>" target="_blank" rel="noopener noreferrer"><?php echo MyLang('user.form_item_service'); ?></a>
                            <span><?php echo MyLang('and_title'); ?></span>
                            <a href="<?php echo MyUrl('index/agreement/index', ['document'=>'userprivacy']); ?>" target="_blank" rel="noopener noreferrer"><?php echo MyLang('user.form_item_privacy'); ?></a>
                        </div>
                    <?php endif; ?>

                    <div class="am-form-group am-margin-top-main am-padding-0">
                        <input type="hidden" name="type" value="email" />
                        <button type="submit" class="am-btn am-btn-primary am-btn-block am-radius btn-loading-example" data-am-loading="{loadingText: '<?php echo MyLang('processing_tips'); ?>'}"><?php echo MyLang('register_title'); ?></button>
                    </div>
                </form>
                <!-- form end -->
            </div>
        <?php endif; ?>
    </div>

    <!-- 底部内容 -->
    <div class="bottom-container am-padding-horizontal-lg am-padding-top-xs am-padding-bottom-sm am-nbfc">
        <div class="am-padding-horizontal-sm am-margin-bottom-sm am-nbfc">
            <!-- 用户注册页面内底部钩子 -->
            <?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
                <div class="plugins-tag">
                    <span>plugins_view_user_reg_info_inside_bottom</span>
                </div>
            <?php endif; if(!empty($plugins_view_user_reg_info_inside_bottom_data) and is_array($plugins_view_user_reg_info_inside_bottom_data)): foreach($plugins_view_user_reg_info_inside_bottom_data as $hook): if(is_string($hook) or is_int($hook)): ?>
                        <?php echo $hook; ?>
                    <?php endif; ?>
                <?php endforeach; ?>
            <?php endif; ?>
        </div>
        <div class="am-padding-horizontal-sm am-padding-vertical-xs am-margin-bottom-sm am-nbfc">
            <!-- 用户注册页面内登录底部钩子 -->
            <div class="bottom-content">
                <?php if(!empty($home_user_login_type)): ?>
                    <span><?php echo MyLang('user.register_top_login_tips'); ?></span>
                    <a href="<?php echo MyUrl('index/user/logininfo'); ?>" class="am-btn-xs am-color-main"><?php echo MyLang('user.login_ahora_login_title'); ?></a>
                <?php endif; ?>

                <!-- 用户登录内注册底部钩子 -->
                <?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
                    <div class="plugins-tag">
                        <span>plugins_view_user_login_inside_reg_bottom</span>
                    </div>
                <?php endif; if(!empty($plugins_view_user_login_inside_reg_bottom_data) and is_array($plugins_view_user_login_inside_reg_bottom_data)): foreach($plugins_view_user_login_inside_reg_bottom_data as $hook): if(is_string($hook) or is_int($hook)): ?>
                            <?php echo $hook; ?>
                        <?php endif; ?>
                    <?php endforeach; ?>
                <?php endif; ?>
            </div>
        </div>
    </div>
</div>