aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dreport.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/dreport.php')
-rw-r--r--mod/dreport.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/mod/dreport.php b/mod/dreport.php
index 7e245fbe0..3c74a9e33 100644
--- a/mod/dreport.php
+++ b/mod/dreport.php
@@ -26,7 +26,18 @@ function dreport_content(&$a) {
return;
}
- return print_r($r,true);
+
+ $o .= '<h2>' . sprintf( t('Delivery report for %1$s'),substr($mid,0,32)) . '...' . '</h2>';
+ $o .= '<table>';
+
+ foreach($r as $rr) {
+ $name = escape_tags(substr($rr['dreport_recip'],strpos($rr['dreport_recip'],' ')));
+ $o .= '<tr><td>' . $name . '</td><td>' . $rr['dreport_result'] . '</td><td>' . $rr['dreport_time'] . '</td></tr>';
+ }
+ $o .= '</table>';
+
+ return $o;
+
} \ No newline at end of file