]> git.datanom.net - qtadmin.git/commitdiff
First upload of wblist page
authorMichael Rasmussen <mir@datanom.net>
Wed, 24 Jun 2015 23:37:32 +0000 (01:37 +0200)
committerMichael Rasmussen <mir@datanom.net>
Wed, 24 Jun 2015 23:37:32 +0000 (01:37 +0200)
wblist.php

index 1e643a2eeefb50710d2c89654b54353f72111c94..0486db7c5b50fd850c4d3124bce82c2f987fd7d5 100644 (file)
@@ -4,7 +4,7 @@
     require_once $CFG->root . 'lib/utils.inc.php';
 
        function createHeader($data) {
-               $out = '';
+               $out = '<th>Id</th>';
                foreach ($data as $head => $value) {
                        $out .= "<th>$head</th>";
                }
@@ -18,8 +18,9 @@
                }
                $headers = createHeader($raw[0]);
                $r = "<table><tr>$headers</tr>";
+               $i = 1;
                foreach ($raw as $obj) {
-                       $r .= '<tr>';
+                       $r .= "<tr><td>$i</td>";
                        foreach ($obj as $value) {
                                $r .= "<td>$value</td>";
                        }
This page took 0.048812 seconds and 5 git commands to generate.