Changeset 167 for www/finance/clenove.php
- Timestamp:
- Mar 24, 2009, 11:44:03 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/finance/clenove.php
r164 r167 10 10 { 11 11 $Finance = $this->System->Modules['Finance']; 12 $this->System->Modules['Finance']->RecalculateTariffs(1);13 if(!$this->System->Modules['User']->CheckPermission('Finance', 'SubjectList')) return('Nemáte oprávnění');12 $this->System->Modules['Finance']->RecalculateTariffs(1); 13 if(!$this->System->Modules['User']->CheckPermission('Finance', 'SubjectList')) return('Nemáte oprávnění'); 14 14 15 15 // Seznam členů 16 16 $Output = 'Seznam účastníků:<br>'. 17 '<table style="font-size: smaller;" border="1" cellspacing="0" cellpadding="3">'.18 '<tr><th> JZástupce</th><th>Subjekt</th>';17 '<table class="WideTable">'. 18 '<tr><th>Zástupce</th><th>Subjekt</th>'; 19 19 //<th>Cena za zařízení [Kč]</th> 20 $Output .= '<th>Měsíční poplatek [Kč]</th><th>Stav účtu [Kč]</th><th>Běžící tarif</th><th>Příští tarif</th>< th>Poznámky</th></tr>';20 $Output .= '<th>Měsíční poplatek [Kč]</th><th>Stav účtu [Kč]</th><th>Běžící tarif</th><th>Příští tarif</th></tr>'; 21 21 $TotalDevice = 0; 22 22 $TotalMonth = 0; 23 23 $TotalCash = 0; 24 $DbResult = $this->Database->query('SELECT MonthlyTotal, Cash, Subject.Id, Subject.Name, NetworkDevice, InternetTariffCurrentMonth, InternetTariffNextMonth, CONCAT(User.SecondName, " ", User.FirstName) AS FullName FROM MemberPayment JOIN Member ON Member.Id=MemberPayment.MemberJOIN Subject ON Subject.Id=Member.Subject JOIN User ON User.Id=Member.ResponsibleUser ORDER BY FullName');24 $DbResult = $this->Database->query('SELECT MonthlyTotal, Cash, Subject.Id, Subject.Name, NetworkDevice, InternetTariffCurrentMonth, InternetTariffNextMonth, CONCAT(User.SecondName, " ", User.FirstName) AS FullName FROM MemberPayment LEFT JOIN Member ON Member.Id=MemberPayment.Member LEFT JOIN Subject ON Subject.Id=Member.Subject JOIN User ON User.Id=Member.ResponsibleUser ORDER BY FullName'); 25 25 while($Row = $DbResult->fetch_assoc()) 26 26 { … … 38 38 $Output .= '<tr><td><strong>Celkem</strong></td><td> </td>'; 39 39 //<td align="right"><strong>'.$TotalDevice.'</strong></td> 40 $Output .= '<td align="right"><strong>'.$TotalMonth.'</strong></td><td align="right"><strong>'.$TotalCash.'</strong></td><td align="right"> </td><td align="right"> </td>< td align="right"> </td></tr>';40 $Output .= '<td align="right"><strong>'.$TotalMonth.'</strong></td><td align="right"><strong>'.$TotalCash.'</strong></td><td align="right"> </td><td align="right"> </td></tr>'; 41 41 $Output .= '</table>'; 42 42 return($Output);
Note:
See TracChangeset
for help on using the changeset viewer.