Changeset 157 for www/finance/user_state_ip.php
- Timestamp:
- Feb 18, 2009, 11:19:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/finance/user_state_ip.php
r156 r157 2 2 3 3 include_once('../global.php'); 4 include_once('include.php');5 RecalculateTariffs(1);6 4 7 5 class FinanceUserState extends Page … … 14 12 global $Tarify, $Sprava; 15 13 16 $UserId = GetMemberByIP(GetRemoteAddress()); 14 $this->System->Modules['Finance']->RecalculateTariffs(1); 15 16 $UserId = GetMemberByIP(GetRemoteAddress()); 17 17 18 18 if(!array_key_exists('show', $_GET)) $_GET['show'] = ''; … … 55 55 $DbResult = $this->Database->query('SELECT SUM(consumption) AS Total FROM network_devices WHERE user='.$UserId.' AND used=1'); 56 56 $ConsumptionBonus = $DbResult->fetch_assoc(); 57 $ConsumptionBonus = W2Kc($ConsumptionBonus['Total']);57 $ConsumptionBonus = $this->System->Modules['Finance']->W2Kc($ConsumptionBonus['Total']); 58 58 59 59 $Total = 0; … … 78 78 while($Row = $DbResult->fetch_assoc()) 79 79 { 80 $Output .= '<tr><td>'.$Row['name'].'</td><td>'.$Row['consumption'].'</td><td>'. W2Kc($Row['consumption']).'</td></tr>';80 $Output .= '<tr><td>'.$Row['name'].'</td><td>'.$Row['consumption'].'</td><td>'.$this->System->Modules['Finance']->W2Kc($Row['consumption']).'</td></tr>'; 81 81 $TotalW += $Row['consumption']; 82 $TotalPrice += W2Kc($Row['consumption']);82 $TotalPrice += $this->System->Modules['Finance']->W2Kc($Row['consumption']); 83 83 } 84 84 $Output .= '<tr><td><strong>Celkem</strong></td><td><strong>'.$TotalW.'</strong></td><td><strong>'.$TotalPrice.'</strong></td></tr>';
Note:
See TracChangeset
for help on using the changeset viewer.