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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?php
$username = array(
'name' => 'txtUsername',
'type' => 'text',
'value' => '',
'placeholder' => 'Nhập Username',
'autocomplete' => 'off',
'class' => 'form-control'
);
$password = array(
'name' => 'txtPassword',
'type' => 'password',
'value' => '',
'placeholder' => 'Nhập Password',
'autocomplete' => 'off',
'class' => 'form-control'
);
$buttonLogin = array(
'name' => 'btnLogin',
'type' => 'submit',
'class' => 'width-35 pull-right btn btn-sm btn-primary',
'style' => 'padding:4px 0px; width: 100% !important;',
'content' => '<i class="ace-icon fa fa-key"></i><span class="bigger-110">Đăng nhập</span>'
);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta http-equiv="refresh" content="1800" />
<meta charset="utf-8"/>
<title>Đăng nhập CMS</title>
<link rel="shortcut icon" href="<?php echo base_url() ?>images/favicon.png" sizes="24x24" type="image/png" />
<meta name="description" content="User login page"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
<!-- bootstrap & fontawesome -->
<link rel="stylesheet" href="<?php echo base_url('public/assets/css/bootstrap.min.css') ?>"/>
<link rel="stylesheet" href="<?php echo base_url('public/assets/font-awesome/4.2.0/css/font-awesome.min.css') ?>"/>
<!-- ace styles -->
<link rel="stylesheet" href="<?php echo base_url('public/assets/css/ace.min.css') ?>"/>
</head>
<body class="login-layout">
<div class="main-container">
<div class="main-content">
<div class="row">
<div class="col-sm-10 col-sm-offset-1">
<div class="login-container">
<div class="space-12"></div>
<div class="center"></div>
<div class="space-6"></div>
<div class="position-relative">
<div id="login-box" class="login-box visible widget-box no-border">
<div class="widget-body">
<div class="widget-main">
<h4 class="header blue lighter bigger" style="text-align: center">CMS for ADMIN</h4>
<div class="text-center">
<img src="<?php echo base_url('images/logo.png') ?>" style="height: 45px">
</div>
<div class="space-6"></div>
<?php
if($this->session->flashdata('loginErrorMsg')): ?>
<ul>
<li style="color: red">
<?php echo $this->session->flashdata('loginErrorMsg'); ?>
</li>
</ul>
<?php endif; ?>
<?php
echo validation_errors('<ul style="color: red">', '</ul>');
echo form_open(base_url('backend/account/index'));
?>
<fieldset>
<div>
<input type="hidden" name="client_ip" value="">
</div>
<label class="block clearfix">
<span class="block input-icon input-icon-right">
<?php echo form_input($username); ?>
<i class="ace-icon fa fa-user"></i>
</span>
</label>
<label class="block clearfix">
<span class="block input-icon input-icon-right">
<?php echo form_input($password); ?>
<i class="ace-icon fa fa-lock"></i>
</span>
</label>
<div class="space" style="clear: both"></div>
<div class="clearfix" style="text-align: center;">
<?php echo form_button($buttonLogin); ?>
</div>
<div class="space-4"></div>
</fieldset>
<?php echo form_close(); ?>
</div>
<!-- /.widget-main -->
</div>
<!-- /.widget-body -->
</div>
<div style="text-align: center"></div>
<!-- /.login-box -->
</div>
<!-- /.position-relative -->
</div>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.main-content -->
</div>
<!-- /.main-container -->
</body>
</html>