<?php
/**
 * The login mobile view file of user module of ZDOO.
 *
 * @copyright   Copyright 2009-2016 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Hao Sun <sunhao@cnezsoft.com>
 * @package     user 
 * @version     $Id: login.html.php 3633 2016-02-23 09:21:34Z daitingting $
 * @link        http://www.zdoo.com
 */
?>

<?php
$bodyClass = 'with-nav-top';
include '../../common/view/m.header.lite.html.php';
js::import($webRoot . 'js/md5.js');
js::set('scriptName', $_SERVER['SCRIPT_NAME']);
js::set('random', $this->session->random);
?>

<nav class='affix dock-top nav justify-center lang-menu'>
  <?php foreach($config->langs as $key => $value):?>
    <a data-value='<?php echo $key; ?>'<?php if($key === $this->app->getClientLang()) echo ' class="active"' ?>><?php echo $value;?></a>
  <?php endforeach;?>
</nav>

<div class='page with-nav-top'>
  <div id='login' class='column fluid-v no-margin flex-nowrap'>
    <div class='cell-4' id='loginLogo'>
      <div class='tile flex-center flex article'>
        <img src='<?php echo $webRoot . 'mobile/img/logo.png' ?>' alt='<?php echo $lang->zdoo;?>'>
      </div>
    </div>
    <div class='cell-5'>
      <div class='tile flex-center flex flex-column'>
        <form method='post' id='loginForm'>
          <div class='control box danger form-message hide-empty'></div>
          <div class='control has-label-left fluid'>
            <input autofocus id='account' name='account' type='text' class='input' placeholder='<?php echo $lang->user->inputAccount;?>'>
            <label for='account' title='<?php echo $lang->user->account;?>'><i class='icon icon-user'></i></label>
            <p class='help-text'></p>
          </div>
          <div class='control has-label-left fluid'>
            <input id='password' name='password' type='password' class='input' placeholder='<?php echo $lang->user->password;?>'>
            <label for='password' title='<?php echo $lang->user->password;?>'><i class='icon icon-lock'></i></label>
            <p class='help-text'></p>
          </div>
          <div class='control'>
            <div class='checkbox pull-right block'>
              <input type='checkbox' name='keepLogin' value='on'>
              <label for='keepLogin'><?php echo $lang->user->keepLogin;?></label>
            </div>
          </div>
          <div class='control'>
            <button type='submit' class='btn rounded block fluid primary'><?php echo $lang->login;?></button>
          </div>
        </form>
      </div>
    </div>
    <div class='cell-3'>
      <div class='text-center fluid has-padding affix dock-bottom'><?php echo (!empty($config->company->name) ? $config->company->name : $lang->zdoo) . $lang->zdooTitle;?></div>
    </div>
  </div>
</div>

<?php include '../../common/view/m.footer.html.php';?>
