Changeset 324 for trunk/finance
- Timestamp:
- Dec 10, 2011, 10:31:31 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 5 5 galerie 6 6 postfixadmin 7 backup
-
- Property svn:ignore
-
trunk/finance/clenove.php
r295 r324 13 13 if(!$this->System->Modules['User']->CheckPermission('Finance', 'SubjectList')) return('Nemáte oprávnění'); 14 14 15 // Seznam členů 16 $Output = 'Seznam účastníků:<br>'. 17 '<table class="WideTable">'. 18 '<tr><th>Zástupce</th><th>Subjekt</th>'; 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><th>WWW</th></tr>'; 15 $Output = 'Seznam účastníků:<br/>'; 16 $Query = 'SELECT MonthlyTotal, Cash, Subject.Id, Subject.WWW, Subject.Note, Subject.Name, NetworkDevice, InternetTariffCurrentMonth, InternetTariffNextMonth, User.Name 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'; 17 $DbResult = $this->Database->query('SELECT COUNT(*) FROM ('.$Query.') AS T'); 18 $DbRow = $DbResult->fetch_row(); 19 $PageList = GetPageList($DbRow[0]); 20 21 $Output = $PageList['Output']; 22 $Output .= '<table class="WideTable" style="font-size: small;">'; 23 24 $TableColumns = array( 25 array('Name' => 'FullName', 'Title' => 'Zástupce'), 26 array('Name' => 'Name', 'Title' => 'Subjekt'), 27 array('Name' => 'MonthlyTotal', 'Title' => 'Měsíční poplatek [Kč]'), 28 array('Name' => 'Cash', 'Title' => 'Stav účtu [Kč]'), 29 array('Name' => 'InternetTariffCurrentMonth', 'Title' => 'Běžící tarif'), 30 array('Name' => 'InternetTariffNextMonth', 'Title' => 'Příští tarif'), 31 array('Name' => 'Note', 'Title' => 'Poznámky'), 32 array('Name' => 'WWW', 'Title' => 'WWW'), 33 ); 34 $Order = GetOrderTableHeader($TableColumns, 'FullName', 0); 35 $Output .= $Order['Output']; 36 37 $Query = $Query.' '.$Order['SQL'].$PageList['SQLLimit']; 38 $DbResult = $this->Database->query($Query); 39 21 40 $TotalDevice = 0; 22 41 $TotalMonth = 0; 23 42 $TotalCash = 0; 24 $DbResult = $this->Database->query('SELECT MonthlyTotal, Cash, Subject.Id, Subject.WWW, Subject.Note, Subject.Name, NetworkDevice, InternetTariffCurrentMonth, InternetTariffNextMonth, User.Name 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 43 while($Row = $DbResult->fetch_assoc()) 26 44 { … … 40 58 $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 59 $Output .= '</table>'; 60 $Output .= $PageList['Output']; 42 61 return($Output); 43 62 }
Note:
See TracChangeset
for help on using the changeset viewer.