{include file="header.html"}

# {$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}

{t}No.{/t} {foreach from=$colnames item=col} | {$col} {/foreach}
{$result} {if $nrows > $pagelimit}
{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}

{/if} {else}

| {t}SQL query{/t}
| {t}Query contents:{/t} | {$query}
{t}Execute{/t}

{/if} {include file="footer.html"}