X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/70c7fd5765720621553b3ddaff1009c795f49a76..c6e155714d4facf6297b5159057c1483a59609c8:/wblist.php diff --git a/wblist.php b/wblist.php index eeb5409..1f42f94 100644 --- a/wblist.php +++ b/wblist.php @@ -4,9 +4,9 @@ require_once $CFG->root . 'lib/utils.inc.php'; function createHeader($data) { - $out = ''; + $out = 'Id'; foreach ($data as $head => $value) { - $out .= '$head'; + $out .= "$head"; } return $out; @@ -18,12 +18,14 @@ } $headers = createHeader($raw[0]); $r = "$headers"; + $i = 1; foreach ($raw as $obj) { - $r .= ''; + $r .= ""; foreach ($obj as $value) { $r .= ""; } $r .= ''; + $i++; } $r .= '
$i$value
';