- Timestamp:
- Mar 24, 2009, 10:25:21 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/tarify.php
r157 r179 17 17 $Output .= '<br />'; 18 18 19 $Output .= '<table width="50%" border="1" cellspacing="0" cellpadding="2" style="font-size: small;">';19 $Output .= '<table width="50%" class="WideTable" style="font-size: small;">'; 20 20 $Output .= '<tr><th>Název tarifu</th><th>Min. rychlost [kbit/s]</th><th>Max. rychlost [kbit/s]</th><th>Agregační poměr</th><th>Cenových jednotek</th><th>Počet podílníků</th><th>Celkem cenových jednotek</th><th>Cena [Kč]</th><th>Vybráno celkem [Kč]</th></tr>'; 21 21 $TotalPrice = 0; -
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; -
trunk/forms.php
r148 r179 140 140 } 141 141 } 142 $this->Values['Id'] = $Id; 143 $DbResult = $Database->replace($this->Definition['Table'], $this->Values); 142 if($Id == 0) 143 { 144 $this->Values['Id'] = $Id; 145 $DbResult = $Database->replace($this->Definition['Table'], $this->Values); 146 } else 147 $DbResult = $Database->update($this->Definition['Table'], 'Id='.$Id, $this->Values); 144 148 //echo($Database->LastQuery); 145 149 }
Note:
See TracChangeset
for help on using the changeset viewer.