Commit 3c03042df362a5db883025b4a59c37273cd69e79

Authored by Alex Savenko
1 parent 01b07509

ga

Showing 1 changed file with 0 additions and 30 deletions   Show diff stats
backend/views/report/index.php
... ... @@ -44,7 +44,6 @@ if (isset($_SESSION['access_token']) && $_SESSION['access_token']) {
44 44  
45 45 // Вывод ответа.
46 46 printResults($response);
47   - printDataTable($response);
48 47  
49 48  
50 49 } else {
... ... @@ -109,34 +108,5 @@ function printResults($reports) {
109 108 }
110 109 }
111 110  
112   -function printDataTable(&$results) {
113   - if (count($results->getRows()) > 0) {
114   - $table .= '<table>';
115   -
116   - // Print headers.
117   - $table .= '<tr>';
118   -
119   - foreach ($results->getColumnHeaders() as $header) {
120   - $table .= '<th>' . $header->name . '</th>';
121   - }
122   - $table .= '</tr>';
123   -
124   - // Print table rows.
125   - foreach ($results->getRows() as $row) {
126   - $table .= '<tr>';
127   - foreach ($row as $cell) {
128   - $table .= '<td>'
129   - . htmlspecialchars($cell, ENT_NOQUOTES)
130   - . '</td>';
131   - }
132   - $table .= '</tr>';
133   - }
134   - $table .= '</table>';
135   -
136   - } else {
137   - $table .= '<p>No Results Found.</p>';
138   - }
139   - print $table;
140   -}
141 111  
142 112  
... ...