1{* $Id$ *}
2{* Debug console tab -- to display result of command *}
3
4
5{* Display command results if we have smth to show... *}
6{if $result_type ne 0} {*NO_RESULT *}
7
8	<pre>&gt;&nbsp;{$command|escape:"html"}</pre>
9
10	{if $result_type == 1}{*TEXT_RESULT*}
11
12		{* Show text in PRE section *}
13		<pre>{strip}
14			{$command_result|escape:"html"|wordwrap:90:"\n":true|replace:"\n":"<br>"}
15		{/strip}</pre>
16
17	{elseif $result_type == 2}{*HTML_RESULT*}
18
19		{* Type HTML as is *}
20		{$command_result}
21
22	{elseif $result_type == 3 && strlen($result_tpl) > 0}{*TPL_RESULT*}
23
24		{* Result have its own template *}
25		{include file=$result_tpl}
26
27	{/if}{* Check result type *}
28
29	<br>
30{/if}{* We have smth to show as result *}
31