sync
[Pman.Admin] / EventView.php
index 0eab0a5..bf0d1a4 100644 (file)
@@ -14,8 +14,7 @@ class Pman_Admin_EventView extends Pman
             $this->jerrAuth();
         }
         return true;
-        
-        
+         
     }
     
     function get($id, $opts = Array())
@@ -76,7 +75,7 @@ class Pman_Admin_EventView extends Pman
         
         if (!empty($ev->remarks)) {
             echo "<HR><H2>Remarks:</H2>";
-            echo '<BR/><PRE>'. htmlspecialchars($ev->remarks) . '</PRE>';
+            echo '<PRE>'. htmlspecialchars($ev->remarks) . '</PRE>';
         }
         
         
@@ -86,16 +85,17 @@ class Pman_Admin_EventView extends Pman
             echo "<HR><H2>JSON DECODE Data:</H2>";
             echo '<PRE>' . print_r($json, true) . '</PRE>';
         }
-        
+        $filesJ = json_decode(file_get_contents($file));
         if (!empty($filesJ->FILES )) {
-            $filesJ = json_decode(file_get_contents($file));
-            echo '<br /><PRE>Download files</PRE>';
+             echo "<HR><H2>Download files:</H2><ul>";
             
             
             foreach($filesJ->FILES as $k=>$f){
                 $ip = $this->baseURL."/Images/events/". $ev->id . '/'. $f->tmp_name;
-                echo '<a target="_new" href="'.$ip.'/download">' . htmlspecialchars( $k . ' - ' . $f->name ) . '</a><br/>';
+                
+                echo '<li><a target="_new" href="'.$ip.'/download">' . htmlspecialchars( $k . ' - ' . $f->name ) . '</a><br/>';
             }
+            echo "</ul>";
             
         }