X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=blobdiff_plain;f=EventView.php;h=bf0d1a4305043147216ab614df11b490634d89c0;hp=af1300f578f1c6e77c38f3661e0f2f78833be9c9;hb=HEAD;hpb=98fcd6c92e4d35aa346227e67c73e42a183ec1b3 diff --git a/EventView.php b/EventView.php index af1300f..bf0d1a4 100644 --- a/EventView.php +++ b/EventView.php @@ -14,8 +14,7 @@ class Pman_Admin_EventView extends Pman $this->jerrAuth(); } return true; - - + } function get($id, $opts = Array()) @@ -43,9 +42,10 @@ class Pman_Admin_EventView extends Pman // core_event_audit // the event file.. $d= DB_DataObject::factory('core_event_audit'); - if (is_a($d,'DB_DataObject')) { + $d->event_id = $ev->id; // we can set that as the above returns error or dataobject.. + if (is_a($d,'DB_DataObject') && $d->count()) { echo "
' . htmlspecialchars(print_r(json_decode(file_get_contents($file)), true)) . ''; if (!empty($ev->remarks)) { echo "
'. htmlspecialchars($ev->remarks) . ''; } - echo '
'. htmlspecialchars($ev->remarks) . ''; + $json = json_decode($ev->remarks, JSON_PRETTY_PRINT); @@ -83,16 +85,17 @@ class Pman_Admin_EventView extends Pman echo "
' . print_r($json, true) . ''; } - + $filesJ = json_decode(file_get_contents($file)); if (!empty($filesJ->FILES )) { - $filesJ = json_decode(file_get_contents($file)); - echo '
Download files'; + echo "