%-- * Licensed Materials - Property of IBM * * 5724-U18 * * (C) COPYRIGHT IBM CORP. 2006, 2011 All Rights Reserved. * * US Government Users Restricted Rights - Use, duplication or * disclosure restricted by GSA ADP Schedule Contract with * IBM Corp. --%><%@ include file="../common/componentheader.jsp" %><% if (designmode) { return; } String apptitle = ""; String docTitle = ""; String height = component.getProperty("height"); try { docTitle = control.getWebClientSession().getCurrentApp().getAppTitle(); if(control.getWebClientSession().getCurrentApp().getId().equalsIgnoreCase("startcntr")) { String userFullName = control.getWebClientSession().getUserInfo().getDisplayName(); if (BidiUtils.isBidiEnabled()) //bidi-hcg-SC userFullName = BidiUtils.enforceBidiDirection(userFullName, BidiUtils.getMboTextDirection("PERSON", "DISPLAYNAME", true)); //bidi-hcg-SC apptitle = control.getWebClientSession().getMessage("login","welcomeusername",new String[]{userFullName}); } } catch(Exception e) { apptitle = ""; } //bidi-hcg-AS start if(BidiUtils.isBidiEnabled()) { String[] bidiTagAttributes = BidiClientUtils.getTagAttributes(null,null,apptitle,false); if(bidiTagAttributes[2] != null && bidiTagAttributes[2].length() > 0) { apptitle = BidiUtils.enforceBidiDirection(apptitle,bidiTagAttributes[2]); docTitle = BidiUtils.enforceBidiDirection(docTitle,bidiTagAttributes[2]); } } //bidi-hcg-AS end if(apptitle.equals("")) apptitle=docTitle; String appimage; try { appimage = control.getWebClientSession().getCurrentApp().getAppImage(); } catch(Exception e) { appimage = ""; } String informationImage = "information.gif"; if(appimage == null || appimage.length() == 0) { if(app.getApp().toLowerCase().equals("startcntr")) appimage="appimg_startcntr.gif"; else appimage="appimg_generic.gif"; } String classname = "bgnb"; String bgClass = "titlebarback"; boolean applinking = app.inAppLinkMode(); if(applinking) { classname = "alnb"; bgClass+="_applink"; } cssclass = classname +" "+ cssclass; boolean thePortalMode = control.getWebClientSession().getPortalMode(); if (thePortalMode) { appimage = "blank.gif"; informationImage = "blank.gif"; cssclass = "bgnbp"; if (!applinking) apptitle = ""; } if(component.needsRender()) { boolean useHomeButton = false; String homeButtonProperty = component.getProperty("homebutton"); if(!homeButtonProperty.equals("false")) { String homeButtonSysSetting = WebClientRuntime.getWebClientSystemProperty(WebClientConstants.WEBCLIENT_HOMEBUTTON,"0"); boolean isMobile = currentPage.getAppInstance().isMobile() || wcs.getMobile(); if(!isMobile && homeButtonSysSetting.equals("1") || homeButtonProperty.equals("true")) { useHomeButton = true; } } %>