<?php $data['manage/auth.set']=Dever::load('manage/auth.set') ?>


<!DOCTYPE html>
<!--power by dever--><html>
<head>
  <?php require Dever::config("base")->data . 'compile/content/manage/layadmin/inc/head.cmp.php' ?>
  <link rel="stylesheet" href="<?php echo Dever::config("host")->script ?>lib/layui/admin/style/login.css" media="all">
</head>
<body>

  <div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login">
    <form action="<?php  echo Dever::url("auth.login") ?>" method="post" target="f1" class="form-horizontal m-t-20" id="login">
    <input type="hidden" name="function" id="function" value="msg">
    <input type="hidden" name="refer" id="refer" value="<?php echo $data['manage/auth.set']['refer'] ?>">
    <iframe id="f1" name="f1" style="display:none;"></iframe>
    <div class="layadmin-user-login-main">
      <div class="layadmin-user-login-box layadmin-user-login-header">
        <h2 id="name"><?php  echo Dever::load("manage/auth.config#title") ?></h2>
      </div>
      <div class="layadmin-user-login-box layadmin-user-login-body layui-form">
        <div class="layui-form-item">
          <label class="layadmin-user-login-icon layui-icon layui-icon-username" for="LAY-user-login-username"></label>
          <input type="text" name="username" id="username" lay-verify="required" placeholder="账号" class="layui-input">
        </div>
        <div class="layui-form-item">
          <label class="layadmin-user-login-icon layui-icon layui-icon-password" for="LAY-user-login-password"></label>
          <input name="password" id="password" type="password" lay-verify="required" placeholder="密码" class="layui-input">
        </div>
        <div class="layui-form-item">
          <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="LAY-user-login-submit">登 入</button>
        </div>
      </div>
    </div>
    
    <div class="layui-trans layadmin-user-login-footer">
      <p id="footer" style="<?php if(!(Dever::config("base")->copyright)): ?>display:none;<?php endif; ?>"><?php  echo Dever::config("base")->copyright ?></p>
    </div>
    
    <div class="ladmin-user-login-theme" style="display:none;">
      <script type="text/html" template>
        <ul>
          <li data-theme=""><img src="{{ layui.setter.base }}style/res/bg-none.jpg"></li>
          <li data-theme="#03152A" style="background-color: #03152A;"></li>
          <li data-theme="#2E241B" style="background-color: #2E241B;"></li>
          <li data-theme="#50314F" style="background-color: #50314F;"></li>
          <li data-theme="#344058" style="background-color: #344058;"></li>
          <li data-theme="#20222A" style="background-color: #20222A;"></li>
        </ul>
      </script>
    </div>
    </form> 
  </div>

  <?php require Dever::config("base")->data . 'compile/content/manage/layadmin/inc/script.cmp.php' ?>
  <script>
  $(function()
  {
    $("#login").bind("keydown",function(e){
      var theEvent = e || window.event;    
      var code = theEvent.keyCode || theEvent.which || theEvent.charCode;    
      if (code == 13) {    
              $("#login").submit();
          }
     });
  });

  </script>
  <script>
  layui.config({
    base: '<?php echo Dever::config("host")->script ?>lib/layui/admin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'user'], function(){
    var $ = layui.$
    ,setter = layui.setter
    ,admin = layui.admin
  });
  </script>
</body>
</html>