Changeset 419 for trunk/finance/index.php
- Timestamp:
- Oct 8, 2012, 11:17:43 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/index.php
r409 r419 26 26 $Row = $DbResult->fetch_array(); 27 27 $Output .= 'Platba za internetovou linku ('.$Finance->RealMaxSpeed.'/'.$Finance->RealMaxSpeed.' kbit/s): <strong>'.$Finance->Internet.' Kč</strong><br />'; 28 29 $DbResult = $this->Database->query('SELECT COUNT(*) FROM Member'); 30 $Row2 = $DbResult->fetch_array(); 31 $Output .= 'Počet registrovaných klientů: <strong>'.$Row2[0].'</strong><br />'; 32 33 $DbResult = $this->Database->query('SELECT COUNT(*) FROM Member WHERE (BillingPeriod > 1) AND (InternetTariffCurrentMonth > 0)'); 34 $Row2 = $DbResult->fetch_array(); 35 $Output .= 'Počet platících klientů: <strong>'.$Row2[0].'</strong><br />'; 28 $Output .= 'Počet registrovaných klientů: <strong>'.$Finance->InternetUsers.'</strong><br />'; 29 $Output .= 'Počet platících klientů: <strong>'.$Finance->PayingUsers.'</strong><br />'; 36 30 37 31 //$DbResult = $this->Database->query('SELECT SUM(Price) FROM Product WHERE Used=1'); … … 39 33 //$Output .= 'Celková cena zařízení sítě: <strong>'.$Row4[0].' Kč</strong><br />'; 40 34 41 $DbResult = $this->Database->query('SELECT SUM(Cash) as Cash FROM MemberPayment'); 35 //$DbResult = $this->Database->query('SELECT SUM(MemberPayment.Cash) AS Cash FROM MemberPayment JOIN Member ON Member.Id=MemberPayment.Member WHERE Member.Blocked=0'); 36 $DbResult = $this->Database->query('SELECT SUM(Cash) AS Cash FROM MemberPayment'); 42 37 $Row4 = $DbResult->fetch_array(); 43 $Output .= 'Celkem peněz na účtech: <strong>'. $Row4[0].' Kč</strong><br />';38 $Output .= 'Celkem peněz na účtech: <strong>'.round($Row4[0]).' Kč</strong><br />'; 44 39 $Output .= 'Stanovená cena jedné kWh: <strong>'.$Finance->kWh.' Kč</strong><br />'; 45 40 //echo('Komunitou stanovený poplatek za správu sítě pro jednoho uživatele: <strong>'.$Sprava.' Kč</strong><br />'); 46 41 $DbResult = $this->Database->query('SELECT SUM(FamilyMemberCount) AS Family FROM Member'); 47 42 $Family = $DbResult->fetch_assoc(); 48 $Family = $Family['Family'];43 $Family = $Family['Family']; 49 44 $TotalFamily = 600; 50 45 $Output .= 'V připojených domácnostech celkem <strong>'.$Family.'</strong> občanů ze všech <strong>'.$TotalFamily.'</strong> ('.round($Family / $TotalFamily * 100).' %)<br />'; 51 46 $Output .= 'IČ: <strong>75904535</strong><br />'. 52 47 'DIČ: <strong>CZ8303255884</strong><br />'. 53 'Bankovní účet: <strong>218098370 / 0300</strong><br />'. 48 'Bankovní spojení pro platby v CZK v ČR: <strong>2600134781 / 2010</strong><br/>'. 49 'Bankovní spojení pro platby v EUR v SR: <strong>2600134781 / 8330</strong><br/>'. 54 50 '<br />'; 55 51 … … 80 76 $Output .= '<tr><td colspan="2"> </td></tr>'; 81 77 $Output .= '<tr><td><strong>Rozdíl</strong></td><td align="right"><strong>'.($TotalGain - $TotalExpense).'</strong></td></tr>'; 82 $Output .= '<tr><td> Převod do dalšího měsíce</td><td align="right">'.($TotalGain - $TotalExpense).'</td></tr>';78 $Output .= '<tr><td>Investice</td><td align="right">'.($TotalGain - $TotalExpense).'</td></tr>'; 83 79 $Output .= '</table><br />'; 84 80 /* $DbResult = $this->Database->select('', 'cash', 'id='.$Finance->UserIdNetwork);
Note:
See TracChangeset
for help on using the changeset viewer.