Ignore:
Timestamp:
Apr 7, 2015 1:52:40 PM (10 years ago)
Author:
namnd
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/admin/models/paidlog_model.php

    r818 r883  
    1313        }
    1414        function getPaidlogs($data) {
     15               
    1516                if ($data['paid_type'] == 0){
    1617                        $sql = "SELECT SUM(amount) as total_amount FROM tblpaidlog";
     
    1920                }
    2021                $r = $this->db->query($sql)->row_array();
     22               
    2123                $total_amount = (int)$r['total_amount'];
    2224        $sql = "SELECT * FROM " . $this->table_name. " INNER JOIN tbluser ON tbluser.us_id = tblpaidlog.us_id ";
     
    5456                        }
    5557                }
    56                 if ($data['start']){
     58
     59                //if ($data['start']){
     60               
    5761                        $sql=$sql . " " . $order . " LIMIT " . $data['start'] . ", " . $data['perpage'] . " ";
    58                 }
     62                //}
     63       
    5964        //return $this->db->query($sql)->result_array();
    6065                $re = $this->db->query($sql)->result_array();
     66               
    6167                $result['paid_logs'] = $re;
     68               
    6269                $result['total_amount'] = $total_amount;
    6370                return $result;
Note: See TracChangeset for help on using the changeset viewer.