source: pro-violet-viettel/sourcecode/application/modules/admin/views/user/listview.php @ 737

Last change on this file since 737 was 737, checked in by dungnv, 10 years ago
File size: 14.6 KB
Line 
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
43                <!--button href="#addUser" data-toggle="modal" class="btn btn-success pull-right">
44                    <i class="icon-plus"></i>
45                    Thêm người dùng
46                </button-->
47
48            </div>
49
50            <div class="table-responsive">
51                <div role="grid" class="dataTables_wrapper" id="sample-table-2_wrapper">
52                    <form onsubmit="return false;" id="user" >
53                        <div class="row">
54                            <div class="col-sm-6">
55                                <div id="sample-table-2_length" class="dataTables_length"><label>Hiện thị
56                                        <select onchange="filter();" name="items" size="1" aria-controls="sample-table-2">
57                                            <?php foreach ($itemsoptions as $option) { ?>
58                                                <option <?php if ($option == $perpage) echo "selected"; ?> value="<?php echo $option; ?>"><?php echo $option; ?></option>
59                                            <?php } ?>
60                                        </select> bản ghi</label>
61
62                                </div>
63                            </div>
64
65                            <div class="col-sm-6">
66                                <div class="dataTables_filter" id="sample-table-2_filter">
67                                    <label>Tìm kiếm:
68                                        <input type="text" name="keyword" id="keyword" value='<?php echo $keyword; ?>' style="width: 162px; height: 18px;" aria-controls="sample-table-2"></label>
69                                </div>
70                                <div class="dataTables_status" style="float: right;" id="sample-table-2_status"><label>Lọc:
71                                        <select onchange="filter();" name="status" size="1" style="width: 176px; height: 28px;">                                     
72                                            <?php foreach ($statusoptions as $key => $option): ?>
73                                                <option <?php if ($key == $status) echo "selected"; ?> value="<?php echo $key; ?>"><?php echo $option; ?></option>
74                                            <?php endforeach; ?>
75                                        </select>
76                                </div>
77                                <div style="clear: both;"></div>
78                                <div id="daterangepicker" class="selectbox pull-right">
79                                    <i class="icon-calendar"></i>
80                                    <input id="daterange" type="text" name="daterange" class="daterangepicker" style="background: #ffffff; width: 176px; height: 28px; position: inherit;">
81
82                                    </span>
83                                </div>
84                            </div>
85                        </div>
86
87                </div>
88
89                <input type="hidden" name="sorting_order" id="sorting_order" value="<?php echo $sorting_order; ?>" />
90                <input type="hidden" name="sorting_field" id="sorting_field" value="<?php echo $sorting_field; ?>"/>
91                </form>
92                <!-- Table Content -->
93                <center><div id="loading" style="display:none;"><img src="<?php echo base_url(); ?>/assets/img/loading.gif"/></div></center>
94                <div id="table_content">
95                    <table class="table table-striped table-bordered table-hover dataTable" id="sample-table-2" aria-describedby="sample-table-2_info">
96                        <thead>
97                            <tr role="row">
98                                <th class="center sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 44px;" aria-label="">
99                                    <label>
100                                        <input type="checkbox" class="ace">
101                                        <span class="lbl"></span>
102                                    </label>
103                                </th>
104                                <th class="<?php
105                                if ($sorting_field == 'cellphone') {
106                                    echo $sorting_order;
107                                } else {
108                                    echo "sorting";
109                                }
110                                ?>" 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">Username</th>
111                                <th class="<?php
112                                if ($sorting_field == 'cellphone') {
113                                    echo $sorting_order;
114                                } else {
115                                    echo "sorting";
116                                }
117                                ?>" id="cellphone" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;" aria-label="Số điện thoại: activate to sort column ascending">Số điện thoại</th>
118                                <th class="<?php
119                                if ($sorting_field == 'acc_balanced') {
120                                    echo $sorting_order;
121                                } else {
122                                    echo "sorting";
123                                }
124                                ?>" 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>
125                                <th style="width: 140px;">Tỉnh/TP</th>
126                                <th class="<?php
127                                if ($sorting_field == 'created_time') {
128                                    echo $sorting_order;
129                                } else {
130                                    echo "sorting";
131                                }
132                                ?>" 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">
133                                    <i class="icon-time bigger-110 hidden-480"></i>
134                                    Ngày đăng kÜ
135                                </th>
136                                <th class="<?php
137                                if ($sorting_field == 'expire_date') {
138                                    echo $sorting_order;
139                                } else {
140                                    echo "sorting";
141                                }
142                                ?>" 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">
143                                    <i class="icon-time bigger-110 hidden-480"></i>
144                                    Ngày hết hạn
145                                </th>
146                                <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>
147                            </tr>
148                        </thead>
149
150                        <tbody role="alert" aria-live="polite" aria-relevant="all">
151
152<?php
153foreach ($users as $user) {
154    ?>
155                                <tr class="odd">
156                                    <td class="center  sorting_1">
157                                        <label>
158                                            <input type="checkbox" class="ace">
159                                            <span class="lbl"></span>
160                                        </label>
161                                    </td>
162                                    <td class=" ">
163                                        <a onclick="getUserHistory(<?php echo $user['us_id']; ?>, 1);" data-toggle="modal"><?php echo $user['username']; ?></a>
164                                                                             <!--<a href="#user-history" data-toggle="modal"><?php echo @$user['username']; ?></a>-->
165                                    </td>
166                                    <td class=" ">
167                                        <?php echo $user['cellphone']; ?>
168                                    </td>
169                                    <td class="hidden-480 "><?php echo number_format($user['acc_balanced'], 0); ?></td>
170                                    <td><?php echo $user['province']; ?></td>
171                                    <td class=" "><?php echo $user['created_time']; ?></td>
172                                    <td class=" "><?php echo isset($user['expire_date']) && strtotime($user['expire_date']) > 0 ? date('d/m/Y', strtotime($user['expire_date'])) : ''; ?></td>
173
174                                    <td class=" ">
175    <?php if (strtotime($user['expire_date']) > time()) { ?>
176                                            <span class="label label-sm label-success">Đã đăng kÜ</span>
177    <?php } else { ?>
178                                            <span class="label label-sm label-warning">Dùng thá»­</span>
179    <?php } ?>
180                                    </td>
181
182                                </tr>
183                                    <?php } ?>
184
185                        </tbody></table>
186                    <div class="row"><div class="col-sm-6">
187                            <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>
188
189                        </div>
190                        <div class="col-sm-6">
191                            <div class="dataTables_paginate paging_bootstrap">
192                                <ul class="pagination">
193<?php echo $paging; ?>
194                                </ul>
195                            </div>
196                        </div>
197                    </div>
198                </div>
199
200            </div>
201        </div>
202
203
204    </div>
205
206    <!-- PAGE CONTENT ENDS -->
207</div><!-- /.col -->
208</div>
209
210<!-- Modal User History -->
211<div class="modal fade" id="user-history" tabindex="-1" role="dialog"aria-hidden="true">
212    <div class="modal-dialog">
213        <div class="modal-content">
214            <div class="modal-header">
215                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
216                <h4 class="modal-title">Lịch sá»­</h4>
217            </div>
218            <div class="modal-body">
219                <ul class="nav nav-tabs padding-16">
220                    <li class="active" >
221                        <a id="regis-tab" href="#regis" data-toggle="tab">
222                            Giao dịch
223                        </a>
224                    </li>
225                    <li>
226                        <a id="trade-tab" href="#trade" data-toggle="tab">
227                            ThÃŽng tin
228                        </a>
229                    </li>
230                </ul>
231                <div class="tab-content history-tab-content">
232                    <div class="tab-pane in active" id="regis">
233                        <div class="table-responsive">
234                            <table id="sample-table-1" class="table table-striped table-bordered table-hover">
235                                <thead>
236                                    <tr>
237                                        <th class="center">
238                                            Từ
239                                        </th>
240                                        <th class="center"> Gói dịch vụ </th>
241                                        <th>
242                                            <i class="icon-time bigger-110 hidden-480"></i>
243                                            Thời gian
244                                        </th>
245                                    </tr>
246                                </thead>
247                                <tbody id="content-regis-histoty">
248                                </tbody>
249                            </table>
250                            <div>
251                                <div class="dataTables_paginate paging_bootstrap">
252                                    <ul class="pagination" id="regis-pagination">
253                                    </ul>
254                                </div>
255                            </div>
256                        </div><!-- /.table-responsive -->
257                    </div>
258                    <div class="tab-pane" id="trade">
259                        <div class="row">
260                           
261                                <div id="content-trade-histoty">
262                                </div>
263                       
264                            </div>
265                        </div><!-- /.table-responsive -->
266                    </div>
267                </div>
268            </div><!-- Modal Body -->
269        </div> <!-- Modal Content -->
270    </div>
271</div>
272
273<script type="text/javascript">
274    window.onload = function ()
275    {
276        init_page();
277    }
278
279</script>
Note: See TracBrowser for help on using the repository browser.