-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Wojciech Brüggemann
committed
Jul 25, 2014
1 parent
96cabc0
commit 0551fa7
Showing
4 changed files
with
97 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
body {padding: 0 2ex;} | ||
table,th,td {border-collapse: collapse; border: 1px solid silver; padding: 0.5em 1ex;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<!DOCTYPE html> | ||
<html lang="pl"> | ||
|
||
<head> | ||
<title></title> | ||
<link rel="stylesheet" href="history.css" /> | ||
<meta charset="UTF-8" /> | ||
</head> | ||
|
||
<body> | ||
|
||
<?php | ||
|
||
function v($v, $czyscHtmlIExit = false) { | ||
if ($czyscHtmlIExit) ob_end_clean(); | ||
echo '<pre>' . print_r($v, true) . '</pre>'; | ||
if ($czyscHtmlIExit) exit; | ||
} | ||
function vv($v, $czyscHtmlIExit = false) { | ||
if ($czyscHtmlIExit) ob_end_clean(); | ||
echo '<pre>'; | ||
var_dump($v); | ||
echo '</pre>'; | ||
if ($czyscHtmlIExit) exit; | ||
} | ||
function vvv($var, & $result = null, $is_view = true) | ||
{ | ||
if (is_array($var) || is_object($var)) foreach ($var as $key=> $value) vvv($value, $result[$key], false); | ||
else $result = $var; | ||
|
||
if ($is_view) v($result); | ||
} | ||
|
||
|
||
|
||
foreach (glob('./history/*') as $f) { | ||
|
||
echo '<h1>'.basename($f).'</h1>'; | ||
|
||
$data = file($f, FILE_IGNORE_NEW_LINES); | ||
echo '<table>'; | ||
foreach ($data as $e) { | ||
$d = explode('&', $e); | ||
echo '<tr>' | ||
.'<td>'.date('H:i:s', (int)$d[0]).'</td>' | ||
.'<td>'.$d[1].'</td>' | ||
.'<td>'.$d[2].'</td>' | ||
.'</tr>'; | ||
} | ||
echo '</table>'; | ||
} | ||
|
||
?> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters