<%-- Licensed Materials - Property of IBM, 5724-E76, (C) Copyright IBM Corp. 2001, 2004 - All Rights reserved. --%>

<%--


  NOTE: If you change this file,  "touch" the version of Default.jsp which includes
     it to see your changes.  You can do this by editing Default.jsp and saving it.

     Default.jsp uses the @include JSP directive which compiles this file into the
     servlet for Default.jsp.


  NOTE: By default, automatic reloading of theme and skin JSP files is turned off.
          To see the changes you make to this file without stopping and restarting
          the server, follow the instructions for enabling automatic JSP reloading
          in the InfoCenter.
          
          Do not enable automatic JSP reloading in a production environment
          because performance will decrease.

--%>


<%-- Page Bar --%>
<wps:if navigationAvailable="yes" screen="Home,LoggedIn,LoggedOut,ErrorNotAuthorized">
  <table border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr>
      <td class="wpsPageBar" valign="top" align="<%=bidiAlignLeft%>", nowrap>
  
        <table border="0" cellspacing="0" cellpadding="0">
          <tr>
          <% 
             // this flag is used to write the leading space cell in the pagebar immediately
             // before the first actual content. This is necessary because if there is
             // no content, then we don't want to render it.
             boolean firstCellSpacerHasBeenRendered = false;

          %>

             <%-- render previous and next page shift anchor --%>
              <wps:navigationShift by="-5" maxPages="6">
               <wps:if pageAvailablePrevious="yes">
               <%
               if (! firstCellSpacerHasBeenRendered)
               {
               %>
                <td class="wpsPageBar3dShadow"><img width="10"  border="0" src='<%= wpsBaseURL %>/images/dot.gif' alt=""></td>
               <%
                firstCellSpacerHasBeenRendered = true;
               }
               %>

                <td class="wpsUnSelectedPage">
                  <a href='<wps:urlParent/>'><img alt="<wps:text key="link.previous" bundle="nls.engine"/>" src="<wps:urlFindInTheme file='<%="tab_prev"+bidiImageRTL+".gif"%>'/>" border="0" align="absmiddle"></a>
               </wps:if>
               <wps:if pageAvailablePrevious="no">
              <%
               if (! firstCellSpacerHasBeenRendered)
               {
               %>
                <td class="wpsPageBar3dShadow"><img width="10"  border="0" src='<%= wpsBaseURL %>/images/dot.gif' alt=""></td>
               <%
                firstCellSpacerHasBeenRendered = true;
               }
               %>

                <td class="wpsUnSelectedPage">
                  <img alt="<wps:text key="link.previous" bundle="nls.engine"/>" src="<wps:urlFindInTheme file='<%="tab_prev_dis"+bidiImageRTL+".gif"%>'/>" border="0" align="absmiddle">
               </wps:if>
             </wps:navigationShift>
             <wps:navigationShift by="+5" maxPages="6">
               <wps:if pageAvailableNext="yes">
                  <a href='<wps:urlParent/>'> <img alt="<wps:text key="link.next" bundle="nls.engine"/>" src="<wps:urlFindInTheme file='<%="tab_next"+bidiImageRTL+".gif"%>'/>" border="0" align="absmiddle"></a>
                </td>
               </wps:if>
               <wps:if pageAvailableNext="no">
                  <img alt="<wps:text key="link.next" bundle="nls.engine"/>" src="<wps:urlFindInTheme file='<%="tab_next_dis"+bidiImageRTL+".gif"%>'/>" border="0" align="absmiddle">
                </td>
               </wps:if>
            </wps:navigationShift>

            <wps:navigation stopLevel="3">
              <wps:navigationLoop>
<%-- render pages --%>
                <%
                if (! firstCellSpacerHasBeenRendered)
                {
                %>
                  <td class="wpsPageBar3dShadow"><img width="10"  border="0" src='<%= wpsBaseURL %>/images/dot.gif' alt=""></td>
                <%
                  firstCellSpacerHasBeenRendered = true;
                }
                %>

                <wps:if nodeInSelectionPath="yes">
                  <td class="wpsSelectedPage" nowrap><a class="wpsSelectedPageLink" href='<wps:navigationUrl type="link" />' >&nbsp;<%= com.ibm.wps.model.LocaleHelper.getTitle((com.ibm.portal.Localized)wpsNavNode, pageContext.getRequest())%>&nbsp;</a></td>

                  <%-- display show tools buttons --%>
                  <wps:if showTools="yes">

                    <%-- link to customizer if node is a page --%>
                    <wps-internal:adminlinkinfo name="<%=AdminUniqueNamesMappingService.CONTENT_LAYOUT%>">
<%
                      if (((ContentNodeType.COMPOSITION).toString()).equals(wpsContentNodeTypeString)) {
%>
                        <wps:urlGeneration contentNode="<%=wpsContentNode%>"
                                   portletWindowState="Normal"
                                   pacCheck="<%=CreateUrlCommand.PAC_EDIT_LAYOUT%>">

                          <wps:urlParam name="<%= SharedParamConstants.WPS_ADMIN_NAVIGATION_INIT %>" value="init" />
                          <wps:urlParam name="<%= SharedParamConstants.WORKING_CONTENT_NODE%>" value="<%= wpsContentNodeID %>"/>
                          <wps:urlParam name="<%= SharedParamConstants.ORIGIN_CONTENT_NODE %>" value="<%= wpsContentNodeID %>" />
                          <wps:urlParam name="<%= SharedParamConstants.WPS_ADMIN_NAVIGATION_PUSH %>" value="push" />

                          <td class="wpsSelectedPageIcon">
                            <a class="wpsSelectedPageLink" href="<% wpsURL.write(out); %>" >
                              <img class="wpsNavNodeIcon"
                                 alt="<wps:text key="link.editlayout" bundle="nls.engine"/>"
                                 src="<wps:urlFindInTheme file='show_tools_edit.gif'/>"
                                 border="0"
                                 align="absmiddle">
                            </a>
                          </td>

                        </wps:urlGeneration>
<%
                      }
%>
                    </wps-internal:adminlinkinfo>
                    <%-- link to properties portlet if node is a label --%>
                    <wps-internal:adminlinkinfo name="<%=AdminUniqueNamesMappingService.PROPERTIES_PORTLET%>">
<%
                       if (((ContentNodeType.LABEL).toString()).equals(wpsContentNodeTypeString)) {
%>
                        <wps:urlGeneration contentNode="<%=wpsContentNode%>"
                                   compositionNode='<%= wpsCompositionNode %>'
                                   portletWindowState="Solo"
                                   pacCheck="<%=CreateUrlCommand.PAC_EDIT_LAYOUT%>">

                          <wps:urlParam name="<%= SharedParamConstants.WPS_ADMIN_NAVIGATION_INIT %>" value="init" />
                          <wps:urlParam name="<%= SharedParamConstants.ORIGIN_CONTENT_NODE %>" value="<%= wpsContentNodeID %>" />
                          <wps:urlParam name="<%= SharedParamConstants.WORKING_CONTENT_NODE%>" value="<%= wpsContentNodeID %>"/>
                          <wps:urlParam name="<%= SharedParamConstants.PROPERTIES_ACTION_TYPE %>" value="<%= SharedParamConstants.PROPERTIES_ACTION_TYPE_EDIT %>" />
                          <wps:urlParam name="<%= SharedParamConstants.PROPERTIES_CONTENT_NODE_TYPE %>" value="<%= SharedParamConstants.PROPERTIES_CONTENT_NODE_TYPE_LABEL %>" />
                          <wps:urlParam name="<%= SharedParamConstants.WPS_ADMIN_NAVIGATION_PUSH %>" value="push" />
              
                          <td class="wpsSelectedPageIcon">
                            <a class="wpsSelectedPageLink" href="<% wpsURL.write(out); %>" >
                              <img class="wpsNavNodeIcon"
                                 alt="<wps:text key="link.editlayout" bundle="nls.engine"/>"
                                 src="<wps:urlFindInTheme file='show_tools_properties.gif'/>"
                                 border="0"
                                 align="absmiddle">
                            </a>
                          </td>

                        </wps:urlGeneration>
<%
                       }
%>
                    </wps-internal:adminlinkinfo>

                  </wps:if>
                  <%-- end show tools buttons --%>
                </wps:if>

                <wps:if nodeInSelectionPath="no">
                  <td class="wpsUnSelectedPage" nowrap><a class="wpsUnSelectedPageLink" href='<wps:navigationUrl type="link" />' >&nbsp;<%= com.ibm.wps.model.LocaleHelper.getTitle((com.ibm.portal.Localized)wpsNavNode,  pageContext.getRequest())%>&nbsp;</a></td>
                </wps:if>


                                <%-- Show icon for closing transient pages --%>
                                <wps:closePage>
                                    <td class="wpsSelectedPageIcon">
                                        <a class="wpsSelectedPageLink" href="<% closePageURL.write(out); %>" >
                                            <img class="wpsNavNodeIcon" 
                                                 src="<wps:urlFindInTheme file='NavigationClose.gif'/>"
                                                 border="0"
                                                 align="absmiddle">
                                        </a>
                                    </td>
                                </wps:closePage>

              </wps:navigationLoop>
            </wps:navigation>

          </tr>
        </table>
        
      </td>
    </tr>
  </table>
</wps:if>


 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.