Changeset 375 for pro-violet-viettel/sourcecode/application/modules
- Timestamp:
- Nov 3, 2014 12:25:15 PM (11 years ago)
- Location:
- pro-violet-viettel/sourcecode/application/modules
- Files:
-
- 8 added
- 3 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/admin/models/admin_model.php
r369 r375 31 31 return $query->num_rows(); 32 32 } 33 34 function get_list_admins($data) 35 { 36 $sql="SELECT * FROM ".$this->table_name; 37 $data['keyword']=''; 38 if ($data['keyword']) 39 { 40 $sql.=" WHERE (login_name LIKE '%".$data['keyword']."%' OR full_name LIKE '%".$data['keyword']."%') "; 41 } 42 return $this->db->query($sql." ORDER BY admin_id DESC LIMIT ".$data['start'].", ".$data['perpage']." ")->result_array(); 43 } 44 45 function get_total_admins($data) 46 { 47 $sql="SELECT COUNT(".$this->id_name.") AS total FROM ".$this->table_name; 48 if (isset($data['keyword'])) 49 { 50 $sql.=" WHERE (login_name LIKE '%".$data['keyword']."%' OR full_name LIKE '%".$data['keyword']."%') "; 51 } 52 return $this->db->query($sql)->row_array()['total']; 53 } 33 54 } -
pro-violet-viettel/sourcecode/application/modules/admin/models/user_model.php
r369 r375 18 18 return $query->num_rows(); 19 19 } 20 21 function get_list_users($data) 22 { 23 $sql="SELECT * FROM ".$this->table_name; 24 $data['keyword']=''; 25 if ($data['keyword']) 26 { 27 $sql.=" WHERE (cellphone LIKE '%".$data['keyword']."%' OR collaborator LIKE '%".$data['keyword']."%' OR acc_balanced LIKE '%".$data['keyword']."%') "; 28 } 29 return $this->db->query($sql." ORDER BY us_id DESC LIMIT ".$data['start'].", ".$data['perpage']." ")->result_array(); 30 } 20 31 32 function get_total_users($data) 33 { 34 $sql="SELECT COUNT(".$this->id_name.") AS total FROM ".$this->table_name; 35 if (isset($data['keyword'])) 36 { 37 $sql.=" WHERE (cellphone LIKE '%".$data['keyword']."%' OR collaborator LIKE '%".$data['keyword']."%' OR acc_balanced LIKE '%".$data['keyword']."%') "; 38 } 39 return $this->db->query($sql)->row_array()['total']; 40 } 21 41 } -
pro-violet-viettel/sourcecode/application/modules/admin/views/collaborator/index.php
r371 r375 175 175 176 176 <div class="space-4"></div> 177 <div class="form-group errors" id="add_user"> 177 <div class="form-group errors" id="add_user"></div> 178 178 179 179 </div> -
pro-violet-viettel/sourcecode/application/modules/admin/views/index.php
r345 r375 183 183 </div><!-- /.main-container --> 184 184 <?php 185 $this->load->view('layout/admin/footer', array('base_url' => $base_url, 'adminjs' => array('a dmin/collaborator.js',)));185 $this->load->view('layout/admin/footer', array('base_url' => $base_url, 'adminjs' => array('assets/js/admin/collaborator.js',))); 186 186 ?> -
pro-violet-viettel/sourcecode/application/modules/frontend/views/lecture_editor.php
r323 r375 10 10 11 11 <div class="main-container-inner"> 12 13 <?php 14 $this->load->view('layout/frontend/sidebar'); 15 ?> 12 16 13 <div class="main-content"> 17 14
Note: See TracChangeset
for help on using the changeset viewer.