Changeset 182


Ignore:
Timestamp:
Mar 25, 2009, 3:08:48 PM (16 years ago)
Author:
george
Message:
  • Opraveno: Stránkování na stránce zobrazání záznamů.
  • Opraveno: Zobrazování stránky seznamu subjektů.
Location:
trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LogShow.php

    r148 r182  
    1717
    1818    $Output = '<div align="center"><table class="WideTable" style="font-size: small;">';
    19     $Output .= '<tr><th>Čas</th><th>Modul</th><th>Uživatel</th><th>Operace</th><th>Hodnota</th></tr>';
    20     $DbResult = $this->Database->query('SELECT *, `User`.`Name` as UserName FROM `is`.`Log` JOIN `is`.`User` ON `User`.`Id` = `Log`.`User` ORDER BY Time DESC LIMIT '.$Page.','.$this->RowPerPage);
     19    $Output .= '<tr><th>Čas</th><th>Uživatel</th><th>Modul</th><th>Operace</th><th>Hodnota</th></tr>';
     20    $DbResult = $this->Database->query('SELECT *, `User`.`Name` as UserName FROM `is`.`Log` LEFT JOIN `is`.`User` ON `User`.`Id` = `Log`.`User` ORDER BY Time DESC LIMIT '.$Page * $this->RowPerPage.','.$this->RowPerPage);
    2121    while($DbRow = $DbResult->fetch_array())
    2222    {
    23       $Output .= '<tr><td>'.$DbRow['Time'].'</td><td>'.$DbRow['Module'].'</td><td>'.$DbRow['UserName'].'</td><td>'.$DbRow['Operation'].'</td><td>'.$DbRow['Value'].'</td></tr>';
     23      $Output .= '<tr><td>'.$DbRow['Time'].'</td><td>'.$DbRow['UserName'].'</td><td>'.$DbRow['Module'].'</td><td>'.$DbRow['Operation'].'</td><td>'.$DbRow['Value'].'</td></tr>';
    2424    }
    2525    $Output .= '</table>';
     
    3030}
    3131
    32 
    3332$System->AddModule(new LogShow());
    3433$System->Modules['LogShow']->GetOutput();
  • trunk/Readme.txt

    r177 r182  
    1818
    1919  finance/doklady - účetní doklady
     20  aktuality/uploads - přílohy aktualit
     21
     22
     234) Práva složek
     24
     25  webcam - vlastníka nastavit na apache
     26  finance/doklady - vlastníka nastavit na apache
     27  aktuality/uploads - vlastníka nastavit na apache
     28 
  • trunk/finance/manage.php

    r174 r182  
    5858        //$Output .= '<a href="?Operation=ConvertData">Převést tabulky</a><br />';
    5959                    $Output .= '<a href="prepocet.php">Přepočet financí</a><br />';
    60                     $Output .= '<a href="clenove.php">Seznam subjektů</a><br />';
     60                    $Output .= '<a href="clenove.php">Seznam členů</a><br />';
    6161                    $Output .= '<a href="zivnost.php">Živnost</a><br />';
    6262    }
  • trunk/finance/zivnost.php

    r167 r182  
    197197        $Output .= '<table style="font-size: smaller;" class="WideTable">';
    198198        $Output .= '<tr><th>Jméno</th><th>Závazky [Kč]</th><th>Pohledávky [Kč]</th><th>Příjmy [Kč]</th><th>Výdaje [Kč]</th><th>Stav účtu</th><th>Starý systém</th></tr>';
    199         $DbResult = $this->Database->query('SELECT Id, Name, 0 AS Cash, (SELECT SUM(T1.Value) FROM FinanceOperation AS T1 WHERE T1.SourceSubject = Subject.Id AND T1.DestinationSubject = 71) as Claims, (SELECT SUM(T2.Value) FROM FinanceOperation AS T2 WHERE T2.SourceSubject = Subject.Id AND T2.DestinationSubject = 71 AND Time IS NULL) as OpenedClaims, (SELECT SUM(T3.Value) FROM FinanceOperation AS T3 WHERE T3.DestinationSubject = Subject.Id AND T3.SourceSubject = 71) as Liabilities, (SELECT SUM(T4.Value) FROM FinanceOperation AS T4 WHERE T4.DestinationSubject = Subject.Id AND T4.SourceSubject = 71 AND Time IS NULL) as OpenedLiabilities, (SELECT SUM(T5.Value) FROM FinanceOperation AS T5 WHERE T5.DestinationSubject = Subject.Id AND T5.SourceSubject = 96) as Gains, (SELECT SUM(T6.Value) FROM FinanceOperation AS T6 WHERE T6.SourceSubject = Subject.Id AND T6.DestinationSubject = 96) as Spends FROM Subject ORDER BY Name');
     199        $DbResult = $this->Database->query('SELECT Id, Name, 0 AS Cash, '.
     200        '(SELECT SUM(T1.Value) FROM FinanceClaimsLiabilities AS T1 WHERE (T1.Subject = Subject.Id) AND (T1.Value > 0)) as Claims, '.
     201        '(SELECT SUM(T2.Value) FROM FinanceClaimsLiabilities AS T2 WHERE (T2.Subject = Subject.Id) AND (T2.Value > 0) AND (TimePayment IS NULL)) as OpenedClaims, '.
     202        '(SELECT -SUM(T3.Value) FROM FinanceClaimsLiabilities AS T3 WHERE (T3.Subject = Subject.Id) AND (T3.Value  < 0)) as Liabilities, '.
     203        '(SELECT -SUM(T4.Value) FROM FinanceClaimsLiabilities AS T4 WHERE (T4.Subject = Subject.Id) AND (T4.Value < 0) AND (TimePayment IS NULL)) AS OpenedLiabilities, '.
     204        '(SELECT SUM(T5.Value) FROM FinanceOperation AS T5 WHERE (T5.Subject = Subject.Id) AND (T5.Value > 0)) AS Gains, '.
     205        '(SELECT -SUM(T6.Value) FROM FinanceOperation AS T6 WHERE (T6.Subject = Subject.Id) AND (T6.Value < 0)) AS Spends '.
     206        'FROM Subject ORDER BY Name');
    200207        while($Row = $DbResult->fetch_assoc())
    201208        {
    202           $Output .= '<tr><td><a href="?table=SubjectAccount&Id='.$Row['Id'].'">'.$Row['Name'].'</a></td><td>'.$Row['Liabilities'].'/'.$Row['OpenedLiabilities'].'</td><td>'.$Row['Claims'].'/'.$Row['OpenedClaims'].'</td><td>'.$Row['Gains'].'</td><td>'.$Row['Spends'].'</td><td>'.($Row['Gains'] - $Row['Spends'] - $Row['Claims'] + $Row['Liabilities']).'</td><td>'.$Row['Cash'].'</td></tr>';
     209          $Output .= '<tr><td style="text-align: left;"><a href="?table=SubjectAccount&Id='.$Row['Id'].'">'.$Row['Name'].'</a></td><td>'.$Row['Liabilities'].' / '.$Row['OpenedLiabilities'].'</td><td>'.$Row['Claims'].' / '.$Row['OpenedClaims'].'</td><td>'.$Row['Gains'].'</td><td>'.$Row['Spends'].'</td><td>'.($Row['Gains'] - $Row['Spends'] - $Row['Claims'] + $Row['Liabilities']).'</td><td>'.$Row['Cash'].'</td></tr>';
    203210        }
    204211        $Output .= '</table>';
  • trunk/is/administration_page.php

    r163 r182  
    2222<a href="'.$this->System->Config['Web']['RootFolder'].'/is/restart.php">Správa restartů služeb</a><br>
    2323<a href="'.$this->System->Config['Web']['RootFolder'].'/backup/index.php">Nastavení zálohování</a><br>
     24<a href="'.$this->System->Config['Web']['RootFolder'].'/LogShow.php">Záznamy operací</a><br>
    2425<a href="tc.php?dev=imq0">Traffic control IMQ0(Inet down)</a><br>
    2526<a href="tc.php?dev=imq1">Traffic control IMQ1(Inet up)</a><br>
Note: See TracChangeset for help on using the changeset viewer.