index.php 2.12 KB
<!DOCTYPE html>
<html>
<head>
<link rel="shortcut icon" href="favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>登录 -- YOHOOD!</title>
<meta name="Author" content="YOHO.CN" />
<?php $this->_css('index.css', array(
    SITE_CSS . '/common/bootstrap.min.css',
));?>

<style type="text/css">
      body {
        padding-top: 40px;
        padding-bottom: 40px;
        background-color: #f5f5f5;
      }

      .form-signin {
        max-width: 300px;
        padding: 19px 29px 29px;
        margin: 0 auto 20px;
        background-color: #fff;
        border: 1px solid #e5e5e5;
        -webkit-border-radius: 5px;
           -moz-border-radius: 5px;
                border-radius: 5px;
        -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
           -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
                box-shadow: 0 1px 2px rgba(0,0,0,.05);
      }
      .form-signin .form-signin-heading,
      .form-signin .checkbox {
        margin-bottom: 10px;
      }
      .form-signin input[type="text"],
      .form-signin input[type="password"] {
        font-size: 16px;
        height: auto;
        margin-bottom: 15px;
        padding: 7px 9px;
      }
      .error_login{
      	color: red;
        position: absolute;
        margin-top: 18px;
        margin-left: 10px;
      }

    </style>
</head>

<body style="padding-bottom: 40px;">
<div class="container">

      <form class="form-signin" method="post" action="<?php echo url('default/index')?>">
        <h2 class="form-signin-heading">Please sign in</h2>
        <input type="text" class="input-block-level" placeholder="Username" name="username" value="<?php echo $this->view->account['username'];?>">
        <input type="password" class="input-block-level" placeholder="Password" name="password" value="<?php echo $this->view->account['password'];?>">
        <button class="btn btn-large btn-primary" type="submit">Sign in</button>
        <?php if ($this->view->error):?>
        <span class="error_login">用户校验不通过,请确认您的账号和密码!</span>
        <?php endif ;?>
      </form>

    </div> <!-- /container -->
</body>
</html>