public static void addFooter(HttpServletRequest request,HttpServletResponse response,HttpServlet servlet,body body){
  body.addElement(new hr());
  body.addElement(new comment(" --- Footer Start --- "));
  p footer=new p();
  footer.addElement(org.compiere.Adempiere.DATE_VERSION + ": ");
  footer.addElement(new a("javascript:diag_window();","Window Info"));
  footer.addElement(" - ");
  footer.addElement(new a("javascript:parent.resizeFrame('5,*');","Menu"));
  footer.addElement(" - ");
  footer.addElement(new a("javascript:diag_navigator();","Browser Info"));
  footer.addElement(" - ");
  footer.addElement(new a("javascript:diag_request();","Request Info"));
  footer.addElement(" - ");
  footer.addElement(new a("javascript:diag_document();","Document Info"));
  footer.addElement(" - ");
  footer.addElement(new a("javascript:diag_form();","Form Info"));
  footer.addElement(" - ");
  footer.addElement(new a("javascript:toggle('DEBUG');","Servlet Info"));
  footer.addElement(" - ");
  footer.addElement(new a("javascript:diag_source();","Show Source"));
  footer.addElement("\n");
  body.addElement(footer);
  body.addElement(new br());
  body.addElement(getServletInfo(request,response,servlet));
  body.addElement(new script("hide('DEBUG');"));
  body.addElement(new comment(" --- Footer End --- "));
}

public static void addFooter ( HttpServletRequest request , HttpServletResponse response , HttpServlet servlet , body body ) { body . addElement ( new hr ( ) ) ; body . addElement ( new comment ( " --- Footer Start --- " ) ) ; p footer = new p ( ) ; footer . addElement ( org . compiere . Adempiere . DATE_VERSION + ": " ) ; footer . addElement ( new a ( "javascript:diag_window();" , "Window Info" ) ) ; footer . addElement ( " - " ) ; footer . addElement ( new a ( "javascript:parent.resizeFrame('5,*');" , "Menu" ) ) ; footer . addElement ( " - " ) ; footer . addElement ( new a ( "javascript:diag_navigator();" , "Browser Info" ) ) ; footer . addElement ( " - " ) ; footer . addElement ( new a ( "javascript:diag_request();" , "Request Info" ) ) ; footer . addElement ( " - " ) ; footer . addElement ( new a ( "javascript:diag_document();" , "Document Info" ) ) ; footer . addElement ( " - " ) ; footer . addElement ( new a ( "javascript:diag_form();" , "Form Info" ) ) ; footer . addElement ( " - " ) ; footer . addElement ( new a ( "javascript:toggle('DEBUG');" , "Servlet Info" ) ) ; footer . addElement ( " - " ) ; footer . addElement ( new a ( "javascript:diag_source();" , "Show Source" ) ) ; footer . addElement ( "\n" ) ; body . addElement ( footer ) ; body . addElement ( new br ( ) ) ; body . addElement ( getServletInfo ( request , response , servlet ) ) ; body . addElement ( new script ( "hide('DEBUG');" ) ) ; body . addElement ( new comment ( " --- Footer End --- " ) ) ; }
add footer ( with diagnostics )
