1 {if $db_trace or $call_trace or $plugins_trace}
3 <script type="text/javascript">
5 function show_debug_trace( title, trace )
7 _diogenes_debug = window.open("",title.value,"width=680,height=600,resizable,scrollbars=yes");
8 _diogenes_debug.document.write("<HTML><HEAD>");
9 _diogenes_debug.document.write("<TITLE>" + title + "</TITLE>");
10 {/literal}_diogenes_debug.document.write("<link rel=\"stylesheet\" href=\"{$debug_css}\" type=\"text/css\" />");{literal}
11 _diogenes_debug.document.write("</HEAD>");
12 _diogenes_debug.document.write("<BODY style=\"padding: 10px;\">");
13 _diogenes_debug.document.write("<h2>" + title + "</h2>");
14 _diogenes_debug.document.write(trace);
15 _diogenes_debug.document.write("</BODY></HTML>");
16 _diogenes_debug.document.close();
19 function show_db_trace()
21 {/literal}show_debug_trace('{$msg_debug_dbtrace}', '{$db_trace|escape:"javascript"}');{literal}
24 function show_call_trace()
26 {/literal}show_debug_trace('{$msg_debug_calltrace}', '{$call_trace|escape:"javascript"}');{literal}
29 function show_plugins_trace()
31 {/literal}show_debug_trace('{$msg_debug_plugins}', '{$plugins_trace|escape:"javascript"}');{literal}
38 <div class="title">{$msg_debug_bar}</div>
40 <div class="item" id="db-trace"><a href="javascript:show_db_trace();">{$msg_debug_dbtrace}</a></div>
43 <div class="item" id="call-trace"><a href="javascript:show_call_trace();">{$msg_debug_calltrace}</a></div>
46 <div class="item" id="plugins-trace"><a href="javascript:show_plugins_trace();">{$msg_debug_plugins}</a></div>