Changeset 579 for pro-violet-viettel/sourcecode/application/modules/admin
- Timestamp:
- Nov 20, 2014 11:00:32 AM (10 years ago)
- Location:
- pro-violet-viettel/sourcecode/application/modules/admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/admin/controllers/user.php
r459 r579 59 59 $us = $this->user_model->get_list_users($data); 60 60 $users = array(); 61 foreach($us as $u): 61 62 foreach($us as $u) { 62 63 $id = $u['us_id']; 63 64 $username = $this->get_username($id); 64 65 $u['username'] = $username; 65 66 array_push($users, $u); 66 endforeach;67 } 67 68 68 69 $data['users'] = $users; -
pro-violet-viettel/sourcecode/application/modules/admin/models/cardlog_model.php
r426 r579 26 26 $order = "ORDER BY " . $data['sorting_field'] . " " . $sort; 27 27 } 28 return $this->db->query($sql." ".$order." LIMIT ".$data['start'].", ".$data['perpage']." ")->result_array(); 28 $query = $this->db->query($sql." ".$order." LIMIT ".$data['start'].", ".$data['perpage']." "); 29 return $query->result_array(); 29 30 } 30 31 … … 37 38 $sql.=" WHERE (sender LIKE '%".$data['keyword']."%'"; 38 39 } 39 return $this->db->query($sql)->row_array()['total']; 40 $query = $this->db->query($sql); 41 $row = $query->row_array(); 42 return $row['total']; 40 43 } 41 44 } -
pro-violet-viettel/sourcecode/application/modules/admin/models/smslog_model.php
r426 r579 26 26 $order = "ORDER BY " . $data['sorting_field'] . " " . $sort; 27 27 } 28 return $this->db->query($sql." ".$order." LIMIT ".$data['start'].", ".$data['perpage']." ")->result_array(); 28 29 $query = $this->db->query($sql." ".$order." LIMIT ".$data['start'].", ".$data['perpage']." "); 30 31 return $query->result_array(); 29 32 } 30 33 … … 37 40 $sql.=" WHERE (sender LIKE '%".$data['keyword']."%' OR mobody LIKE '%".$data['keyword']."%' OR mtbody LIKE '%".$data['keyword']."%') "; 38 41 } 39 return $this->db->query($sql)->row_array()['total']; 42 43 $query = $this->db->query($sql); 44 $row = $query->row_array(); 45 return $row['total']; 40 46 } 41 47 } -
pro-violet-viettel/sourcecode/application/modules/admin/models/user_model.php
r459 r579 1 1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 2 3 class User_model extends MY_Model3 class User_model extends CI_Model 4 4 { 5 5 … … 62 62 $sql.=" WHERE (cellphone LIKE '%".$data['keyword']."%' OR collaborator LIKE '%".$data['keyword']."%' OR acc_balanced LIKE '%".$data['keyword']."%') "; 63 63 } 64 return $this->db->query($sql)->row_array()['total']; 64 65 $query = $this->db->query($sql); 66 $row = $query->row_array(); 67 68 return $row['total']; 65 69 } 66 70
Note: See TracChangeset
for help on using the changeset viewer.