home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2006 April / DPPRO0406DVD.ISO / Essentials / Programming / Eclipse SDK / eclipse-SDK-3.1.1-win32.exe / eclipse / plugins / org.eclipse.help.webapp_3.1.0 / advanced / index.jsp < prev    next >
Encoding:
Text File  |  2005-09-29  |  2.6 KB  |  78 lines

  1. <%--
  2.  Copyright (c) 2000, 2004 IBM Corporation and others.
  3.  All rights reserved. This program and the accompanying materials 
  4.  are made available under the terms of the Eclipse Public License v1.0
  5.  which accompanies this distribution, and is available at
  6.  http://www.eclipse.org/legal/epl-v10.html
  7.  
  8.  Contributors:
  9.      IBM Corporation - initial API and implementation
  10. --%>
  11. <%@ include file="fheader.jsp"%>
  12.  
  13. <% 
  14.     LayoutData data = new LayoutData(application,request, response);
  15.     // Initiate test for persisted cookies
  16.     if(data.getMode() == LayoutData.MODE_INFOCENTER){
  17.         Cookie cookieTest=new Cookie("cookiesEnabled", "yes");
  18.         cookieTest.setMaxAge(365*24*60*60);
  19.         response.addCookie(cookieTest);
  20.     }
  21. %>
  22.  
  23. <html>
  24.  
  25. <head>
  26. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  27. <noscript>
  28. <meta HTTP-EQUIV="REFRESH" CONTENT="0;URL=index.jsp?noscript=1">
  29. </noscript>
  30. <title><%=data.getWindowTitle()%></title>
  31. <jsp:include page="livehelp_js.jsp"/>
  32.  
  33. <style type="text/css">
  34. FRAMESET {
  35.     border: 0px;
  36. }
  37. </style>
  38.  
  39. <script language="JavaScript">
  40.  
  41. function onloadHandler(e)
  42. {
  43. <% if (data.isIE() || data.isMozilla() && "1.2.1".compareTo(data.getMozillaVersion()) <=0){
  44. %>    var h=window.SearchFrame.document.getElementById("searchLabel").offsetHeight; <%-- default 13 --%>
  45.     if(h<=19){
  46.         return; <%-- no need to resize up to 19px --%>
  47.     }
  48.     document.getElementById("indexFrameset").setAttribute("rows", <%="0".equals(data.getBannerHeight())?"":"\""+data.getBannerHeight()+",\"+"%>(11+h)+",*"); <%-- default 24 --%>
  49. <%}%>
  50. <%
  51. if (data.isMozilla()){
  52. // restore mozilla from minimized
  53. %>
  54.     window.focus();
  55. <%
  56. }
  57. %>
  58.     window.frames["SearchFrame"].document.getElementById("searchWord").focus();
  59. }
  60.  
  61. </script>
  62. </head>
  63.  
  64. <frameset id="indexFrameset" onload="onloadHandler()" rows="<%="0".equals(data.getBannerHeight())?"":data.getBannerHeight()+","%>24,*"  frameborder="0" framespacing="0" border=0 spacing=0>
  65. <%
  66.     if(!("0".equals(data.getBannerHeight()))){
  67. %>
  68.     <frame name="BannerFrame" title="<%=ServletResources.getString("Banner", request)%>" src='<%=data.getBannerURL()%>'  tabIndex="3" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize=0>
  69. <%
  70.     }
  71. %>
  72.     <frame name="SearchFrame" title="<%=ServletResources.getString("helpToolbarFrame", request)%>" src='<%="advanced/search.jsp"+data.getQuery()%>' marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize=0>
  73.     <frame name="HelpFrame" title="<%=ServletResources.getString("ignore", "HelpFrame", request)%>" src='<%="advanced/help.jsp"+data.getQuery()%>' marginwidth="0" marginheight="0" scrolling="no" frameborder="0" >
  74. </frameset>
  75.  
  76. </html>
  77.  
  78.