EventView.php
[Pman.Admin] / EventView.php
index 3b6ef90..36d6e9c 100644 (file)
@@ -18,7 +18,7 @@ class Pman_Admin_EventView extends Pman
         
     }
     
-    function get($id)
+    function get($id, $opts = Array())
     {   
         $ev = DB_DataObject::Factory('Events');
         if (!$ev->get((int)$id)) {
@@ -72,7 +72,7 @@ class Pman_Admin_EventView extends Pman
         }
         echo '<PRE>' . htmlspecialchars(print_r(json_decode(file_get_contents($file)), true)) . '</PRE>';
         
-        echo '<BR/><PRE>'. htmlspecialchars($ev->remarks) . '</PRE>';
+//        echo '<BR/><PRE>'. htmlspecialchars($ev->remarks) . '</PRE>';
         
         $json = json_decode($ev->remarks, JSON_PRETTY_PRINT);
         
@@ -86,7 +86,7 @@ class Pman_Admin_EventView extends Pman
         
         
         foreach($filesJ->FILES as $k=>$f){
-            $ip = $ff->baseURL."/Images/events/". $ev->id . '/'. $f->tmp_name;
+            $ip = $this->baseURL."/Images/events/". $ev->id . '/'. $f->tmp_name;
             echo '<a href="'.$ip.'/download">' . htmlspecialchars( $k . ' - ' . $f->name ) . '</a><br/>';
         }