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

<!-- content start -->
<div class="account-pages">
	<div class="wrapper-page <?php if(empty($admin_login_ad_images)): ?>not-login-ad-images<?php endif; ?>">
        <div class="wrapper-page-content am-flex am-flex-justify-between">
            <?php if(!empty($admin_login_ad_images)): ?>
                <div class="wrapper-page-left am-flex-1 am-flex-width" style="background-image: url(<?php echo htmlentities((string) $admin_login_ad_images); ?>);">
                    <?php if(!empty($admin_login_logo)): ?>
                        <img src="<?php echo htmlentities((string) $admin_login_logo); ?>" width="154" />
                    <?php endif; ?>
                </div>
            <?php endif; ?>
            <div class="wrapper-page-right admin-login am-flex am-flex-col am-flex-items-center">
                <?php if(count($admin_login_type) > 0): if(count($admin_login_type) == 1): ?>
                        <div class="am-flex am-flex-col am-flex-items-center">
                            <p class="am-text-xl am-font-weight am-margin-bottom-xs"><?php echo MyLang('admin.login_welcome_title'); ?></p>
                            <p class="am-text-lg am-color-666"><?php echo MyLang('common.admin_browser_title'); ?></p>
                        </div>
                    <?php else: ?>
                        <img src="<?php echo htmlentities((string) $admin_login_logo); ?>" width="154" class="am-show-sm-only" />
                    <?php endif; ?>

                    <div data-am-widget="tabs" class="am-tabs am-tabs-border am-margin-bottom-0 am-margin-left-0 am-margin-right-0" data-am-tabs="{noSwipe: 1}">
                        <?php if(count($admin_login_type) > 1): ?>
                            <ul class="am-tabs-nav am-nav am-nav-tabs">
                                <?php if(in_array('username', $admin_login_type)): ?>
                                    <li class="am-active"><a href="[data-tab-panel-0]"><?php echo MyLang('admin.login_type_username_title'); ?></a></li>
                                <?php endif; if(in_array('sms', $admin_login_type)): ?>
                                    <li class="<?php if(!in_array('username', $admin_login_type) and !in_array('email', $admin_login_type)): ?>am-active<?php endif; ?>"><a href="[data-tab-panel-1]"><?php echo MyLang('admin.login_type_mobile_title'); ?></a></li>
                                <?php endif; if(in_array('email', $admin_login_type)): ?>
                                    <li class="<?php if(!in_array('username', $admin_login_type)): ?>am-active<?php endif; ?>"><a href="[data-tab-panel-2]"><?php echo MyLang('admin.login_type_email_title'); ?></a></li>
                                <?php endif; ?>
                            </ul>
                        <?php endif; ?>
                        <div class="am-tabs-bd">
                            <?php if(in_array('username', $admin_login_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('admin/admin/login'); ?>" request-type="ajax-url" request-value="<?php echo MyUrl('admin/index/index'); ?>">
                                        <div class="am-form-group">
                                            <input type="text" name="accounts" class="am-radius" placeholder="<?php echo MyLang('common_service.admin.form_item_username_placeholder'); ?>" pattern="<?php echo MyConst('common_regex_username'); ?>" data-validation-message="<?php echo MyLang('common_service.admin.form_item_username_message'); ?>" autocomplete="off" data-is-clearout="0" required />
                                        </div>
                                        <div class="am-form-group input-compose">
                                            <input type="password" name="pwd" class="am-radius eye" placeholder="<?php echo MyLang('common_service.admin.form_item_password_placeholder'); ?>" pattern="<?php echo MyConst('common_regex_pwd'); ?>" data-validation-message="<?php echo MyLang('common_service.admin.form_item_password_message'); ?>" autocomplete="off" data-is-clearout="0" required />
                                            <span class="am-input-group-btn eye">
                                                <button class="am-btn am-btn-default am-radius am-icon-eye eye-submit" type="button"></button>
                                            </span>
                                        </div>
    
                                        <?php if(MyC('admin_login_img_verify_state') == 1): ?>
                                            <div class="am-form-group input-compose">
                                                <input type="text" name="verify" class="am-radius" placeholder="<?php echo MyLang('form_verify_placeholder'); ?>" 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 verify-img">
                                                    <span class="am-btn am-radius am-padding-0 form-verify">
                                                        <img src="<?php echo MyUrl('admin/admin/adminverifyentry'); ?>" class="am-radius am-cursor-pointer" id="form-verify-img" onClick="this.src=this.src+'&'+Math.random();" />
                                                        <a href="javascript:;" class="form-verify-tips am-radius" onClick="document.getElementById('form-verify-img').src='<?php echo MyUrl('admin/admin/adminverifyentry'); ?>&'+Math.random();"><?php echo MyLang('form_images_verify_button_text'); ?></a>
                                                    </span>
                                                </span>
                                            </div>
                                        <?php endif; ?>
                                        <div class="am-form-group">
                                            <input type="hidden" name="type" value="username" />
                                            <button type="submit" class="am-btn am-btn-primary am-btn-block am-radius am-btn-xs am-btn-sub btn-loading-example" data-am-loading="{loadingText: '<?php echo MyLang('login_title'); ?>'}"><?php echo MyLang('login_title'); ?></button>
                                        </div>
                                    </form>
                                    <!-- form end -->
                                </div>
                            <?php endif; if(in_array('sms', $admin_login_type)): ?>
                                <div data-tab-panel-1 class="am-tab-panel <?php if(!in_array('username', $admin_login_type) and !in_array('email', $admin_login_type)): ?>am-active<?php endif; ?>">
                                    <!-- form start -->
                                    <form class="am-form form-validation-sms" method="post" action="<?php echo MyUrl('admin/admin/login'); ?>" request-type="ajax-url" request-value="<?php echo MyUrl('admin/index/index'); ?>">
                                        <div class="am-form-group">
                                            <input type="text" name="accounts" class="am-radius" placeholder="<?php echo MyLang('common_service.admin.form_item_mobile_placeholder'); ?>" pattern="<?php echo MyConst('common_regex_mobile'); ?>" data-validation-message="<?php echo MyLang('common_service.admin.form_item_mobile_message'); ?>" autocomplete="off" data-is-clearout="0" required />
                                        </div>
                                        <div class="am-form-group input-compose">
                                            <input type="number" name="verify" class="am-radius sms" placeholder="<?php echo MyLang('form_verify_placeholder'); ?>" min="0" 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 verify-sms">
                                                <button class="am-btn am-btn-default am-radius btn-loading-example verify-submit" type="button" data-am-loading="{spinner:'circle-o-notch', loadingText:'<?php echo MyLang('send_tips'); ?>'}" data-url="<?php echo MyUrl('admin/admin/loginverifysend'); ?>" 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>
                                        </div>
                                        <div class="am-form-group">
                                            <input type="hidden" name="type" value="sms" />
                                            <button type="submit" class="am-btn am-btn-primary am-btn-block am-radius am-btn-xs am-btn-sub btn-loading-example" data-am-loading="{loadingText: '<?php echo MyLang('login_title'); ?>'}"><?php echo MyLang('login_title'); ?></button>
                                        </div>
                                    </form>
                                    <!-- form end -->
                                </div>
                            <?php endif; if(in_array('email', $admin_login_type)): ?>
                                <div data-tab-panel-2 class="am-tab-panel <?php if(!in_array('username', $admin_login_type)): ?>am-active<?php endif; ?>">
                                    <!-- form start -->
                                    <form class="am-form form-validation-email" method="post" action="<?php echo MyUrl('admin/admin/login'); ?>" request-type="ajax-url" request-value="<?php echo MyUrl('admin/index/index'); ?>">
                                        <div class="am-form-group">
                                            <input type="email" name="accounts" class="am-radius" placeholder="<?php echo MyLang('common_service.admin.form_item_email_placeholder'); ?>" data-validation-message="<?php echo MyLang('common_service.admin.form_item_email_message'); ?>" autocomplete="off" data-is-clearout="0" required />
                                        </div>
                                        <div class="am-form-group input-compose">
                                            <input type="number" name="verify" class="am-radius email" placeholder="<?php echo MyLang('form_verify_placeholder'); ?>" min="0" 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 verify-email">
                                                <button class="am-btn am-btn-default am-radius btn-loading-example verify-submit" type="button" data-am-loading="{spinner:'circle-o-notch', loadingText:'<?php echo MyLang('send_tips'); ?>'}" data-url="<?php echo MyUrl('admin/admin/loginverifysend'); ?>" 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>
                                        </div>
                                        <div class="am-form-group">
                                            <input type="hidden" name="type" value="email" />
                                            <button type="submit" class="am-btn am-btn-primary am-btn-block am-radius am-btn-xs am-btn-sub btn-loading-example" data-am-loading="{loadingText: '<?php echo MyLang('login_title'); ?>'}"><?php echo MyLang('login_title'); ?></button>
                                        </div>
                                    </form>
                                    <!-- form end -->
                                </div>
                            <?php endif; ?>
                            <div class="am-padding-horizontal-lg am-nbfc am-text-right forgot_pwd">
                                <a href="javascript:;" class="text-muted" data-am-popover="{theme: 'sm', content: '<?php echo MyLang('admin.form_forget_password_tips'); ?>', trigger: 'hover focus'}"><?php echo MyLang('admin.form_forget_password_name'); ?></a>
                            </div>
                        </div>
                    </div>
                <?php else: ?>
                    <div class="am-text-center am-padding-vertical-lg register-close">
                        <i class="am-icon-warning"></i>
                        <span><?php echo MyLang('admin.login_close_tips'); ?></span>
                    </div>
                <?php endif; ?>
            </div>
        </div>
	</div>
</div>
<!-- content end -->

<?php if(MyC('common_img_verify_state') == 1): ?>
    <!-- verify win start -->
    <div class="am-modal am-modal-no-btn" tabindex="-1" id="verify-win">
        <div class="am-modal-dialog am-radius">
            <div class="am-modal-hd">
                <a href="javascript:;" class="am-close" data-am-modal-close>&times;</a>
            </div>
            <div class="am-modal-bd">
                <div class="base am-form-group input-compose">
                    <input type="text" placeholder="<?php echo MyLang('form_images_verify_title'); ?>" minlength="4" maxlength="4" id="verify-img-value" data-is-clearout="0" data-validation-message="<?php echo MyLang('form_images_verify_message'); ?>" class="am-form-field am-radius" />
                    <div class="am-input-group-btn verify-img">
                        <img src="" class="am-radius am-cursor-pointer" id="verify-img" onClick="this.src='<?php echo MyUrl('admin/admin/adminverifyentry'); ?>&'+Math.random();" />
                        <a href="javascript:;" class="verify-tips" onClick="document.getElementById('verify-img').src='<?php echo MyUrl('admin/admin/adminverifyentry'); ?>&'+Math.random();"><?php echo MyLang('form_images_verify_button_text'); ?></a>
                    </div>
                </div>
                <div>
                    <button type="button" class="am-btn am-btn-primary am-radius am-btn-xs block m-t-20 btn-loading-example verify-submit-win" data-am-loading="{spinner:'circle-o-notch', loadingText:'<?php echo MyLang('confirm_title'); ?>'}" data-win="1">
                        <i class="am-icon-check"></i>
                        <span><?php echo MyLang('confirm_title'); ?></span>
                    </button>
                </div>
            </div>
        </div>
    </div>
    <!-- verify win end -->
<?php endif; ?>

<!-- 随机背景图片 -->
<?php if(MyC('admin_login_info_bg_images_rand') == 1 and !empty($bg_images_list) and is_array($bg_images_list)): ?>
    <div class="bg-slides">
        <?php foreach($bg_images_list as $k=>$v): if(!empty($v)): ?>
                <div class="bg-slides-item" style="background-image:url('<?php echo htmlentities((string) $v); ?>');<?php if($k != 0): ?>display:none;<?php endif; ?>"></div>
            <?php endif; ?>
        <?php endforeach; ?>
    </div>
<?php endif; ?>

<!-- 插件扩展数据 start -->
<?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
    <div class="plugins-tag">
        <span>plugins_view_admin_login_info</span>
    </div>
<?php endif; if(!empty($plugins_view_admin_login_info_data) and is_array($plugins_view_admin_login_info_data)): foreach($plugins_view_admin_login_info_data as $hook): if(is_string($hook) or is_int($hook)): ?>
            <?php echo $hook; ?>
        <?php endif; ?>
    <?php endforeach; ?>
<?php endif; ?>
		
<!-- footer -->
<?php echo ModuleInclude('public/footer'); ?>