Changeset 157 for www/finance/user_state.php
- Timestamp:
- Feb 18, 2009, 11:19:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/finance/user_state.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 … … 16 14 if(!$this->System->Modules['User']->CheckPermission('Finance', 'DisplaySubjectState')) return('Nemáte oprávnění'); 17 15 16 $this->System->Modules['Finance']->RecalculateTariffs(1); 18 17 $UserId = $this->System->Modules['User']->User['Id']; 19 18 if(!array_key_exists('show', $_GET)) $_GET['show'] = ''; … … 56 55 $DbResult = $this->Database->query('SELECT SUM(consumption) AS Total FROM network_devices WHERE user='.$UserId.' AND used=1'); 57 56 $ConsumptionBonus = $DbResult->fetch_assoc(); 58 $ConsumptionBonus = W2Kc($ConsumptionBonus['Total']);57 $ConsumptionBonus = $this->System->Modules['Finance']->W2Kc($ConsumptionBonus['Total']); 59 58 60 59 $Total = 0; … … 79 78 while($Row = $DbResult->fetch_assoc()) 80 79 { 81 $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>'; 82 81 $TotalW += $Row['consumption']; 83 $TotalPrice += W2Kc($Row['consumption']);82 $TotalPrice += $this->System->Modules['Finance']->W2Kc($Row['consumption']); 84 83 } 85 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.