Changeset 3 for trunk/show_errors.php
- Timestamp:
- Jul 27, 2016, 8:36:02 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/show_errors.php
r1 r3 1 1 <?php 2 2 3 include_once('global.php'); 4 3 5 ShowHeader(array('Výpis chyb' => '/errors.php'), 'Výpis chyb aplikací'); 4 6 … … 6 8 $PageItems = 20; 7 9 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è');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č'); 9 11 $Output .= '<table style="font-size: 9px;" border="1" cellspacing="0" cellpadiing="3"><tr>'; 10 foreach($Cols as $Index => $Item) $Output .= '<th>'.$Item.'</td>'; 12 foreach($Cols as $Index => $Item) $Output .= '<th>'.$Item.'</td>'; 11 13 $Output .= '</tr>'; 12 DB_Select('app_errors', '*', '1 ORDER BY id DESC LIMIT '.$Page*$PageItems.','.$PageItems);13 while($Row = DB_Row())14 $DbResult = $Database->select($DB_Prefix.'app_errors', '*', '1 ORDER BY id DESC LIMIT '.$Page*$PageItems.','.$PageItems); 15 while($Row = $DbResult->fetch_assoc()) 14 16 { 15 17 $Output .= '<tr>'; 16 foreach($Cols as $Index => $Item) 18 foreach($Cols as $Index => $Item) 17 19 { 18 if($Row[$Index]=='') $Output .= '<td> </td>'; 20 if($Row[$Index]=='') $Output .= '<td> </td>'; 19 21 else $Output .= '<td>'.$Row[$Index].'</td>'; 20 22 } … … 22 24 } 23 25 $Output .= '</table>'; 24 DB_Select('app_errors', 'COUNT(*)');25 $Count = DB_Row();26 $DbResult = $Database->select($DB_Prefix.'app_errors', 'COUNT(*)'); 27 $Count = $DbResult->fetch_assoc(); 26 28 $Output .= PagesList('show_errors.php?page=', $_GET['page'], $Count[0], $PageItems); 29 27 30 ShowFooter(); 28 29 ?>
Note:
See TracChangeset
for help on using the changeset viewer.