<?php
use wap\assets\AppAsset;
use yii\helpers\Html;
use yii\helpers\Url;

/* @var $this \yii\web\View */
/* @var $content string */

$asset = AppAsset::register($this);
$this->registerJsFile($asset->baseUrl.'/js/login.js', ['depends' => [AppAsset::className()]]);
?>

<?php $this->beginPage() ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="<?= Yii::$app->charset ?>"/>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
        <meta name="description" content="">
        <meta name="author" content="">
        <?= Html::csrfMetaTags() ?>
        <title><?= Html::encode($this->title) ?></title>
        <?php $this->head() ?>

        <style>
            body {
                background: #f0feff;
                padding-top:0px;
            }
        </style>

    </head>
    <body>
        <?php $this->beginBody() ?>

        <div class="modal fade">
          <div class="modal-dialog modal-sm">
            <div class="modal-content">
              <div class="modal-body">
              </div>
            </div>
          </div>
        </div>      


        <img src="<?= $asset->baseUrl ?>/images/login_bg.jpg" class="img-responsive abs">
        
        <div class="header">
            <?php if(!empty($configs['wap_logo'])): ?><img width="250" height="50" src="<?= $configs['wap_logo'] ?>" class="logo"><?php endif; ?>
        </div>
        
        <div class="loginform">
            <form id="login-form">
                <div class="input-group"> <span class="input-group-addon"><i class="icon-user"></i></span>
                    <input type="text" name="LoginForm[username]" class="form-control input-lg" placeholder="用户名">
                </div>
                <div class="input-group"> <span class="input-group-addon"><i class="icon-key"></i></span>
                    <input type="password" name="LoginForm[password]" class="form-control input-lg" placeholder="密码">
                </div>
                <button type="button" data-login-url="<?= Url::to(['login']) ?>" class="btn btn-primary btn-lg login-btn">登  录</button>
                <input name="_csrf" type="hidden" value="<?= Yii::$app->request->getCsrfToken() ?>" />
                <input name="LoginForm[rememberMe]" type="hidden" value="1" />
            </form>
        </div>
        
        <div class="info"><?= (isset($configs['web_info'])) ? $configs['web_info'] : '' ?><br>版权所有©友博网络</div>


        <?php $this->endBody() ?>
    </body>
</html>
<?php $this->endPage() ?>
