<?php if(!empty($_SESSION['user_login']) && !empty($_SESSION['id']) && !empty($_SESSION['nickname'])) header("location:?c=index")?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="protty">
    <meta name="keyword" content="">

    <title>Login</title>

    <!-- Bootstrap core CSS -->
    <link href="Delivery/css/min.css" rel="stylesheet">
    <link href="Delivery/css/bootstrap-reset.css" rel="stylesheet">
    <!--external css-->
    <link href="Delivery/css/font-awesome.css" rel="stylesheet" />
    <!-- Custom styles for this template -->
    <link href="Delivery/css/style.css" rel="stylesheet">
    <link href="Delivery/css/style-responsive.css" rel="stylesheet" />

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
    <!--[if lt IE 9]>
    <script src="Delivery/js/html5shiv.js"></script>
    <script src="Delivery/js/respond.min.js"></script>
    <![endif]-->
</head>

  <body class="login-body">

    <div class="container">

      <form class="form-signin" action="?c=login" method="post">
        <h2 class="form-signin-heading">登陆</h2>
        <div class="login-wrap">
            <input type="text" name="u" class="form-control" placeholder="用户名" autofocus>
            <input type="password" name="p" class="form-control" placeholder="密码">
            <input type="text" name="v" class="form-Bon" placeholder="验证码" style="width: 55%;"><img style="margin-left:10px;" title="点击刷新" src="Delivery/img/image.php" align="absbottom" onclick="this.src='Delivery/img/image.php?'+Math.random();"></img>
            <label class="checkbox">
                <input type="checkbox" value="remember-me"> 记住密码
                <span class="pull-right">
                    <a data-toggle="modal" href="#myModal"> 忘记密码?</a>

                </span>
            </label>
            <input name="login_submit" class="btn btn-lg btn-login btn-block" type="submit" value="登  陆">
          </form>
           

        </div>

          <!-- Modal -->
          <form class="form-signin" action="?c=forget" method="post">
          <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal" class="modal fade">
              <div class="modal-dialog">
                  <div class="modal-content">
                      <div class="modal-header">
                          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                          <h4 class="modal-title">找回密码</h4>
                      </div>
                      <div class="modal-body">
                          <p>请输入你当时安装程序时候填写的邮箱,系统会把密码发送给你!</p>
                          <input type="text" name="email" placeholder="请填写邮箱地址" autocomplete="off" class="form-control placeholder-no-fix">

                      </div>
                      <div class="modal-footer">
                          <button data-dismiss="modal" class="btn btn-default" type="button">取消</button>
                          <input name="sub_email" class="btn btn-success" type="submit" value="找回密码">
                      </div>
                  </div>
              </div>
          </div>
          </form>
          <!-- modal -->

     

    </div>



    <!-- js placed at the end of the document so the pages load faster -->
    <script src="Delivery/js/jq.js"></script>
    <script src="Delivery/js/min.js"></script>


  </body>
</html>
