Changeset 503 for pro-violet-viettel/sourcecode/application/modules/admin
- Timestamp:
- Nov 14, 2014 4:46:37 PM (11 years ago)
- Location:
- pro-violet-viettel/sourcecode/application/modules/admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/admin/controllers/report.php
r479 r503 184 184 $data['paging'] = pagging($data); 185 185 foreach ($data['paidlogs'] as $index => $paidlog) { 186 $data['paidlogs'][$index]['username'] = @$this->get_ username($paidlog['us_id']);186 $data['paidlogs'][$index]['username'] = @$this->get_fullname($paidlog['us_id']); 187 187 } 188 188 … … 193 193 } 194 194 195 private function get_username($us_id) { 195 private function get_fullname($us_id) { 196 $fullname=""; 196 197 $src = 'violet'; 197 198 $token = md5($us_id . self::TOKENPW); 198 199 $this->load->model('user_model'); 199 200 $data = $this->user_model->get_user_info($src, $us_id, $token); 200 if (strpos($data, '&')) { 201 $arr_users = explode("&", $data); 202 $str_username = $arr_users[1]; 203 $arr_username = explode("=", $str_username); 204 return $arr_username[1]; 205 } else { 206 return ""; 207 } 201 parse_str($data,$data); 202 if (isset($data['fullname'])) 203 { 204 $fullname=$data['fullname']; 205 } 206 return $fullname; 208 207 } 209 208 -
pro-violet-viettel/sourcecode/application/modules/admin/controllers/reportAsistant.php
r479 r503 184 184 foreach ($data['paidlogs'] as $index=>$paidlog) 185 185 { 186 $data['paidlogs'][$index]['username']=$this->get_ username($paidlog['us_id']);186 $data['paidlogs'][$index]['username']=$this->get_fullname($paidlog['us_id']); 187 187 } 188 188 $data['paging_url'] = base_url() . "/admin/thong_ke_cong_tac_vien/trang_ctv/" . $data['id']; … … 196 196 } 197 197 198 private function get_username($us_id) { 198 private function get_fullname($us_id) { 199 $fullname=""; 199 200 $src = 'violet'; 200 201 $token = md5($us_id . self::TOKENPW); 201 202 $this->load->model('user_model'); 202 203 $data = $this->user_model->get_user_info($src, $us_id, $token); 203 if (strpos($data, '&')) { 204 $arr_users = explode("&", $data); 205 $str_username = $arr_users[1]; 206 $arr_username = explode("=", $str_username); 207 return $arr_username[1]; 208 } else { 209 return ""; 210 } 204 parse_str($data,$data); 205 if (isset($data['fullname'])) 206 { 207 $fullname=$data['fullname']; 208 } 209 return $fullname; 211 210 } 212 211 -
pro-violet-viettel/sourcecode/application/modules/admin/views/reportAsistant/listview_user.php
r479 r503 37 37 <tr role="row"> 38 38 39 <th class="<?php if ($sorting_field == 'full_name') {echo $sorting_order;} else {echo " sorting";}?>" id="full_name" 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">Tên ngưá»i dùng</th>39 <th class="<?php if ($sorting_field == 'full_name') {echo $sorting_order;} else {echo "";}?>" id="full_name" 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">Tên ngưá»i dùng</th> 40 40 <th class="<?php if ($sorting_field == 'collaborator_cellphone') {echo $sorting_order;} else {echo "sorting";}?>" id="collaborator_cellphone" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 283px;" aria-label="Há» tên: activate to sort column ascending">Sá» Äiá»n thoại ngưá»i dùng</th> 41 41 <th class="<?php if ($sorting_field == 'total_user') {echo $sorting_order;} else {echo "sorting";}?>" id="total_user" 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">Ngà y giá»i thiá»u</th>
Note: See TracChangeset
for help on using the changeset viewer.