Changeset 182 for trunk/LogShow.php


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ů.
File:
1 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();
Note: See TracChangeset for help on using the changeset viewer.