[344] | 1 | <?php
|
---|
| 2 | $base_url = base_url();
|
---|
| 3 | $this->load->view('layout/admin/header', array('base_url' => $base_url));
|
---|
| 4 | $this->load->view('layout/admin/sidebar', array('base_url' => $base_url));
|
---|
| 5 | ?>
|
---|
| 6 | <div class="main-content">
|
---|
| 7 | <div class="breadcrumbs" id="breadcrumbs">
|
---|
| 8 | <script type="text/javascript">
|
---|
| 9 | try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
|
---|
| 10 | </script>
|
---|
| 11 |
|
---|
| 12 | <ul class="breadcrumb">
|
---|
| 13 | <li>
|
---|
| 14 | <i class="icon-home home-icon"></i>
|
---|
| 15 | <a href="#">Trang chá»§</a>
|
---|
| 16 | </li>
|
---|
| 17 |
|
---|
| 18 | <li>
|
---|
| 19 | <a href="#">Quản lÜ tà i khoản</a>
|
---|
| 20 | </li>
|
---|
| 21 | <li class="active">Quản trỠviên</li>
|
---|
| 22 | </ul><!-- .breadcrumb -->
|
---|
| 23 |
|
---|
| 24 | <div class="nav-search" id="nav-search">
|
---|
| 25 | <form class="form-search">
|
---|
| 26 | <span class="input-icon">
|
---|
| 27 | <input type="text" placeholder="Tìm kiếm ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
|
---|
| 28 | <i class="icon-search nav-search-icon"></i>
|
---|
| 29 | </span>
|
---|
| 30 | </form>
|
---|
| 31 | </div><!-- #nav-search -->
|
---|
| 32 | </div>
|
---|
| 33 |
|
---|
| 34 | <div class="page-content">
|
---|
| 35 | <div class="page-header">
|
---|
| 36 | <h1>
|
---|
| 37 | Quản trỠviên
|
---|
| 38 | <small>
|
---|
| 39 | <i class="icon-double-angle-right"></i>
|
---|
| 40 | Danh sách
|
---|
| 41 | </small>
|
---|
| 42 | </h1>
|
---|
| 43 | </div><!-- /.page-header -->
|
---|
| 44 |
|
---|
| 45 | <script src="<?php echo $base_url;?>assets/js/jquery-2.0.3.min.js"></script>
|
---|
| 46 | <script src="<?php echo $base_url;?>assets/js/jquery.dataTables.min.js"></script>
|
---|
| 47 | <script src="<?php echo $base_url;?>assets/js/jquery.dataTables.bootstrap.js"></script>
|
---|
| 48 | <script type="text/javascript">
|
---|
| 49 |
|
---|
| 50 | jQuery(function($) {
|
---|
| 51 | var oTable1 = $('#sample-table-2').dataTable( {
|
---|
| 52 | "aoColumns": [
|
---|
| 53 | { "bSortable": false },
|
---|
| 54 | null, null,null, null, null,
|
---|
| 55 | { "bSortable": false }
|
---|
| 56 | ] } );
|
---|
| 57 |
|
---|
| 58 |
|
---|
| 59 | $('table th input:checkbox').on('click' , function(){
|
---|
| 60 | var that = this;
|
---|
| 61 | $(this).closest('table').find('tr > td:first-child input:checkbox')
|
---|
| 62 | .each(function(){
|
---|
| 63 | this.checked = that.checked;
|
---|
| 64 | $(this).closest('tr').toggleClass('selected');
|
---|
| 65 | });
|
---|
| 66 |
|
---|
| 67 | });
|
---|
| 68 |
|
---|
| 69 | });
|
---|
| 70 | </script>
|
---|
| 71 | <div class="row">
|
---|
| 72 | <div class="col-xs-12">
|
---|
| 73 | <!-- PAGE CONTENT BEGINS -->
|
---|
| 74 | <div class="table-header" style="padding-bottom:4px">
|
---|
| 75 | Thá»ng kê tà i khoản
|
---|
| 76 |
|
---|
| 77 | <button class="btn btn-success pull-right" data-toggle="modal" href="#addUser">
|
---|
| 78 | <i class="icon-plus"></i>
|
---|
| 79 | Thêm quản trỠviên
|
---|
| 80 | </button>
|
---|
| 81 |
|
---|
| 82 | </div>
|
---|
| 83 |
|
---|
| 84 | <div class="table-responsive">
|
---|
| 85 | <table id="sample-table-2" class="table table-striped table-bordered table-hover">
|
---|
| 86 | <thead>
|
---|
| 87 | <tr>
|
---|
| 88 | <th class="center">
|
---|
| 89 | <label>
|
---|
| 90 | <input type="checkbox" class="ace" />
|
---|
| 91 | <span class="lbl"></span>
|
---|
| 92 | </label>
|
---|
| 93 | </th>
|
---|
| 94 | <th>Sá» Äiá»n thoại</th>
|
---|
| 95 | <th>HỠtên</th>
|
---|
| 96 | <th class="hidden-480">Tên ÄÄng nháºp</th>
|
---|
| 97 | <th>
|
---|
| 98 |
|
---|
| 99 | <i class="icon-time bigger-110 hidden-480"></i>
|
---|
| 100 | Ngà y ÄÄng kÜ
|
---|
| 101 | </th>
|
---|
| 102 | <th class="hidden-480">Trạng thái</th>
|
---|
| 103 |
|
---|
| 104 | <th></th>
|
---|
| 105 | </tr>
|
---|
| 106 | </thead>
|
---|
| 107 |
|
---|
| 108 | <tbody>
|
---|
| 109 | <?php foreach ($data as $key=>$value):?>
|
---|
| 110 | <tr>
|
---|
| 111 | <td class="center">
|
---|
| 112 | <label>
|
---|
| 113 | <input type="checkbox" class="ace" />
|
---|
| 114 | <span class="lbl"></span>
|
---|
| 115 | </label>
|
---|
| 116 | </td>
|
---|
| 117 |
|
---|
| 118 | <td>
|
---|
| 119 | <a href="#"><?php echo $value->phone; ?></a>
|
---|
| 120 | </td>
|
---|
| 121 | <td><?php echo $value->full_name; ?></td>
|
---|
| 122 | <td class="hidden-480"><?php echo $value->login_name; ?></td>
|
---|
| 123 | <td><?php echo $value->created_time; ?></td>
|
---|
| 124 |
|
---|
| 125 | <td class="hidden-480">
|
---|
| 126 | <span class="label label-sm label-success">KÃch hoạt</span>
|
---|
| 127 | </td>
|
---|
| 128 |
|
---|
| 129 | <td>
|
---|
| 130 | <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
|
---|
| 131 | <a class="blue" href="#">
|
---|
| 132 | <i class="icon-zoom-in bigger-130"></i>
|
---|
| 133 | </a>
|
---|
| 134 | <a class="green" data-admin-id="<?php echo $key; ?>" data-toggle="modal" href="#editAdmin">
|
---|
| 135 | <!--a class="green" href="#"-->
|
---|
| 136 | <i class="icon-pencil bigger-130"></i>
|
---|
| 137 | <!--/a-->
|
---|
| 138 | </a>
|
---|
| 139 |
|
---|
| 140 | <a class="red" href="#">
|
---|
| 141 | <i class="icon-trash bigger-130"></i>
|
---|
| 142 | </a>
|
---|
| 143 | </div>
|
---|
| 144 |
|
---|
| 145 | <div class="visible-xs visible-sm hidden-md hidden-lg">
|
---|
| 146 | <div class="inline position-relative">
|
---|
| 147 | <button class="btn btn-minier btn-yellow dropdown-toggle" data-toggle="dropdown">
|
---|
| 148 | <i class="icon-caret-down icon-only bigger-120"></i>
|
---|
| 149 | </button>
|
---|
| 150 |
|
---|
| 151 | <ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
|
---|
| 152 | <li>
|
---|
| 153 | <a href="#" class="tooltip-info" data-rel="tooltip" title="View">
|
---|
| 154 | <span class="blue">
|
---|
| 155 | <i class="icon-zoom-in bigger-120"></i>
|
---|
| 156 | </span>
|
---|
| 157 | </a>
|
---|
| 158 | </li>
|
---|
| 159 |
|
---|
| 160 | <li>
|
---|
| 161 | <button class="btn btn-edit pull-right" data-toggle="modal" href="#addUser">
|
---|
| 162 | <!--a href="#" class="tooltip-success" data-rel="tooltip" title="Edit"-->
|
---|
| 163 | <span class="green">
|
---|
| 164 | <i class="icon-edit bigger-120"></i>
|
---|
| 165 | </span>
|
---|
| 166 | <!--/a-->
|
---|
| 167 | </button>
|
---|
| 168 | </li>
|
---|
| 169 |
|
---|
| 170 | <li>
|
---|
| 171 | <a href="#" class="tooltip-error" data-rel="tooltip" title="Delete">
|
---|
| 172 | <span class="red">
|
---|
| 173 | <i class="icon-trash bigger-120"></i>
|
---|
| 174 | </span>
|
---|
| 175 | </a>
|
---|
| 176 | </li>
|
---|
| 177 | </ul>
|
---|
| 178 | </div>
|
---|
| 179 | </div>
|
---|
| 180 | </td>
|
---|
| 181 | </tr>
|
---|
| 182 |
|
---|
| 183 | <?php endforeach; ?>
|
---|
| 184 | </tbody>
|
---|
| 185 | </table>
|
---|
| 186 | </div>
|
---|
| 187 | <div tabindex="-1" class="modal fade in" id="editAdmin">
|
---|
| 188 | <div class="modal-dialog">
|
---|
| 189 | <div class="modal-content">
|
---|
| 190 | <div class="modal-header no-padding">
|
---|
| 191 | <div class="table-header">
|
---|
| 192 | <button aria-hidden="true" data-dismiss="modal" class="close" type="button">
|
---|
| 193 | <span class="white">Ã</span>
|
---|
| 194 | </button>
|
---|
| 195 | Sá»a quản trá» viên
|
---|
| 196 | </div>
|
---|
| 197 | </div>
|
---|
| 198 |
|
---|
| 199 | <div class="modal-body">
|
---|
| 200 | <form role="form" class="form-horizontal">
|
---|
| 201 | <div class="form-group">
|
---|
| 202 | <label for="form-field-1" class="col-sm-3 control-label no-padding-right"> Tà i khoản </label>
|
---|
| 203 | <div class="col-sm-9">
|
---|
| 204 | <span class="input-icon">
|
---|
| 205 | <input type="text" name="username" placeholder="Tà i khoản" id="form-field-1" value="">
|
---|
| 206 | <i class="icon-user blue"></i>
|
---|
| 207 | </span>
|
---|
| 208 | </div>
|
---|
| 209 | <label class="block clearfix has-error">
|
---|
| 210 | <div class="help-block"> </div>
|
---|
| 211 | </label>
|
---|
| 212 |
|
---|
| 213 | </div>
|
---|
| 214 |
|
---|
| 215 | <div class="space-4"></div>
|
---|
| 216 | <div class="clearfix form-actions">
|
---|
| 217 | <div class="col-md-offset-3 col-md-9">
|
---|
| 218 | <button type="button" name="submit" class="btn btn-info">
|
---|
| 219 | <i class="icon-ok bigger-110"></i>
|
---|
| 220 | Hoà n tất
|
---|
| 221 | </button>
|
---|
| 222 |
|
---|
| 223 |
|
---|
| 224 | <button type="reset" name="reset" class="btn">
|
---|
| 225 | <i class="icon-undo bigger-110"></i>
|
---|
| 226 | Xóa hết
|
---|
| 227 | </button>
|
---|
| 228 | </div>
|
---|
| 229 | </div>
|
---|
| 230 | </form>
|
---|
| 231 | </div>
|
---|
| 232 | </div>
|
---|
| 233 | </div>
|
---|
| 234 | </div>
|
---|
| 235 | <script>
|
---|
| 236 | $('#editAdmin').on('show.bs.modal', function(e) {
|
---|
| 237 | //get data-id attribute of the clicked element
|
---|
| 238 | var index = parseInt($(e.relatedTarget).data('admin-id'));
|
---|
| 239 | //populate the textbox
|
---|
| 240 | //var data = <?php echo json_encode($data); ?>;
|
---|
| 241 | $(e.currentTarget).find('input[name="username"]').val();
|
---|
| 242 | });
|
---|
| 243 | </script>
|
---|
| 244 |
|
---|
| 245 | <div tabindex="-1" class="modal fade in" id="addUser">
|
---|
| 246 | <div class="modal-dialog">
|
---|
| 247 | <div class="modal-content">
|
---|
| 248 | <div class="modal-header no-padding">
|
---|
| 249 | <div class="table-header">
|
---|
| 250 | <button aria-hidden="true" data-dismiss="modal" class="close" type="button">
|
---|
| 251 | <span class="white">Ã</span>
|
---|
| 252 | </button>
|
---|
| 253 | Tạo quản trỠviên
|
---|
| 254 | </div>
|
---|
| 255 | </div>
|
---|
| 256 |
|
---|
| 257 | <div class="modal-body">
|
---|
| 258 | <form role="form" class="form-horizontal">
|
---|
| 259 | <div class="form-group">
|
---|
| 260 | <label for="form-field-1" class="col-sm-3 control-label no-padding-right"> Tà i khoản </label>
|
---|
| 261 |
|
---|
| 262 | <div class="col-sm-9">
|
---|
| 263 | <span class="input-icon">
|
---|
| 264 | <input type="text" name="username" placeholder="Tà i khoản" id="form-field-1">
|
---|
| 265 | <i class="icon-user blue"></i>
|
---|
| 266 | </span>
|
---|
| 267 | </div>
|
---|
| 268 | <label class="block clearfix has-error">
|
---|
| 269 | <div class="help-block"> </div>
|
---|
| 270 | </label>
|
---|
| 271 |
|
---|
| 272 | </div>
|
---|
| 273 |
|
---|
| 274 | <div class="space-4"></div>
|
---|
| 275 |
|
---|
| 276 | <div class="form-group">
|
---|
| 277 | <label for="form-field-2" class="col-sm-3 control-label no-padding-right"> Máºt khẩu </label>
|
---|
| 278 |
|
---|
| 279 | <div class="col-sm-9">
|
---|
| 280 | <span class="input-icon">
|
---|
| 281 | <input type="password" name="password" placeholder="Máºt khẩu" id="form-field-2">
|
---|
| 282 | <i class="icon-lock blue"></i>
|
---|
| 283 | </span>
|
---|
| 284 | </div>
|
---|
| 285 | <label class="block clearfix has-error">
|
---|
| 286 | <div class="help-block"> </div>
|
---|
| 287 | </label>
|
---|
| 288 | </div>
|
---|
| 289 |
|
---|
| 290 | <div class="space-4"></div>
|
---|
| 291 |
|
---|
| 292 | <div class="form-group">
|
---|
| 293 | <label for="form-field-1" class="col-sm-3 control-label no-padding-right"> HỠtên </label>
|
---|
| 294 |
|
---|
| 295 | <div class="col-sm-9">
|
---|
| 296 | <span class="input-icon">
|
---|
| 297 | <input type="text" name="fullname" placeholder="HỠtên" id="form-field-1">
|
---|
| 298 | <i class="icon-user blue"></i>
|
---|
| 299 | </span>
|
---|
| 300 | </div>
|
---|
| 301 | <div class="help-block"> </div>
|
---|
| 302 | </div>
|
---|
| 303 |
|
---|
| 304 | <div class="space-4"></div>
|
---|
| 305 |
|
---|
| 306 | <div class="form-group">
|
---|
| 307 | <label for="form-field-1" class="col-sm-3 control-label no-padding-right"> Email </label>
|
---|
| 308 |
|
---|
| 309 | <div class="col-sm-9">
|
---|
| 310 | <span class="input-icon">
|
---|
| 311 | <input type="text" name="email" placeholder="Email" id="form-field-1">
|
---|
| 312 | <i class="icon-envelope blue"></i>
|
---|
| 313 | </span>
|
---|
| 314 | </div>
|
---|
| 315 | <div class="help-block"> </div>
|
---|
| 316 | </div>
|
---|
| 317 |
|
---|
| 318 | <div class="space-4"></div>
|
---|
| 319 |
|
---|
| 320 | <div class="form-group">
|
---|
| 321 | <label for="form-field-1" class="col-sm-3 control-label no-padding-right"> Phone </label>
|
---|
| 322 |
|
---|
| 323 | <div class="col-sm-9">
|
---|
| 324 | <span class="input-icon">
|
---|
| 325 | <input type="text" name="phone" placeholder="Phone" id="form-field-1">
|
---|
| 326 | <i class="icon-phone blue"></i>
|
---|
| 327 | </span>
|
---|
| 328 | </div>
|
---|
| 329 | <div class="help-block"> </div>
|
---|
| 330 | </div>
|
---|
| 331 |
|
---|
| 332 | <div class="space-4"></div>
|
---|
| 333 |
|
---|
| 334 | <div class="clearfix form-actions">
|
---|
| 335 | <div class="col-md-offset-3 col-md-9">
|
---|
| 336 | <button type="button" name="submit" class="btn btn-info">
|
---|
| 337 | <i class="icon-ok bigger-110"></i>
|
---|
| 338 | Hoà n tất
|
---|
| 339 | </button>
|
---|
| 340 |
|
---|
| 341 |
|
---|
| 342 | <button type="reset" name="reset" class="btn">
|
---|
| 343 | <i class="icon-undo bigger-110"></i>
|
---|
| 344 | Xóa hết
|
---|
| 345 | </button>
|
---|
| 346 | </div>
|
---|
| 347 | </div>
|
---|
| 348 |
|
---|
| 349 | </div>
|
---|
| 350 | </form>
|
---|
| 351 | </div>
|
---|
| 352 | </div><!-- /.modal-content -->
|
---|
| 353 | </div><!-- /.modal-dialog -->
|
---|
| 354 | </div>
|
---|
| 355 |
|
---|
| 356 | <!-- PAGE CONTENT ENDS -->
|
---|
| 357 | </div><!-- /.col -->
|
---|
| 358 | </div><!-- /.row -->
|
---|
| 359 | </div><!-- /.page-content -->
|
---|
| 360 | </div><!-- /.main-content -->
|
---|
| 361 |
|
---|
| 362 | </div><!-- /.main-container-inner -->
|
---|
| 363 |
|
---|
| 364 | <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
|
---|
| 365 | <i class="icon-double-angle-up icon-only bigger-110"></i>
|
---|
| 366 | </a>
|
---|
| 367 | </div><!-- /.main-container -->
|
---|
| 368 | <?php
|
---|
| 369 | $this->load->view('layout/admin/footer', array('base_url' => $base_url));
|
---|
| 370 | ?> |
---|