{* $Header: /cvsroot/tikiwiki/tiki/templates/debug/tiki-debug_console_tab.tpl,v 1.1.2.2 2003/07/26 01:47:26 zaufi Exp $ *}
{* Debug console tab -- to display result of command *}


{* Display command results if we have smth to show... *}
{if $result_type ne NO_RESULT}

  <pre>&gt;&nbsp;{$command|escape:"html"}</pre>

  {if    $result_type == TEXT_RESULT }

    {* Show text in PRE section *}
    <pre>{strip}
      {$command_result|escape:"html"|wordwrap:90:"\n":true|replace:"\n":"<br/>"}
    {/strip}</pre>

  {elseif $result_type == HTML_RESULT }

    {* Type HTML as is *}
    {$command_result}

  {elseif $result_type == TPL_RESULT && strlen($result_tpl) > 0}

    {* Result have its own template *}
    {include file=$result_tpl}

  {/if}{* Check result type *}

<br/>
{/if}{* We have smth to show as result *}
