mise à jour du template de debug database p/r à la nvelle version de smarty
authorx2000habouzit <x2000habouzit>
Mon, 26 Apr 2004 13:37:56 +0000 (13:37 +0000)
committerx2000habouzit <x2000habouzit>
Mon, 26 Apr 2004 13:37:56 +0000 (13:37 +0000)
templates/database-debug.tpl

index 0e68432..c146b0c 100644 (file)
 {if $query.explain}
 <table class="bicol" style="width: 75%; font-family: fixed; margin-left: 2px; margin-bottom: 3px;">
   <tr>
-    {foreach key=key item=item from=$query.explain}
+    {foreach key=key item=item from=$query.explain[0]}
     <th>{$key}</th>
     {/foreach}
   </tr>
+  {foreach item=explain_row from=$query.explain}
   <tr class="impair">
-    {foreach item=item from=$query.explain}
+    {foreach item=item from=$explain_row}
     <td class="center">{$item}</td>
     {/foreach}
   </tr>
+  {/foreach}
 </table>
 {/if}
 {/foreach}