{include file="header.html"} {literal} {/literal}

{$layout.pagetitle}

{if $page} {if $executetime}

{t}Query:{/t} {$query}
{t}Execution time:{/t} {$executetime|string_format:"%0.3f"} s
{t}Rows count:{/t} {$nrows}
{t}Execute again{/t}   {t}Print{/t}   {t}Cancel{/t}

{/if} {if $result}
{foreach from=$colnames item=col} {/foreach} {$result} {if $nrows > $pagelimit} {/if}
{t}No.{/t}{$col}
{t}Page:{/t} {if $page > 1} «««{else}««« {/if} {section name=pcnt loop=$nrows step=$pagelimit} {if $page eq $smarty.section.pcnt.rownum}[{else} {/if} {$smarty.section.pcnt.rownum} {if $page eq $smarty.section.pcnt.rownum}]{else}{/if} {/section} {if $page < $smarty.section.pcnt.rownum} »»»{else}»»» {/if} (rekordy {math equation="x + 1" x=$start} - {if $start + $pagelimit > $nrows}{$nrows}{else}{math equation="x + y" x=$start y=$pagelimit}{/if} z {$nrows})
{/if} {else}
{t}SQL query{/t}
{t}Query contents:{/t}
{t}Execute{/t}
{/if}
{include file="footer.html"}