]> git.datanom.net - qtadmin.git/blobdiff - wblist.php
First upload of wblist page
[qtadmin.git] / wblist.php
index eeb540965814e79f236d800a8e4c606a6ac58409..1f42f94f0f79450b0a2fb35e3565e30301391757 100644 (file)
@@ -4,9 +4,9 @@
     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>';
+                       $out .= "<th>$head</th>";
                }
                
                return $out;
                }
                $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>";
                        }
                        $r .= '</tr>';
+                       $i++;
                }
                $r .= '</table>';
                
This page took 0.029007 seconds and 5 git commands to generate.