source: trunk/jirihajda/show_errors.php@ 1

Last change on this file since 1 was 1, checked in by george, 17 years ago
  • Property svn:executable set to *
File size: 1.2 KB
Line 
1<?
2include_once('global.php');
3ShowHeader(array('Výpis chyb' => '/errors.php'), 'Výpis chyb aplikací');
4
5if(array_key_exists('page',$_GET)) $Page = $_GET['page']; else $Page = 0;
6$PageItems = 20;
7
8$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è');
9$Output .= '<table style="font-size: 9px;" border="1" cellspacing="0" cellpadiing="3"><tr>';
10foreach($Cols as $Index => $Item) $Output .= '<th>'.$Item.'</td>';
11$Output .= '</tr>';
12DB_Select('app_errors', '*', '1 ORDER BY id DESC LIMIT '.$Page*$PageItems.','.$PageItems);
13while($Row = DB_Row())
14{
15 $Output .= '<tr>';
16 foreach($Cols as $Index => $Item)
17 {
18 if($Row[$Index]=='') $Output .= '<td>&nbsp;</td>';
19 else $Output .= '<td>'.$Row[$Index].'</td>';
20 }
21 $Output .= '</tr>';
22}
23$Output .= '</table>';
24DB_Select('app_errors', 'COUNT(*)');
25$Count = DB_Row();
26$Output .= PagesList('show_errors.php?page=', $_GET['page'], $Count[0], $PageItems);
27ShowFooter();
28
29?>
Note: See TracBrowser for help on using the repository browser.