1 7 8 package projectmanagement.presentation.payrates; 9 10 import projectmanagement.presentation.*; 11 12 import org.w3c.dom.*; 13 import org.w3c.dom.html.*; 14 15 import com.lutris.appserver.server.httpPresentation.*; 17 import org.enhydra.xml.xmlc.XMLObject; 18 19 import java.io.IOException ; 21 22 25 public class Context extends BasePO { 26 27 private static String DISPLAY_ADMIN= "displayAdmin"; 28 29 32 protected int getRequiredAuthLevel() { 33 return 2; 34 } 35 36 39 public XMLObject handleDefault() throws HttpPresentationException { 40 41 ContextHTML page=new ContextHTML(); 42 String displayAdmin=this.getComms().request.getParameter(DISPLAY_ADMIN); 43 if (displayAdmin!=null && displayAdmin.equalsIgnoreCase("true")) { 44 page.getElementFrameAdministering().setSrc("Administering.po"); 45 } 46 47 return page; 48 } 49 50 } 51 | Popular Tags |