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

Last change on this file since 396 was 396, checked in by namnd, 11 years ago
File size: 11.0 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
44                <button href="#addUser" data-toggle="modal" class="btn btn-success pull-right">
45                    <i class="icon-plus"></i>
46                    Thêm người dùng
47                </button>
48
49            </div>
50
51            <div class="table-responsive">
52                <div role="grid" class="dataTables_wrapper" id="sample-table-2_wrapper">
53                    <form onsubmit="return false;" id="user" >
54                        <div class="row">
55                            <div class="col-sm-6">
56                                <div id="sample-table-2_length" class="dataTables_length"><label>Hiện thị
57                                        <select onchange="filter();" name="items" size="1" aria-controls="sample-table-2">                                     
58                                            <?php foreach ($itemsoptions as $option) { ?>
59                                            <option <?php if($option == $perpage) echo "selected"; ?> value="<?=$option?>"><?=$option?></option>
60                                            <?php } ?>
61                                        </select> bản ghi</label>
62
63                                </div>
64                            </div>
65
66                            <div class="col-sm-6">
67                                <div class="dataTables_filter" id="sample-table-2_filter">
68                                    <label>Tìm kiếm:
69                                        <input type="text" name="keyword" id="keyword" value='<?php echo $keyword;?>' aria-controls="sample-table-2"></label>
70                                </div>
71                            </div>
72                        </div>
73                                                <input type="hidden" name="sorting_order" id="sorting_order" value="<?php echo $sorting_order;?>" />
74                                                <input type="hidden" name="sorting_field" id="sorting_field" value="<?php echo $sorting_field;?>"/>
75                    </form>
76                    <table class="table table-striped table-bordered table-hover dataTable" id="sample-table-2" aria-describedby="sample-table-2_info">
77                        <thead>
78                            <tr role="row">
79                                <th class="center sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 44px;" aria-label="">
80                                    <label>
81                                        <input type="checkbox" class="ace">
82                                        <span class="lbl"></span>
83                                    </label>
84                                </th>
85                                <th class="<?php if ($sorting_field == 'cellphone') {echo $sorting_order;} else {echo "sorting";}?>" id="cellphone" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Số điện thoại: activate to sort column ascending">Số điện thoại</th>
86                                <th class="<?php if ($sorting_field == 'acc_balanced') {echo $sorting_order;} else {echo "sorting";}?>" id="acc_balanced" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 122px;" aria-label="Tiền: activate to sort column ascending">Tiền</th>
87                                <th class="<?php if ($sorting_field == 'created_time') {echo $sorting_order;} else {echo "sorting";}?>" id="created_time" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 209px;" aria-label="Ngày đăng kÜ: activate to sort column ascending">
88                                    <i class="icon-time bigger-110 hidden-480"></i>
89                                    Ngày đăng kÜ
90                                </th>
91                                                                <th class="<?php if ($sorting_field == 'expire_date') {echo $sorting_order;} else {echo "sorting";}?>" id="expire_date" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 209px;" aria-label="Ngày hết hạn: activate to sort column ascending">
92                                    <i class="icon-time bigger-110 hidden-480"></i>
93                                    Ngày hết hạn
94                                </th>
95                                <th class="sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 133px;" aria-label=""></th></tr>
96                        </thead>
97
98                        <tbody role="alert" aria-live="polite" aria-relevant="all">
99                           
100                            <?php
101                            foreach ($users as $user) {
102                                ?>
103                            <tr class="odd">
104                                <td class="center  sorting_1">
105                                    <label>
106                                        <input type="checkbox" class="ace">
107                                        <span class="lbl"></span>
108                                    </label>
109                                </td>
110
111                                <td class=" ">
112                                    <a href="#"><?php echo $user['cellphone']; ?></a>
113                                </td>
114                                <td class="hidden-480 "><?php echo $user['acc_balanced']; ?></td>
115                                <td class=" "><?php echo $user['created_time']; ?></td>
116                                                                <td class=" "><?php echo $user['expire_date']; ?></td>
117
118                                <td class=" ">
119                                    <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
120                                        <a href="#" class="blue">
121                                            <i class="icon-zoom-in bigger-130"></i>
122                                        </a>
123
124                                        <a href="#editUser" data-toggle="modal" data-us-id=<?php echo $user['us_id']; ?> class="green">
125                                            <i class="icon-pencil bigger-130"></i>
126                                        </a>
127
128                                        <a href="#deleteUser" data-toggle="modal" data-us-id=<?php echo $user['us_id']; ?> class="red">
129                                            <i class="icon-trash bigger-130"></i>
130                                        </a>
131                                    </div>
132
133                                    <div class="visible-xs visible-sm hidden-md hidden-lg">
134                                        <div class="inline position-relative">
135                                            <button data-toggle="dropdown" class="btn btn-minier btn-yellow dropdown-toggle">
136                                                <i class="icon-caret-down icon-only bigger-120"></i>
137                                            </button>
138
139                                            <ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
140                                                <li>
141                                                    <a title="" data-rel="tooltip" class="tooltip-info" href="#" data-original-title="View">
142                                                        <span class="blue">
143                                                            <i class="icon-zoom-in bigger-120"></i>
144                                                        </span>
145                                                    </a>
146                                                </li>
147
148                                                <li>
149                                                    <a title="" data-rel="tooltip" class="tooltip-success" href="#" data-original-title="Edit">
150                                                        <span class="green">
151                                                            <i class="icon-edit bigger-120"></i>
152                                                        </span>
153                                                    </a>
154                                                </li>
155
156                                                <li>
157                                                    <a title="" data-rel="tooltip" class="tooltip-error" href="#" data-original-title="Delete">
158                                                        <span class="red">
159                                                            <i class="icon-trash bigger-120"></i>
160                                                        </span>
161                                                    </a>
162                                                </li>
163                                            </ul>
164                                        </div>
165                                    </div>
166                                </td>
167                            </tr>
168                            <?php } ?>
169
170
171
172
173
174
175
176                        </tbody></table><div class="row"><div class="col-sm-6">
177                                <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>
178                                   
179                            </div>
180                        <div class="col-sm-6">
181                            <div class="dataTables_paginate paging_bootstrap">
182                                <ul class="pagination">
183                                    <?php echo $paging; ?>
184                                </ul>
185                            </div>
186                        </div>
187                    </div>
188
189                </div>
190            </div>
191
192           
193        </div>
194
195        <!-- PAGE CONTENT ENDS -->
196    </div><!-- /.col -->
197</div>
198<script type="text/javascript">
199    window.onload = function ()
200    {
201        init_page();
202    }
203
204
205</script>
Note: See TracBrowser for help on using the repository browser.