source: trunk/show_errors.php

Last change on this file was 4, checked in by chronos, 8 years ago
  • Fixed: Use table prefix from Database class.
  • Property svn:executable set to *
File size: 1.3 KB
Line 
1<?php
2
3include_once('global.php');
4
5ShowHeader(array('Výpis chyb' => '/errors.php'), 'Výpis chyb aplikací');
6
7if(array_key_exists('page',$_GET)) $Page = $_GET['page']; else $Page = 0;
8$PageItems = 20;
9
10$Cols = array('time' => 'Čas', 'application' => 'Aplikace', 'version' => 'Verze', 'release_date' => 'Datum vydání', 'unit' => 'Jednotka', 'method' => 'Metoda', 'line_number' => 'Řádek', 'message' => 'Zpráva', 'exception' => 'Vyjímka', 'address' => 'Adresa', 'state' => 'Stav', 'remote_addr' => 'IP adresa', 'remote_host' => 'Počítač');
11$Output .= '<table style="font-size: 9px;" border="1" cellspacing="0" cellpadiing="3"><tr>';
12foreach($Cols as $Index => $Item) $Output .= '<th>'.$Item.'</td>';
13$Output .= '</tr>';
14$DbResult = $Database->select('app_errors', '*', '1 ORDER BY id DESC LIMIT '.$Page*$PageItems.','.$PageItems);
15while($Row = $DbResult->fetch_assoc())
16{
17 $Output .= '<tr>';
18 foreach($Cols as $Index => $Item)
19 {
20 if($Row[$Index]=='') $Output .= '<td>&nbsp;</td>';
21 else $Output .= '<td>'.$Row[$Index].'</td>';
22 }
23 $Output .= '</tr>';
24}
25$Output .= '</table>';
26$DbResult = $Database->select('app_errors', 'COUNT(*)');
27$Count = $DbResult->fetch_assoc();
28$Output .= PagesList('show_errors.php?page=', $_GET['page'], $Count[0], $PageItems);
29
30ShowFooter();
Note: See TracBrowser for help on using the repository browser.