source: pro-violet-viettel/sourcecode/application/modules/frontend/views/home.php @ 325

Last change on this file since 325 was 325, checked in by namnd, 11 years ago
File size: 7.2 KB
RevLine 
[325]1<?php $base_url = base_url();?>
[294]2<!DOCTYPE html>
3<html lang="en">
4        <head>
5                <meta charset="utf-8" />
[322]6                <title>SBG Online</title>
[294]7
8                <meta name="description" content="User login page" />
9                <meta name="viewport" content="width=device-width, initial-scale=1.0" />
10
11                <!-- basic styles -->
[325]12                <link href="<?php echo $base_url; ?>assets/css/bootstrap.min.css" rel="stylesheet" />
13                <link rel="stylesheet" href="<?php echo $base_url; ?>assets/css/font-awesome.min.css" />
[294]14
[325]15                <link rel="stylesheet" href="<?php echo $base_url; ?>assets/css/ace-fonts.css" />
[294]16
17                <!-- ace styles -->
18
[325]19                <link rel="stylesheet" href="<?php echo $base_url; ?>assets/css/ace.min.css" />
20                <link rel="stylesheet" href="<?php echo $base_url; ?>assets/css/ace-rtl.min.css" />
[294]21
22                <!--[if lte IE 8]>
23                  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
24                <![endif]-->
25
26                <!-- inline styles related to this page -->
27
28                <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
29
30                <!--[if lt IE 9]>
31                <script src="assets/js/html5shiv.js"></script>
32                <script src="assets/js/respond.min.js"></script>
33                <![endif]-->
34        </head>
35
36        <body class="login-layout">
[322]37                <div class="main-container no-margin">
[294]38                        <div class="main-content">
39                                <div class="row">
40                                        <div class="space-6"></div>
[322]41                                        <div class="col-md-8">
42                                                <div class="title-box col-md-8">
[325]43                                                        <img src="<?php echo $base_url; ?>assets/img/logo_soanbai_online_black.png" class="img-responsive">
[294]44                                                </div>
[322]45                                                <div class="title-box col-md-12">
46                                                        <!-- <h3>Dịch vụ lưu trữ trá»±c tuyến dữ liệu bài giảng cá»§a <a href="http://violet.vn">Violet.vn</a></h3> -->
[294]47                                                </div>
[322]48                                                <ul class="list-inline col-md-12">
[325]49                                                        <li><img src="<?php echo $base_url; ?>assets/img/logo_Violet.png" width="128" class="img-responsive"></li>
50                                                        <li><img src="<?php echo $base_url; ?>assets/img/logo_viettel.png" width="128" class="img-responsive"></li>
[322]51                                                </ul>
[294]52                                        </div>
[322]53                                        <div class="col-md-4">
[294]54                                                <div class="login-container">
55                                                        <div class="position-relative">
56                                                                <div id="login-box" class="login-box visible widget-box no-border" style="background: transparent">
57                                                                        <div class="widget-body" style="background:transparent">
58                                                                                <div class="widget-main" style="background:transparent">
59                                                                                        <h4 class="header blue lighter bigger">
60                                                                                                <i class="icon-cloud-upload green"></i>
[322]61                                                                                                VIOLET SPACE | <small><a href="#" data-toggle="modal" data-target="#modal-signup">Đăng kÜ</a></small>
[294]62                                                                                        </h4>
63
[325]64                                                                                        <form action="<?php echo $base_url; ?>frontend/home/signin" id="validation-form" method="POST">
[294]65                                                                                                <fieldset>
66                                                                                                        <label class="block clearfix has-error">
[325]67                                                                                                                <div class="help-block">
68                                                                                                                <?php
69                                                                                                                        if($this->session->flashdata('login_error')){
70                                                                                                                                echo 'ThÃŽng tin đăng nhập khÃŽng chính xác!';
71                                                                                                                        }
72                                                                                                                        if($this->session->flashdata('login_error_token')){
73                                                                                                                                echo 'Sai token!';
74                                                                                                                        }
75                                                                                                                ?>
76                                                                                                                </div>
77                                                                                                        </label>
78                                                                                                        <label class="block clearfix has-error">
[294]79                                                                                                                <span class="block input-icon input-icon-right">
[322]80                                                                                                                        <input type="text" class="form-control" name="account" placeholder="Tài khoản | Số điện thoại" />
[294]81                                                                                                                        <i class="icon-user"></i>
82                                                                                                                </span>
[322]83                                                                                                                <div class="help-block"></div>
[294]84                                                                                                        </label>
85
86                                                                                                        <label class="block clearfix">
87                                                                                                                <span class="block input-icon input-icon-right">
88                                                                                                                        <input type="password" class="form-control" name="password" placeholder="Mật khẩu" />
89                                                                                                                        <i class="icon-lock"></i>
[322]90                                                                                                                </span>
91                                                                                                                <div class="help-block"> </div>
[294]92                                                                                                        </label>
[322]93
94                                                                                                        <div class="space"></div>
95
[294]96                                                                                                        <div class="clearfix">
97                                                                                                                <label class="inline">
[325]98                                                                                                                        <input type="checkbox" name="remember_me" class="ace" />
[294]99                                                                                                                        <span class="lbl"> Ghi nhớ</span>
100                                                                                                                </label>
101
[325]102                                                                                                                <!--a href="index-user.html" title=""-->
[310]103                                                                                                                        <button type="submit" name="submit" id="login-button" class="pull-right btn btn-sm btn-primary">
[294]104                                                                                                                                <i class="icon-key"></i>
105                                                                                                                                Đăng nhập
106                                                                                                                        </button>
[325]107                                                                                                                <!--/a-->
[294]108                                                                                                        </div>
109
110                                                                                                        <div class="space-4"></div>
111                                                                                                </fieldset>
112                                                                                        </form>
113                                                                                </div><!-- /widget-main -->
114                                                                        </div><!-- /widget-body -->
115                                                                </div><!-- /login-box -->
116
117                                                        </div><!-- /position-relative -->
118                                                </div>
119                                        </div><!-- /.col -->
120                                </div><!-- /.row -->
121
122                        </div>
123                </div><!-- /.main-container -->
124
[322]125                <div class="modal fade" id="modal-signup" tabindex="-1" role="dialog"aria-hidden="true">
[294]126                  <div class="modal-dialog">
127                    <div class="modal-content">
128                      <div class="modal-header">
129                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
[322]130                        <h4 class="modal-title">Đăng kÜ tài khoản</h4>
[294]131                      </div>
132                      <div class="modal-body">
[322]133                        <div class="alert alert-block alert-success">                                           
134                                                        <p>
135                                                                Để đăng kÜ tài khoản tài khoản Violet Space
136                                                        </p>
[294]137                                                        <strong>
[322]138                                                                <i class="icon-commnet"></i>
139                                                                Soạn tin: SBG DK gá»­i 8162
[294]140                                                        </strong>
141                                                </div>
142                      </div>
143                    </div>
144                  </div>
145                </div>
146                <!-- basic scripts -->
147
148                <!--[if !IE]> -->
149
150                <script type="text/javascript">
[325]151                        window.jQuery || document.write("<script src='<?php echo $base_url; ?>assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
[294]152                </script>
[325]153                <script src="<?php echo $base_url; ?>assets/js/bootstrap.min.js"></script>
154                <script src="<?php echo $base_url; ?>assets/js/jquery.validate.min.js"></script>
[294]155
[325]156                <script src="<?php echo $base_url; ?>assets/js/ace-elements.min.js"></script>
157                <script src="<?php echo $base_url; ?>assets/js/ace.min.js"></script>
[294]158                <!-- <![endif]-->
159
160                <!--[if IE]>
161<script type="text/javascript">
162 window.jQuery || document.write("<script src='assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
163</script>
164<![endif]-->
165
166                <script type="text/javascript">
[325]167                        if("ontouchend" in document) document.write("<script src='<?php echo $base_url; ?>assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
[294]168                </script>
169
170                <!-- inline scripts related to this page -->
171
172                <script type="text/javascript">
173                        function show_box(id) {
174                         jQuery('.widget-box.visible').removeClass('visible');
175                         jQuery('#'+id).addClass('visible');
176                        }
177
178                        $('#register-button').click(function(){
179                                        $('#modal-login').modal('show')
180                        })
181
182                        $('#validation-form').validate({
183                                errorElement: 'label',
184                                errorClass: 'help-block',
185                                focusInvalid: true,
186                                rules: {
187                                        password: {
188                                                required: true,
189                                        },
190                                        account: {
191                                                required: true
192                                        }
193                                },
194               
195                                messages: {
196                                        account: {
[322]197                                                required: "Vui lòng nhập tài khoản hoặc số điện thoại",
[294]198                                        },
199                                        password: {
[322]200                                                required: "Vui lòng nhập mật khẩu.",
[294]201                                        }
202                                },
203
204                                highlight: function (e) {
205                                        $(e).closest('label').removeClass('has-info').addClass('has-error');
206                                },
207               
208                                success: function (e) {
209                                        $(e).closest('label').removeClass('has-error').addClass('has-info');
210                                        $(e).remove();
211                                },
212                        });
213                </script>
214        </body>
215</html>
Note: See TracBrowser for help on using the repository browser.