 <?php /** @var $l \OCP\IL10N */ ?>
<?php
vendor_script('jsTimezoneDetect/jstz');
script('core', 'merged-login');
/*先锋授权登陆js 加入判断
if($_['registration_app']['auth_login']==1){
    script('registration', 'xfsdk');
    script('registration', 'config');
}*/
use OC\Core\Controller\XfplayLoginController;
?>
<header id="header" style="height: 92px;">
    <div class="header-left" style="height: 52px;">
			<span id="xfhead">
                            <h1 class="xflogo"><?php p($l->t('先锋云')); ?></h1>
			</span>
                    <?php if($_['step']=='showErweima'){?>
                    <span class="xftitle"> |  </span>
                    <span class="xftitle"><?php p($l->t('扫码登陆')); ?></span>
                    <?php } ?>
                    
		</div>
 
    <div class="header-right xfhead-right" style="height: 52px;">
			<span id="header-primary-action" class="topbtn">
				<a href="/xflogin" class=" ">
					<span>   <?php p($l->t('登录')); ?></span>
				</a>
			</span>
                        <span  class="topbtn"> | </span>
			<span id="header-primary-register" class="topbtn">
				<a href="/xfreg" class=" ">
					<span>   <?php p($l->t('注册')); ?></span>
				</a>
			</span>  
		</div>
		 
	</header>
<!--adinfo  提示下载app的 广告-->
<div id="guideAdbox" style="position: absolute; top: 50px; width: 100%;height: 60px; background-color: #fff; color: #222;
     left: 0px;
     ">
    <div style="max-width: 470px; text-align: left;margin: 0 auto; display: flex; flex-direction: row; justify-content: flex-start; padding: 10px;">
        <div class="gimg" style="margin-right: 15px;">
            <img src="<?php p($_['plat']['logo'] ); ?>" style="border: #dadada 1px solid; border-radius: 5px; padding: 5px; width: 32px;"/>
        </div>
    <div class="desc">
        <p><strong>下载 <?php p($_['plat']['name'] ); ?></strong></p>
        <p> <?php p($_['plat']['desc'] ); ?> 
            <a href="<?php print_unescaped(\OCP\Util::sanitizeHTML($_['plat']['downUrl']))?>" target="_blank">
                <strong style="color:#1899eb">立即下载 ></strong> </a></p>
    </div>
    </div>
</div>
<!--adinfo  提示下载app的 广告-->
<div class="XFloginContent" style="background-image: url(/core/css/xficon/xflogin-bg.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 668px;">
    <div class="flexrow">
        
        <div class="authBox" style="height: 530px; width: 470px;">

            <h3 style="margin-top: 20px;"><?php p($l->t('扫码登录')); ?></h3>
           
            <p style="text-align: center; font-size: 18px;">
                <strong><?php p($_['other']['siteName'] ); ?> </strong> 
                <br/>
             <strong> <?php p($_['other']['siteUrl'] ); ?> </strong> 
            </p>
                   
       
            <!--扫码登陆--> 
            <form id="otherAppErweimaForm" class="authForm" method="post" name="erweimaLogin">
                <?php if (!empty($_['redirect_url'])) {
                    print_unescaped('<input type="hidden" name="redirect_url" value="' . \OCP\Util::sanitizeHTML($_['redirect_url']) . '">');
                } ?>
                <div class="login-title" style="margin-top: 0em;"> 
                    <p class="saoma"><i class="icon-saomass"></i> <!--扫一扫登录</p>
                            <p style="text-align:center;">-->打开<a href="#" class="openShowDn">
                            <span style="color:#3c89e9"><?php p($_['plat']['name'] ); ?></span> </a>，扫一扫登录</p> 
                </div> 
                   <div id="showDn" class="qrcodeBox hidden">
                  <div class="an_erwm_bg">
					<div class="an_ewm_close"><a href="#" class="closeShowDn">x</a></div>
					<div class="an_ewm_kg"><img src="<?php print_unescaped(\OCP\Util::sanitizeHTML($_['plat']['erweimaUrl']))?>"></div>
					<div class="sao_line">扫一扫二维码下载</div>
                                        <a href="<?php print_unescaped(\OCP\Util::sanitizeHTML($_['plat']['downUrl']))?>" class="an_down_erwm" target="_blank">
                                            <div class="pc_down_an">立即下载</div></a>
				</div>
		</div>
                
                <div id="erweima-box" class="erweima-form">
                    
                     <div class="erweima-warn erweimab hidden ">
                    <div class="icon"><i class="soc"></i></div>
                        <div class="notice">
                            <p><?php p($l->t('登录失败，刷新重试')); ?></p>
                        </div>
                    </div>
                    <div class="erweima-show erweimab">
                            <canvas class="avatar align-self-center" height="256" width="256"></canvas> 

                       </div>
                    <div class="erweima-refresh erweimab hidden">
                    <div class="icon"><i class="soc"></i></div>
                    <div class="notice">
                        <p> <?php p($l->t('已过期，刷新重试…')); ?></p>
                    </div>
                </div>
                
                <div class="erweima-confirm erweimab hidden">
                    <div class="icon"><i class="soc"></i></div>
                    <div class="notice">
                        <p><?php p($l->t('扫码成功')); ?></p>
                        <p><?php p($l->t('请在手机上确认登录')); ?></p>
                    </div>
                </div>
                
                <div class="erweima-success erweimab hidden">
                    <div class="icon"><i class="soc"></i></div>
                    <div class="notice">
                        <p><?php p($l->t('已确认')); ?></p>
                        <p><?php p($l->t('正在登录，请等待…')); ?></p>
                    </div>
                </div>
                </div>
                <fieldset id="fieldesPanel" class="buttons" style="margin-bottom: 1em;">
                            
                        <a class="button primary refresh-qrcode "> <?php p($l->t('二维码生成中…')); ?></a>                     
             
                   
                     </fieldset>
                <div class="appdown">
                    <p>还没有<a class="openShowDn" href="#" data-url="<?php print_unescaped(\OCP\Util::sanitizeHTML($_['plat']['downUrl']))?>">
                            <span style="color:#3c89e9"><?php p($_['plat']['name'] ); ?></span> ？点击这里下载</a></p>
                </div>
            </form>

        </div>
    </div>
    
 </div>

<footer role="contentinfo">
		  <p class="info">
              <?php p($l->t('版权所有')); ?> @copy 2005-<?php p(date('Y'));?> <?php p($l->t('零与壹软件.保留所有权利')); ?>
        </p>
		</footer>