Changeset 426 for pro-violet-viettel/sourcecode/application
- Timestamp:
- Nov 6, 2014 5:31:13 PM (11 years ago)
- Location:
- pro-violet-viettel/sourcecode/application
- Files:
-
- 8 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/config/routes.php
r424 r426 99 99 $route['admin/nguoi_dung/id/:any'] = 'admin/user/get_user_by_id/$1'; 100 100 101 $route['admin/sms_log'] = 'admin/smslog'; 102 $route['admin/sms_log/trang'] = 'admin/smslog/get_smslogs/1'; 103 $route['admin/sms_log/trang/:any'] = 'admin/smslog/get_smslogs/$1'; 104 105 $route['admin/card_log'] = 'admin/cardlog'; 106 $route['admin/card_log/trang'] = 'admin/cardlog/get_cardlogs/1'; 107 $route['admin/card_log/trang/:any'] = 'admin/cardlog/get_cardlogs/$1'; 108 109 101 110 /* End of file routes.php */ 102 111 /* Location: ./application/config/routes.php */ -
pro-violet-viettel/sourcecode/application/modules/admin/models/cardlog_model.php
r328 r426 1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 2 3 3 class Cardlog_model extends MY_Model … … 12 12 } 13 13 14 function get_cardlogs($data) 15 { 16 $sql = "SELECT * FROM " . $this->table_name; 17 if ($data['keyword']) 18 { 19 $sql.=" WHERE (sender LIKE '%".$data['keyword']."%'"; 20 } 21 $order = ""; 22 if ($data['sorting_order'] != "sorting") { 23 $sort = "DESC"; 24 if ($data['sorting_order'] == "sorting_asc") 25 $sort = "ASC"; 26 $order = "ORDER BY " . $data['sorting_field'] . " " . $sort; 27 } 28 return $this->db->query($sql." ".$order." LIMIT ".$data['start'].", ".$data['perpage']." ")->result_array(); 29 } 30 31 function get_total_cardlogs($data) 32 { 33 $sql="SELECT COUNT(".$this->id_name.") AS total FROM ".$this->table_name; 34 if (isset($data['keyword'])) 35 { 36 if (strlen($data['keyword'])>0) 37 $sql.=" WHERE (sender LIKE '%".$data['keyword']."%'"; 38 } 39 return $this->db->query($sql)->row_array()['total']; 40 } 14 41 } -
pro-violet-viettel/sourcecode/application/modules/admin/models/smslog_model.php
r328 r426 1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 2 3 3 class Smslog_model extends MY_Model … … 12 12 } 13 13 14 function get_smslogs($data) 15 { 16 $sql = "SELECT * FROM " . $this->table_name; 17 if ($data['keyword']) 18 { 19 $sql.=" WHERE (sender LIKE '%".$data['keyword']."%' OR mobody LIKE '%".$data['keyword']."%' OR mtbody LIKE '%".$data['keyword']."%') "; 20 } 21 $order = ""; 22 if ($data['sorting_order'] != "sorting") { 23 $sort = "DESC"; 24 if ($data['sorting_order'] == "sorting_asc") 25 $sort = "ASC"; 26 $order = "ORDER BY " . $data['sorting_field'] . " " . $sort; 27 } 28 return $this->db->query($sql." ".$order." LIMIT ".$data['start'].", ".$data['perpage']." ")->result_array(); 29 } 30 31 function get_total_smslogs($data) 32 { 33 $sql="SELECT COUNT(".$this->id_name.") AS total FROM ".$this->table_name; 34 if (isset($data['keyword'])) 35 { 36 if (strlen($data['keyword'])>0) 37 $sql.=" WHERE (sender LIKE '%".$data['keyword']."%' OR mobody LIKE '%".$data['keyword']."%' OR mtbody LIKE '%".$data['keyword']."%') "; 38 } 39 return $this->db->query($sql)->row_array()['total']; 40 } 14 41 } -
pro-violet-viettel/sourcecode/application/modules/admin/views/user/listview.php
r414 r426 138 138 <?php } ?> 139 139 140 </tbody></table><div class="row"><div class="col-sm-6"> 141 <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> 140 </tbody></table> 141 <div class="row"><div class="col-sm-6"> 142 <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> 142 143 143 144 145 146 147 148 149 150 151 144 </div> 145 <div class="col-sm-6"> 146 <div class="dataTables_paginate paging_bootstrap"> 147 <ul class="pagination"> 148 <?php echo $paging; ?> 149 </ul> 150 </div> 151 </div> 152 </div> 152 153 153 154 </div> -
pro-violet-viettel/sourcecode/application/views/layout/admin/sidebar.php
r422 r426 117 117 118 118 <li> 119 <a href=" logs_sms.html">119 <a href="<?php echo $base_url; ?>admin/sms_log"> 120 120 <i class="icon-double-angle-right"></i> 121 121 SMS logs
Note: See TracChangeset
for help on using the changeset viewer.