Changeset 182 for trunk/LogShow.php
- Timestamp:
- Mar 25, 2009, 3:08:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LogShow.php
r148 r182 17 17 18 18 $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); 21 21 while($DbRow = $DbResult->fetch_array()) 22 22 { 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>'; 24 24 } 25 25 $Output .= '</table>'; … … 30 30 } 31 31 32 33 32 $System->AddModule(new LogShow()); 34 33 $System->Modules['LogShow']->GetOutput();
Note:
See TracChangeset
for help on using the changeset viewer.