From c1e881bf91137ae05b6ceb99db1234e71be200ec Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Thu, 25 Jun 2015 01:37:32 +0200 Subject: [PATCH] First upload of wblist page --- wblist.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wblist.php b/wblist.php index 1e643a2..0486db7 100644 --- a/wblist.php +++ b/wblist.php @@ -4,7 +4,7 @@ require_once $CFG->root . 'lib/utils.inc.php'; function createHeader($data) { - $out = ''; + $out = 'Id'; foreach ($data as $head => $value) { $out .= "$head"; } @@ -18,8 +18,9 @@ } $headers = createHeader($raw[0]); $r = "$headers"; + $i = 1; foreach ($raw as $obj) { - $r .= ''; + $r .= ""; foreach ($obj as $value) { $r .= ""; } -- 2.39.2
$i$value