[% PROCESS inputs; PROCESS logic_header.ttk; WRAPPER html/html; INCLUDE header.ttk title="Basic Report Types"; WRAPPER html/body html.body.onload= "if (document.getElementById('templatename')) {" _ "document.getElementById('templatename').focus();" _ "document.getElementById('templatename').select();}"; INCLUDE logout.ttk; IF !CGI.param('id'); IF CGI.param('detail'); %]|No Details (All)[% ELSE; %]|Details (All)[% END; PROCESS all_stage1; ELSE; PROCESS one_stage1; END; END; INCLUDE footer.ttk; END; #============================================================================= BLOCK one_stage1; %]|Show all[% table_xpath = '/reporter/tables/table[@id="' _ CGI.param('id') _ '"]'; table = config.findnodes(table_xpath); fact_table = table.findvalue('@id'); logme(fact_table); INCLUDE stage1_summary; INCLUDE stage2_new IF CGI.param('create_stage2') == 1; END; BLOCK all_stage1; '