Changeset 409 for trunk/finance/user_state.php
- Timestamp:
- Oct 4, 2012, 9:01:28 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/user_state.php
r294 r409 115 115 $Output .= 'Měsíční příjem za spotřebu zařízení umístěných u uživatele:<br>'; 116 116 $Output .= '<table class="WideTable"><tr><th>Název zařízení</th><th>Spotřeba [W]</th><th>Příjem [Kč]</th></tr>'; 117 $DbResult = $this->Database->query('SELECT * FROM network_devices WHERE user='.$Member['Subject'].' AND used=1');117 $DbResult = $this->Database->query('SELECT * FROM Product WHERE User='.$Member['Subject'].' AND Used=1'); 118 118 $TotalW = 0; 119 119 $TotalPrice = 0; 120 120 while($Row = $DbResult->fetch_assoc()) 121 121 { 122 $Output .= '<tr><td>'.$Row[' name'].'</td><td>'.$Row['consumption'].'</td><td>'.$this->System->Modules['Finance']->W2Kc($Row['consumption']).'</td></tr>';123 $TotalW += $Row[' consumption'];124 $TotalPrice += $this->System->Modules['Finance']->W2Kc($Row[' consumption']);122 $Output .= '<tr><td>'.$Row['Name'].'</td><td>'.$Row['Consumption'].'</td><td>'.$this->System->Modules['Finance']->W2Kc($Row['Consumption']).'</td></tr>'; 123 $TotalW += $Row['Consumption']; 124 $TotalPrice += $this->System->Modules['Finance']->W2Kc($Row['Consumption']); 125 125 } 126 126 $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.