projects
/
Pman.Admin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
98fcd6c
)
EventView.php
author
Alan Knowles
<alan@roojs.com>
Tue, 9 Oct 2018 07:10:17 +0000
(15:10 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 9 Oct 2018 07:10:17 +0000
(15:10 +0800)
EventView.php
patch
|
blob
|
history
diff --git
a/EventView.php
b/EventView.php
index
af1300f
..
3df1549
100644
(file)
--- a/
EventView.php
+++ b/
EventView.php
@@
-43,7
+43,7
@@
class Pman_Admin_EventView extends Pman
// core_event_audit
// the event file..
$d= DB_DataObject::factory('core_event_audit');
// core_event_audit
// the event file..
$d= DB_DataObject::factory('core_event_audit');
- if (is_a($d,'DB_DataObject')) {
+ if (is_a($d,'DB_DataObject')
&& $d->count()
) {
echo "<H2>Changed Data:</H2>";
$d->event_id = $ev->id;
foreach($d->fetchAll() as $d) {
echo "<H2>Changed Data:</H2>";
$d->event_id = $ev->id;
foreach($d->fetchAll() as $d) {
@@
-70,12
+70,14
@@
class Pman_Admin_EventView extends Pman
echo "not available (missing file) $file";
exit;
}
echo "not available (missing file) $file";
exit;
}
+
echo '<PRE>' . htmlspecialchars(print_r(json_decode(file_get_contents($file)), true)) . '</PRE>';
if (!empty($ev->remarks)) {
echo "<HR><H2>Remarks:</H2>";
echo '<PRE>' . htmlspecialchars(print_r(json_decode(file_get_contents($file)), true)) . '</PRE>';
if (!empty($ev->remarks)) {
echo "<HR><H2>Remarks:</H2>";
+ echo '<BR/><PRE>'. htmlspecialchars($ev->remarks) . '</PRE>';
}
}
- echo '<BR/><PRE>'. htmlspecialchars($ev->remarks) . '</PRE>';
+
$json = json_decode($ev->remarks, JSON_PRETTY_PRINT);
$json = json_decode($ev->remarks, JSON_PRETTY_PRINT);