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