1 | <?php |
---|
2 | //$admin_info = $this->session->userdata('adminInfo'); |
---|
3 | //$role_id = $admin_info['role_id']; |
---|
4 | ?> |
---|
5 | <div id="breadcrumbs" class="breadcrumbs"> |
---|
6 | |
---|
7 | <ul class="breadcrumb"> |
---|
8 | <li> |
---|
9 | <i class="icon-home home-icon"></i> |
---|
10 | <a href="#">Trang chá»§</a> |
---|
11 | </li> |
---|
12 | |
---|
13 | <li> |
---|
14 | <a href="#">Quản lÜ tà i khoản</a> |
---|
15 | </li> |
---|
16 | <li> |
---|
17 | <a href="#">Ngưá»i dùng</a> |
---|
18 | </li> |
---|
19 | <li class="active">Cá»ng tác viên</li> |
---|
20 | </ul><!-- .breadcrumb --> |
---|
21 | |
---|
22 | <div id="nav-search" class="nav-search"> |
---|
23 | <form class="form-search"> |
---|
24 | <span class="input-icon"> |
---|
25 | <input type="text" autocomplete="off" id="nav-search-input" class="nav-search-input" placeholder="Tìm kiếm ..."> |
---|
26 | <i class="icon-search nav-search-icon"></i> |
---|
27 | </span> |
---|
28 | </form> |
---|
29 | </div><!-- #nav-search --> |
---|
30 | </div> |
---|
31 | <div class="page-content"> |
---|
32 | <div class="page-header"> |
---|
33 | <h1> |
---|
34 | Cá»ng tác viên |
---|
35 | <small> |
---|
36 | <i class="icon-double-angle-right"></i> |
---|
37 | Danh sách |
---|
38 | </small> |
---|
39 | </h1> |
---|
40 | </div><!-- /.page-header --> |
---|
41 | |
---|
42 | <div class="row"> |
---|
43 | <div class="col-xs-12"> |
---|
44 | <!-- PAGE CONTENT BEGINS --> |
---|
45 | <div style="padding-bottom:4px" class="table-header"> |
---|
46 | Thá»ng kê tà i khoản |
---|
47 | <?php if (in_array("editUserInfo", $roles)) { ?> |
---|
48 | <div class="col-xs-12 pull-right" style="margin:5px;"> |
---|
49 | <div class="form-group"> |
---|
50 | <!--<input class="btn btn-primary pull-right " type="button" value="Thêm cá»ng tác viên" onclick="admin_update_user();"/>--> |
---|
51 | <button href="#addUser" data-toggle="modal" class="btn btn-success pull-right"> |
---|
52 | <i class="icon-plus"></i> |
---|
53 | Thêm cá»ng tác viên |
---|
54 | </button> |
---|
55 | </div> |
---|
56 | </div> |
---|
57 | <?php } ?> |
---|
58 | </div> |
---|
59 | |
---|
60 | <div class="table-responsive"> |
---|
61 | <div role="grid" class="dataTables_wrapper" id="sample-table-2_wrapper"> |
---|
62 | <form autocomplete="off" onsubmit="return false;" id="collaborator" > |
---|
63 | <div class="row"> |
---|
64 | <div class="col-sm-6"> |
---|
65 | <div id="sample-table-2_length" class="dataTables_length"><label>Hiá»n thá» |
---|
66 | <select onchange="filter();" name="items" size="1" aria-controls="sample-table-2"> |
---|
67 | <?php foreach ($itemsoptions as $option) { ?> |
---|
68 | <option <?php if ($option == $perpage) echo "selected"; ?> value="<?php echo $option; ?>"><?php echo $option; ?></option> |
---|
69 | <?php } ?> |
---|
70 | </select> bản ghi</label> |
---|
71 | |
---|
72 | </div> |
---|
73 | </div> |
---|
74 | |
---|
75 | <div class="col-sm-6"> |
---|
76 | <div class="dataTables_filter" id="sample-table-2_filter"> |
---|
77 | <label>Tìm kiếm: |
---|
78 | <input type="text" name="keyword" id="keyword" value='<?php echo $keyword; ?>' style="width: 162px; height: 18px;" aria-controls="sample-table-2"></label> |
---|
79 | </div> |
---|
80 | <div id="daterangepicker" class="selectbox pull-right"> |
---|
81 | <i class="icon-calendar"></i> |
---|
82 | <input id="daterange" type="text" name="daterange" class="daterangepicker" style="background: #ffffff; width: 176px; height: 28px; position: inherit;"> |
---|
83 | |
---|
84 | </span> |
---|
85 | </div> |
---|
86 | </div> |
---|
87 | </div> |
---|
88 | <input type="hidden" name="sorting_order" id="sorting_order" value="<?php echo $sorting_order; ?>" /> |
---|
89 | <input type="hidden" name="sorting_field" id="sorting_field" value="<?php echo $sorting_field; ?>"/> |
---|
90 | </form> |
---|
91 | <table class="table table-striped table-bordered table-hover dataTable" id="sample-table-2" aria-describedby="sample-table-2_info"> |
---|
92 | <thead> |
---|
93 | <tr role="row"> |
---|
94 | |
---|
95 | |
---|
96 | <th class="<?php |
---|
97 | if ($sorting_field == 'cellphone') { |
---|
98 | echo $sorting_order; |
---|
99 | } else { |
---|
100 | echo "sorting"; |
---|
101 | } |
---|
102 | ?>" 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> |
---|
103 | <th>HỠvà tên</th> |
---|
104 | <th>Quáºn/Huyá»n</th> |
---|
105 | <th>Tá»nh/TP</th> |
---|
106 | <th class="<?php |
---|
107 | if ($sorting_field == 'created_time') { |
---|
108 | echo $sorting_order; |
---|
109 | } else { |
---|
110 | echo "sorting"; |
---|
111 | } |
---|
112 | ?>" 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"> |
---|
113 | <i class="icon-time bigger-110 hidden-480"></i> |
---|
114 | Ngà y ÄÄng kÜ |
---|
115 | </th> |
---|
116 | <th class="<?php |
---|
117 | if ($sorting_field == 'activated') { |
---|
118 | echo $sorting_order; |
---|
119 | } else { |
---|
120 | echo "sorting"; |
---|
121 | } |
---|
122 | ?>" id="activated" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 158px;" aria-label="Trạng thái: activate to sort column ascending">Trạng thái</th> |
---|
123 | <?php if ($role_id == 1): ?><th class="sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 133px;" aria-label="">Chức nÄng</th><?php endif; ?></tr> |
---|
124 | </thead> |
---|
125 | |
---|
126 | |
---|
127 | <tbody role="alert" aria-live="polite" aria-relevant="all"> |
---|
128 | |
---|
129 | <?php |
---|
130 | foreach ($collaborators as $collaborator) { |
---|
131 | ?> |
---|
132 | <tr class="odd"> |
---|
133 | |
---|
134 | |
---|
135 | |
---|
136 | <td class=" "><a href="<?php echo base_url(); ?>admin/thong_ke_cong_tac_vien/<?php echo $collaborator['id']; ?>"><?php echo $collaborator['cellphone']; ?></a></td> |
---|
137 | <td class=" "><?php echo $collaborator['full_name']; ?></td> |
---|
138 | <td class=" "><?php echo $collaborator['district']; ?></td> |
---|
139 | <td class=" "><?php echo $collaborator['province']; ?></td> |
---|
140 | <td class=" "><?php echo $collaborator['created_time']; ?></td> |
---|
141 | |
---|
142 | <td class="hidden-480 "> |
---|
143 | <?php if ($collaborator['activated'] == 1) { |
---|
144 | ?> |
---|
145 | <span class="label label-sm label-success">Äã kÃch hoạt</span> |
---|
146 | <?php |
---|
147 | } else { |
---|
148 | ?> |
---|
149 | <span class="label label-sm label-default">Chưa kÃch hoạt</span> |
---|
150 | <?php |
---|
151 | } |
---|
152 | ?> |
---|
153 | </td> |
---|
154 | <?php if ($role_id == 1): ?> |
---|
155 | <td class=" "> |
---|
156 | <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons"> |
---|
157 | <a href="#" class="blue"> |
---|
158 | <i data-toggle="ajaxModal" href='<?php echo base_url(); ?>admin/cong_tac_vien/xem/<?php echo $collaborator['id']; ?>' class="icon-zoom-in bigger-130"></i> |
---|
159 | </a> |
---|
160 | |
---|
161 | <a href="#" class="green"> |
---|
162 | <i data-toggle="ajaxModal" href='<?php echo base_url(); ?>admin/cong_tac_vien/sua/<?php echo $collaborator['id']; ?>' data-toggle="modal" href='#editUser' class="icon-pencil bigger-130"></i> |
---|
163 | </a> |
---|
164 | |
---|
165 | <a href="#" class="red"> |
---|
166 | <i data-toggle="ajaxModal" href='<?php echo base_url(); ?>admin/cong_tac_vien/xoa/<?php echo $collaborator['id']; ?>' data-toggle="modal" href='#deleteUser' class="icon-trash bigger-130"></i> |
---|
167 | </a> |
---|
168 | </div> |
---|
169 | |
---|
170 | <div class="visible-xs visible-sm hidden-md hidden-lg"> |
---|
171 | <div class="inline position-relative"> |
---|
172 | <button data-toggle="dropdown" class="btn btn-minier btn-yellow dropdown-toggle"> |
---|
173 | <i class="icon-caret-down icon-only bigger-120"></i> |
---|
174 | </button> |
---|
175 | |
---|
176 | <ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close"> |
---|
177 | <li> |
---|
178 | <a title="" data-rel="tooltip" class="tooltip-info" href="#" data-original-title="View"> |
---|
179 | <span class="blue"> |
---|
180 | <i class="icon-zoom-in bigger-120"></i> |
---|
181 | </span> |
---|
182 | </a> |
---|
183 | </li> |
---|
184 | |
---|
185 | <li> |
---|
186 | <a title="" data-rel="tooltip" class="tooltip-success" href="#" data-original-title="Edit"> |
---|
187 | <span class="green"> |
---|
188 | <i class="icon-edit bigger-120"></i> |
---|
189 | </span> |
---|
190 | </a> |
---|
191 | </li> |
---|
192 | |
---|
193 | <li> |
---|
194 | <a title="" data-rel="tooltip" class="tooltip-error" href="#" data-original-title="Delete"> |
---|
195 | <span class="red"> |
---|
196 | <i class="icon-trash bigger-120"></i> |
---|
197 | </span> |
---|
198 | </a> |
---|
199 | </li> |
---|
200 | </ul> |
---|
201 | </div> |
---|
202 | </div> |
---|
203 | </td> |
---|
204 | <?php endif; ?> |
---|
205 | </tr> |
---|
206 | <?php } ?> |
---|
207 | |
---|
208 | |
---|
209 | |
---|
210 | |
---|
211 | |
---|
212 | |
---|
213 | |
---|
214 | </tbody></table><div class="row"><div class="col-sm-6"> |
---|
215 | <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> |
---|
216 | |
---|
217 | </div> |
---|
218 | <div class="col-sm-6"> |
---|
219 | <div class="dataTables_paginate paging_bootstrap"> |
---|
220 | <ul class="pagination"> |
---|
221 | <?php echo $paging; ?> |
---|
222 | </ul> |
---|
223 | </div> |
---|
224 | </div> |
---|
225 | </div> |
---|
226 | |
---|
227 | </div> |
---|
228 | </div> |
---|
229 | |
---|
230 | |
---|
231 | </div> |
---|
232 | |
---|
233 | <!-- PAGE CONTENT ENDS --> |
---|
234 | </div><!-- /.col --> |
---|
235 | </div> |
---|
236 | <script type="text/javascript"> |
---|
237 | window.onload = function () |
---|
238 | { |
---|
239 | init_page(); |
---|
240 | } |
---|
241 | |
---|
242 | |
---|
243 | </script> |
---|