- Timestamp:
- Nov 20, 2014 4:49:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/admin/controllers/report.php
r503 r586 59 59 $charts['last_month'] = array(0 => 0, 1 => 0, 2 => 0, 3 => 0, 4 => 0); 60 60 $charts['this_month'] = array(0 => 0, 1 => 0, 2 => 0, 3 => 0, 4 => 0); 61 61 62 foreach ($paidlogs as $paidlog) { 62 63 … … 73 74 $revenue['last_year']+=$paidlog['amount']; 74 75 } 76 77 75 78 if (($paidlog['time'] < $lastmonth + (7 * 24 * 60 * 60)) && ($paidlog['time'] > $lastmonth)) { 76 79 $charts['last_month'][0]+=$paidlog['amount']; … … 86 89 } 87 90 if (($paidlog['time'] < $thismonth) && ($paidlog['time'] > $lastmonth + (28 * 24 * 60 * 60))) { 88 $charts['last_month'][3]+=$paidlog['amount']; 89 } 91 $charts['last_month'][4]+=$paidlog['amount']; 92 } 93 90 94 91 95 if (($paidlog['time'] < $thismonth + (7 * 24 * 60 * 60)) && ($paidlog['time'] > $thismonth)) { … … 102 106 } 103 107 if (($paidlog['time'] < $thismonth + (31 * 24 * 60 * 60)) && ($paidlog['time'] > $thismonth + (28 * 24 * 60 * 60))) { 104 $charts['this_month'][3]+=$paidlog['amount']; 105 } 108 $charts['this_month'][4]+=$paidlog['amount']; 109 } 110 106 111 } 107 112 $max = 0;
Note: See TracChangeset
for help on using the changeset viewer.