@@ 16-27 (lines=12) @@ | ||
13 | </tr> |
|
14 | </thead> |
|
15 | <tbody> |
|
16 | <?php $i = 1; $total = 0; foreach( $report['queries'] as $query ) { ?> |
|
17 | <tr> |
|
18 | <td><?=$i++?></td> |
|
19 | <td class="sql"><?=nl2br($query['query'])?></td> |
|
20 | <td> |
|
21 | <?php foreach( $query['params'] as $k => $v ) { ?> |
|
22 | <?="<var>{$k}</var> {$v}<br />\n"?> |
|
23 | <?php } ?> |
|
24 | </td> |
|
25 | <td><?=number_format($query['duration'] * 1000, 3)?> ms<?php $total += $query['duration']?></td> |
|
26 | </tr> |
|
27 | <?php } ?> |
|
28 | <tr> |
|
29 | <td colspan="3" class="caption">Total:</td> |
|
30 | <td><?=number_format($total * 1000, 3)?> ms</td> |
@@ 223-234 (lines=12) @@ | ||
220 | <th class="left">Parameters</th> |
|
221 | <th style="width: 120px">Duration</th> |
|
222 | </tr> |
|
223 | <?php $i = 1; $total = 0; foreach( $report['queries'] as $query ) { ?> |
|
224 | <tr> |
|
225 | <td class="center caption"><?=$i++?></td> |
|
226 | <td class="left caption sql"><?=nl2br($query['query'])?></td> |
|
227 | <td class="left caption"> |
|
228 | <?php foreach( $query['params'] as $k => $v ) { ?> |
|
229 | <?="{$k} => {$v}<br />\n"?> |
|
230 | <?php } ?> |
|
231 | </td> |
|
232 | <td><?=number_format($query['duration'] * 1000, 3)?> ms<?php $total += $query['duration']?></td> |
|
233 | </tr> |
|
234 | <?php } ?> |
|
235 | <tr> |
|
236 | <td colspan="3" class="caption">Total:</td> |
|
237 | <td><?=number_format($total * 1000, 3)?> ms</td> |