1. Check existence of mb_string, mysql and xml extensions before installation.
[openemr.git] / gacl / admin / templates / phpgacl / debug.tpl
bloba273172e85fbe64dea10bfa1ba079811dc9d7ab3
1 {* Smarty *}
3 {* debug.tpl, last updated version 2.0.1 *}
5 {assign_debug_info}
7 <SCRIPT language=javascript>
8         if( self.name == '' ) {ldelim}
9            var title = 'Console';
10         {rdelim}
11         else {ldelim}
12            var title = 'Console_' + self.name;
13         {rdelim}
14         _smarty_console = window.open("",title.value,"width=680,height=600,resizable,scrollbars=yes");
15         _smarty_console.document.write("<HTML><TITLE>Smarty Debug Console_"+self.name+"</TITLE><BODY bgcolor=#ffffff>");
16         _smarty_console.document.write("<table border=0 width=100%>");
17         _smarty_console.document.write("<tr bgcolor=#cccccc><th colspan=2>Smarty Debug Console</th></tr>");
18         _smarty_console.document.write("<tr bgcolor=#cccccc><td colspan=2><b>included templates & config files (load time in seconds):</b></td></tr>");
19         {section name=templates loop=$_debug_tpls}
20                 _smarty_console.document.write("<tr bgcolor={if %templates.index% is even}#eeeeee{else}#fafafa{/if}><td colspan=2><tt>{section name=indent loop=$_debug_tpls[templates].depth}&nbsp;&nbsp;&nbsp;{/section}<font color={if $_debug_tpls[templates].type eq "template"}brown{elseif $_debug_tpls[templates].type eq "insert"}black{else}green{/if}>{$_debug_tpls[templates].filename}</font> <font size=-1><i>({$_debug_tpls[templates].exec_time|string_format:"%.5f"}){if %templates.index% eq 0} (total){/if}</i></font></tt></td></tr>");
21         {sectionelse}
22                 _smarty_console.document.write("<tr bgcolor=#eeeeee><td colspan=2><tt><i>no templates included</i></tt></td></tr>");    
23         {/section}
24         _smarty_console.document.write("<tr bgcolor=#cccccc><td colspan=2><b>assigned template variables:</b></td></tr>");
25         {section name=vars loop=$_debug_keys}
26                 _smarty_console.document.write("<tr bgcolor={if %vars.index% is even}#eeeeee{else}#fafafa{/if}><td valign=top><tt><font color=blue>{ldelim}${$_debug_keys[vars]}{rdelim}</font></tt></td><td nowrap><tt><font color=green>{$_debug_vals[vars]|@debug_print_var}</font></tt></td></tr>");
27         {sectionelse}
28                 _smarty_console.document.write("<tr bgcolor=#eeeeee><td colspan=2><tt><i>no template variables assigned</i></tt></td></tr>");   
29         {/section}
30         _smarty_console.document.write("<tr bgcolor=#cccccc><td colspan=2><b>assigned config file variables (outter template scope):</b></td></tr>");
31         {section name=config_vars loop=$_debug_config_keys}
32                 _smarty_console.document.write("<tr bgcolor={if %config_vars.index% is even}#eeeeee{else}#fafafa{/if}><td valign=top><tt><font color=maroon>{ldelim}#{$_debug_config_keys[config_vars]}#{rdelim}</font></tt></td><td><tt><font color=green>{$_debug_config_vals[config_vars]|@debug_print_var}</font></tt></td></tr>");
33         {sectionelse}
34                 _smarty_console.document.write("<tr bgcolor=#eeeeee><td colspan=2><tt><i>no config vars assigned</i></tt></td></tr>");  
35         {/section}
36         _smarty_console.document.write("</table>");
37         _smarty_console.document.write("</BODY></HTML>");
38         _smarty_console.document.close();
39 </SCRIPT>