Changeset 179 for trunk/finance/user_state.php
- Timestamp:
- Mar 24, 2009, 10:25:21 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/user_state.php
r178 r179 36 36 37 37 if(!array_key_exists('show', $_GET)) $_GET['show'] = ''; 38 $DbResult = $this->Database->query('SELECT * FROM Member LEFT JOIN MemberPayment ON MemberPayment.Member=Member.Id WHERE Member. Id='.$Subject['Id']);38 $DbResult = $this->Database->query('SELECT * FROM Member LEFT JOIN MemberPayment ON MemberPayment.Member=Member.Id WHERE Member.Subject='.$Subject['Id']); 39 39 $Member = $DbResult->fetch_assoc(); 40 40 $TarifName = $Finance->Tarify[$Member['InternetTariffCurrentMonth']]['name']; … … 84 84 $Output .= 'Měsíční příjem za spotřebu zařízení umístěných u uživatele:<br>'; 85 85 $Output .= '<table class="WideTable"><tr><th>Název zařízení</th><th>Spotřeba [W]</th><th>Příjem [Kč]</th></tr>'; 86 $DbResult = $this->Database->query('SELECT * FROM network_devices WHERE user='.$ UserId.' AND used=1');86 $DbResult = $this->Database->query('SELECT * FROM network_devices WHERE user='.$Member['Id'].' AND used=1'); 87 87 $TotalW = 0; 88 88 $TotalPrice = 0;
Note:
See TracChangeset
for help on using the changeset viewer.