index.php
2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!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('admin.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>