[375] | 1 | <div id="breadcrumbs" class="breadcrumbs">
|
---|
| 2 |
|
---|
| 3 | <ul class="breadcrumb">
|
---|
| 4 | <li>
|
---|
| 5 | <i class="icon-home home-icon"></i>
|
---|
| 6 | <a href="#">Trang chá»§</a>
|
---|
| 7 | </li>
|
---|
| 8 |
|
---|
| 9 | <li>
|
---|
| 10 | <a href="#">Quản lÜ tà i khoản</a>
|
---|
| 11 | </li>
|
---|
| 12 | <li>
|
---|
| 13 | <a href="#">Ngưá»i dùng</a>
|
---|
| 14 | </li>
|
---|
| 15 | <li class="active">Danh sách</li>
|
---|
| 16 | </ul><!-- .breadcrumb -->
|
---|
| 17 |
|
---|
| 18 | <div id="nav-search" class="nav-search">
|
---|
| 19 | <form class="form-search">
|
---|
| 20 | <span class="input-icon">
|
---|
| 21 | <input type="text" autocomplete="off" id="nav-search-input" class="nav-search-input" placeholder="Tìm kiếm ...">
|
---|
| 22 | <i class="icon-search nav-search-icon"></i>
|
---|
| 23 | </span>
|
---|
| 24 | </form>
|
---|
| 25 | </div><!-- #nav-search -->
|
---|
| 26 | </div>
|
---|
| 27 | <div class="page-content">
|
---|
| 28 | <div class="page-header">
|
---|
| 29 | <h1>
|
---|
| 30 | Ngưá»i dùng
|
---|
| 31 | <small>
|
---|
| 32 | <i class="icon-double-angle-right"></i>
|
---|
| 33 | Danh sách
|
---|
| 34 | </small>
|
---|
| 35 | </h1>
|
---|
| 36 | </div><!-- /.page-header -->
|
---|
| 37 |
|
---|
| 38 | <div class="row">
|
---|
| 39 | <div class="col-xs-12">
|
---|
| 40 | <!-- PAGE CONTENT BEGINS -->
|
---|
| 41 | <div style="padding-bottom:4px" class="table-header">
|
---|
| 42 | Danh sách
|
---|
[590] | 43 | <!--button href="#addUser" data-toggle="modal" class="btn btn-success pull-right">
|
---|
[375] | 44 | <i class="icon-plus"></i>
|
---|
| 45 | Thêm ngưá»i dùng
|
---|
[590] | 46 | </button-->
|
---|
[883] | 47 | <div class="pull-right" style="margin:5px;">
|
---|
| 48 |
|
---|
[906] | 49 | <a style="color:#fff" href="<?php echo base_url();?>admin/user/export/<?php echo $current_page; ?>/<?php echo $perpage; ?>/<?php echo ($keyword)?$keyword:'default'; ?>/<?php echo $status; ?>/<?php echo ($province)?$province:'default'; ?>/<?php echo ($district)?$district:'default';?>/<?php echo ($date_start)?$date_start:'default'; ?>/<?php echo ($date_end)?$date_end:'default'; ?>/<?php echo $sorting_order; ?>/<?php echo $sorting_field;?>">Xuất ra Excel</a>
|
---|
[883] | 50 |
|
---|
| 51 | </div>
|
---|
[375] | 52 |
|
---|
| 53 | </div>
|
---|
| 54 |
|
---|
| 55 | <div class="table-responsive">
|
---|
| 56 | <div role="grid" class="dataTables_wrapper" id="sample-table-2_wrapper">
|
---|
| 57 | <form onsubmit="return false;" id="user" >
|
---|
| 58 | <div class="row">
|
---|
| 59 | <div class="col-sm-6">
|
---|
| 60 | <div id="sample-table-2_length" class="dataTables_length"><label>Hiá»n thá»
|
---|
[408] | 61 | <select onchange="filter();" name="items" size="1" aria-controls="sample-table-2">
|
---|
[375] | 62 | <?php foreach ($itemsoptions as $option) { ?>
|
---|
[728] | 63 | <option <?php if ($option == $perpage) echo "selected"; ?> value="<?php echo $option; ?>"><?php echo $option; ?></option>
|
---|
[375] | 64 | <?php } ?>
|
---|
| 65 | </select> bản ghi</label>
|
---|
| 66 |
|
---|
| 67 | </div>
|
---|
| 68 | </div>
|
---|
[728] | 69 |
|
---|
[375] | 70 | <div class="col-sm-6">
|
---|
| 71 | <div class="dataTables_filter" id="sample-table-2_filter">
|
---|
| 72 | <label>Tìm kiếm:
|
---|
[728] | 73 | <input type="text" name="keyword" id="keyword" value='<?php echo $keyword; ?>' style="width: 162px; height: 18px;" aria-controls="sample-table-2"></label>
|
---|
[375] | 74 | </div>
|
---|
[769] | 75 | <div class="dataTables_status" style="float: right;" id="sample-table-2_status"><label>Lá»c theo tình trạng:
|
---|
| 76 | <select onchange="filter();" name="status" size="1" style="width: 176px; height: 28px;">
|
---|
| 77 | <?php foreach ($statusoptions as $key => $option): ?>
|
---|
| 78 | <option <?php if ($key == $status) echo "selected"; ?> value="<?php echo $key; ?>"><?php echo $option; ?></option>
|
---|
| 79 | <?php endforeach; ?>
|
---|
| 80 | </select>
|
---|
[728] | 81 | </div>
|
---|
[769] | 82 | <div style="clear: both;"></div>
|
---|
[883] | 83 | <div class="dataTables_province" style="float: right;" id="sample-table-2_status"><label>Lá»c theo Tá»nh/TP:
|
---|
| 84 | <select onchange="filter();" name="province" class="form-field-province" size="1" style="width: 176px; height: 28px;">
|
---|
[906] | 85 | <option value=''>Tất cả</option>
|
---|
[883] | 86 |
|
---|
[769] | 87 | <?php foreach ($provinces as $key => $pro): ?>
|
---|
[883] | 88 | <option <?php if ($key == $province) echo "selected"; ?> value="<?php echo $key; ?>"><?php echo $pro; ?></option>
|
---|
[769] | 89 | <?php endforeach; ?>
|
---|
| 90 | </select>
|
---|
| 91 | </div>
|
---|
| 92 |
|
---|
[883] | 93 | <div class="dataTables_district" style="float: right;" id="sample-table-2_status"><label>Lá»c theo Quáºn/Huyá»n:
|
---|
| 94 | <select onchange="filter();" name="district" id="form-field-district" class="form-field-district" size="1" style="width: 176px; height: 28px;">
|
---|
| 95 | <?php if ($districts):?>
|
---|
[906] | 96 | <option value=''>Tất cả</option>
|
---|
[883] | 97 | <?php foreach ($districts as $key => $dist): ?>
|
---|
| 98 | <option <?php if ($dist['district_id'] == $district) echo "selected"; ?> value="<?php echo $dist['district_id']; ?>"><?php echo $dist['district_name']; ?></option>
|
---|
| 99 | <?php endforeach; ?>
|
---|
| 100 | <?php endif;?>
|
---|
| 101 | </select>
|
---|
| 102 | </div>
|
---|
| 103 |
|
---|
[728] | 104 | <div style="clear: both;"></div>
|
---|
| 105 | <div id="daterangepicker" class="selectbox pull-right">
|
---|
| 106 | <i class="icon-calendar"></i>
|
---|
| 107 | <input id="daterange" type="text" name="daterange" class="daterangepicker" style="background: #ffffff; width: 176px; height: 28px; position: inherit;">
|
---|
| 108 | </div>
|
---|
[414] | 109 | </div>
|
---|
[728] | 110 | </div>
|
---|
[883] | 111 | <input type="hidden" name="sorting_order" id="sorting_order" value="<?php echo $sorting_order; ?>" />
|
---|
| 112 | <input type="hidden" name="sorting_field" id="sorting_field" value="<?php echo $sorting_field; ?>"/>
|
---|
[728] | 113 | </div>
|
---|
| 114 |
|
---|
| 115 | </form>
|
---|
| 116 | <!-- Table Content -->
|
---|
| 117 | <center><div id="loading" style="display:none;"><img src="<?php echo base_url(); ?>/assets/img/loading.gif"/></div></center>
|
---|
| 118 | <div id="table_content">
|
---|
[375] | 119 | <table class="table table-striped table-bordered table-hover dataTable" id="sample-table-2" aria-describedby="sample-table-2_info">
|
---|
| 120 | <thead>
|
---|
| 121 | <tr role="row">
|
---|
[883] | 122 | <!--<th class="center sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 44px;" aria-label="">
|
---|
[375] | 123 | <label>
|
---|
| 124 | <input type="checkbox" class="ace">
|
---|
| 125 | <span class="lbl"></span>
|
---|
| 126 | </label>
|
---|
[883] | 127 | </th>-->
|
---|
[728] | 128 | <th class="<?php
|
---|
| 129 | if ($sorting_field == 'cellphone') {
|
---|
| 130 | echo $sorting_order;
|
---|
| 131 | } else {
|
---|
| 132 | echo "sorting";
|
---|
| 133 | }
|
---|
[767] | 134 | ?>" id="cellphone" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;" aria-label="Tà i khoản: activate to sort column ascending">Sá» Äiá»n thoại</th>
|
---|
[883] | 135 | <th style="width: 156px;">HỠtên</th>
|
---|
[769] | 136 |
|
---|
[728] | 137 | <th class="<?php
|
---|
| 138 | if ($sorting_field == 'acc_balanced') {
|
---|
| 139 | echo $sorting_order;
|
---|
| 140 | } else {
|
---|
| 141 | echo "sorting";
|
---|
| 142 | }
|
---|
| 143 | ?>" id="acc_balanced" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;" aria-label="Tiá»n: activate to sort column ascending">Tà i khoản (VNÄ)</th>
|
---|
[767] | 144 | <th class="<?php
|
---|
[728] | 145 | if ($sorting_field == 'created_time') {
|
---|
| 146 | echo $sorting_order;
|
---|
| 147 | } else {
|
---|
| 148 | echo "sorting";
|
---|
| 149 | }
|
---|
| 150 | ?>" id="created_time" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;" aria-label="Ngà y ÄÄng kÜ: activate to sort column ascending">
|
---|
[375] | 151 | <i class="icon-time bigger-110 hidden-480"></i>
|
---|
| 152 | Ngà y ÄÄng kÜ
|
---|
| 153 | </th>
|
---|
[728] | 154 | <th class="<?php
|
---|
| 155 | if ($sorting_field == 'expire_date') {
|
---|
| 156 | echo $sorting_order;
|
---|
| 157 | } else {
|
---|
| 158 | echo "sorting";
|
---|
| 159 | }
|
---|
| 160 | ?>" id="expire_date" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 140px;" aria-label="Ngà y hết hạn: activate to sort column ascending">
|
---|
[396] | 161 | <i class="icon-time bigger-110 hidden-480"></i>
|
---|
| 162 | Ngà y hết hạn
|
---|
| 163 | </th>
|
---|
[883] | 164 | <th style="width: 130px;">Tá»nh/TP</th>
|
---|
| 165 | <th style="width: 150px;">Quáºn/Huyá»n</th>
|
---|
[769] | 166 | <th class="sorting_disabled" id="status" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;">Tình trạng</th>
|
---|
[408] | 167 | </tr>
|
---|
[375] | 168 | </thead>
|
---|
| 169 |
|
---|
| 170 | <tbody role="alert" aria-live="polite" aria-relevant="all">
|
---|
[690] | 171 |
|
---|
[767] | 172 | <?php
|
---|
| 173 | foreach ($users as $user):
|
---|
| 174 | ?>
|
---|
[728] | 175 | <tr class="odd">
|
---|
[883] | 176 | <!--
|
---|
[728] | 177 | <td class="center sorting_1">
|
---|
| 178 | <label>
|
---|
| 179 | <input type="checkbox" class="ace">
|
---|
| 180 | <span class="lbl"></span>
|
---|
| 181 | </label>
|
---|
[883] | 182 | </td>-->
|
---|
[728] | 183 | <td class=" ">
|
---|
| 184 | <a onclick="getUserHistory(<?php echo $user['us_id']; ?>, 1);" data-toggle="modal"><?php echo $user['username']; ?></a>
|
---|
[818] | 185 | <!--<a href="#user-history" data-toggle="modal"><?php echo $user['username']; ?></a>-->
|
---|
[728] | 186 | </td>
|
---|
| 187 | <td class=" ">
|
---|
[767] | 188 | <?php echo $user['fullname']; ?>
|
---|
[728] | 189 | </td>
|
---|
[769] | 190 | <td class="hidden-480 "><?php echo number_format($user['acc_balanced'], 0); ?></td>
|
---|
[818] | 191 | <td class=" "><?php echo date('d/m/Y', strtotime($user['created_time'])); ?></td>
|
---|
[769] | 192 | <td class=" "><?php echo isset($user['expire_date']) && strtotime($user['expire_date']) > 0 ? date('d/m/Y', strtotime($user['expire_date'])) : ''; ?></td>
|
---|
| 193 | <td><?php echo $user['province']; ?></td>
|
---|
[883] | 194 | <td><?php echo $user['district_name']; ?></td>
|
---|
[767] | 195 | <td class=" ">
|
---|
| 196 | <?php if (strtotime($user['expire_date']) > time() && $user['p_id'] != 5 ): ?>
|
---|
[769] | 197 | <span class="label label-sm label-success">Äã ÄÄng kÜ VIP</span>
|
---|
[767] | 198 | <?php elseif(strtotime($user['expire_date']) > time() && $user['p_id'] == 5): ?>
|
---|
[769] | 199 | <span class="label label-sm label-info">Dùng thỠ7 ngà y</span>
|
---|
[767] | 200 | <?php elseif(strtotime($user['expire_date']) < time() && $user['p_id'] == 5): ?>
|
---|
| 201 | <span class="label label-sm label-warning">Dùng thỠhạn chế</span>
|
---|
| 202 | <?php else: ?>
|
---|
| 203 | <span class="label label-sm label-danger">Hết hạn</span>
|
---|
| 204 | <?php endif; ?>
|
---|
| 205 | </td>
|
---|
[728] | 206 | </tr>
|
---|
[767] | 207 | <?php endforeach; ?>
|
---|
[728] | 208 |
|
---|
[426] | 209 | </tbody></table>
|
---|
[728] | 210 | <div class="row"><div class="col-sm-6">
|
---|
| 211 | <div class="dataTables_info" id="sample-table-2_info">Hiá»n thá» <?php echo ($start + 1) ?> Äến <?php echo ($start + $perpage) ?> cá»§a <?php echo $total ?> bản ghi</div>
|
---|
[375] | 212 |
|
---|
[728] | 213 | </div>
|
---|
| 214 | <div class="col-sm-6">
|
---|
| 215 | <div class="dataTables_paginate paging_bootstrap">
|
---|
| 216 | <ul class="pagination">
|
---|
| 217 | <?php echo $paging; ?>
|
---|
| 218 | </ul>
|
---|
| 219 | </div>
|
---|
| 220 | </div>
|
---|
| 221 | </div>
|
---|
[375] | 222 | </div>
|
---|
[728] | 223 |
|
---|
[375] | 224 | </div>
|
---|
| 225 | </div>
|
---|
| 226 |
|
---|
[728] | 227 |
|
---|
| 228 | </div>
|
---|
| 229 |
|
---|
| 230 | <!-- PAGE CONTENT ENDS -->
|
---|
| 231 | </div><!-- /.col -->
|
---|
[375] | 232 | </div>
|
---|
[644] | 233 |
|
---|
| 234 | <!-- Modal User History -->
|
---|
| 235 | <div class="modal fade" id="user-history" tabindex="-1" role="dialog"aria-hidden="true">
|
---|
[728] | 236 | <div class="modal-dialog">
|
---|
[644] | 237 | <div class="modal-content">
|
---|
| 238 | <div class="modal-header">
|
---|
| 239 | <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
---|
[818] | 240 | <h4 class="modal-title">ThÃŽng tin ngưá»i dùng</h4>
|
---|
[644] | 241 | </div>
|
---|
[728] | 242 | <div class="modal-body">
|
---|
| 243 | <ul class="nav nav-tabs padding-16">
|
---|
| 244 | <li class="active" >
|
---|
| 245 | <a id="regis-tab" href="#regis" data-toggle="tab">
|
---|
| 246 | Giao dá»ch
|
---|
| 247 | </a>
|
---|
| 248 | </li>
|
---|
| 249 | <li>
|
---|
| 250 | <a id="trade-tab" href="#trade" data-toggle="tab">
|
---|
| 251 | ThÃŽng tin
|
---|
| 252 | </a>
|
---|
| 253 | </li>
|
---|
| 254 | </ul>
|
---|
| 255 | <div class="tab-content history-tab-content">
|
---|
| 256 | <div class="tab-pane in active" id="regis">
|
---|
[883] | 257 | <div>
|
---|
[818] | 258 | <h5>Tà i khoản SBG Online: <b><span class="blue"><span id="topup-money"><?php echo number_format($acc_balanced, 0); ?></span> VNÄ <span></b></h5>
|
---|
| 259 | </div>
|
---|
[728] | 260 | <div class="table-responsive">
|
---|
| 261 | <table id="sample-table-1" class="table table-striped table-bordered table-hover">
|
---|
| 262 | <thead>
|
---|
| 263 | <tr>
|
---|
| 264 | <th class="center">
|
---|
| 265 | Từ
|
---|
| 266 | </th>
|
---|
[773] | 267 | <th class="center"> Sá» tiá»n (VNÄ) </th>
|
---|
[728] | 268 | <th class="center"> Gói dá»ch vụ </th>
|
---|
| 269 | <th>
|
---|
| 270 | <i class="icon-time bigger-110 hidden-480"></i>
|
---|
| 271 | Thá»i gian
|
---|
| 272 | </th>
|
---|
| 273 | </tr>
|
---|
| 274 | </thead>
|
---|
| 275 | <tbody id="content-regis-histoty">
|
---|
| 276 | </tbody>
|
---|
| 277 | </table>
|
---|
| 278 | <div>
|
---|
| 279 | <div class="dataTables_paginate paging_bootstrap">
|
---|
| 280 | <ul class="pagination" id="regis-pagination">
|
---|
| 281 | </ul>
|
---|
| 282 | </div>
|
---|
| 283 | </div>
|
---|
| 284 | </div><!-- /.table-responsive -->
|
---|
| 285 | </div>
|
---|
| 286 | <div class="tab-pane" id="trade">
|
---|
| 287 | <div class="row">
|
---|
| 288 |
|
---|
| 289 | <div id="content-trade-histoty">
|
---|
| 290 | </div>
|
---|
[737] | 291 |
|
---|
[728] | 292 | </div>
|
---|
| 293 | </div><!-- /.table-responsive -->
|
---|
| 294 | </div>
|
---|
| 295 | </div>
|
---|
| 296 | </div><!-- Modal Body -->
|
---|
| 297 | </div> <!-- Modal Content -->
|
---|
| 298 | </div>
|
---|
[644] | 299 | </div>
|
---|
[773] | 300 | </div>
|
---|
[644] | 301 |
|
---|
[375] | 302 | <script type="text/javascript">
|
---|
| 303 | window.onload = function ()
|
---|
| 304 | {
|
---|
| 305 | init_page();
|
---|
| 306 | }
|
---|
| 307 |
|
---|
| 308 | </script> |
---|