| 1 | {foreach item=query from=$trace_data} |
| 2 | <table class="light" style="width: 100%; font-family: monospace"> |
| 3 | <tr> |
| 4 | <td><strong>QUERY:</strong><br />{$query.query}</td> |
| 5 | </tr> |
| 6 | {if $query.error} |
| 7 | <tr> |
| 8 | <td><strong>ERROR:</strong><br />{$query.error}</td> |
| 9 | </tr> |
| 10 | {/if} |
| 11 | </table> |
| 12 | {if $query.explain} |
| 13 | <table class="light" style="width: 100%; font-family: monospace"> |
| 14 | <tr> |
| 15 | {foreach key=key item=item from=$query.explain[0]} |
| 16 | <th>{$key}</th> |
| 17 | {/foreach} |
| 18 | </tr> |
| 19 | {foreach item=explain_row from=$query.explain} |
| 20 | <tr> |
| 21 | {foreach item=item from=$explain_row} |
| 22 | <td>{$item}</td> |
| 23 | {/foreach} |
| 24 | </tr> |
| 25 | {/foreach} |
| 26 | </table> |
| 27 | {/if} |
| 28 | <br /> |
| 29 | {/foreach} |