{* $Id: tiki-debug_console_tab.tpl 17641 2009-03-26 14:24:18Z sylvieg $ *}
{* 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 *}
