<%-- 
ToolBarInclude.jsp

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

    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.

    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.

--%>


<%-- toolbar --%>
<table border="0" cellspacing="0" cellpadding="0" >

  <tr>

    <td class="wpsToolbarBannerBackground" width="300" valign="middle" nowrap > &nbsp;</td>

      <%@ page import="com.ibm.portal.*"%>

      <wps:if loggedIn="yes" portletSolo="no">

        <%--  My Portal button --%>

        <td class="wpsToolBar" nowrap>
            <b>
            <wps:text key="link.my.portal" bundle="nls.engine"/>
            </b>
        </td>

        <%-- Administration button --%>
        <wps:urlGeneration contentNode="wps.Administration" portletWindowState="Normal">

          <td class="wpsToolBar" valign="middle" nowrap>

            <a href="<% wpsURL.write(out); %>" class="wpsToolBarLink">
                <wps:text key="link.administration" bundle="nls.engine"/></a>

          </td>

        </wps:urlGeneration>
      </wps:if>




      <%-- Show/Hide Tools button --%>

      <wps:if loggedIn="yes">

          <wps:if showTools="no">

            <td class="wpsToolBarIcon" valign="middle" nowrap>

              <a class="wpsToolBarLink" href='<wps:url command="ShowTools"/>'> 

                   <img border="0" 
                        align="absmiddle" 
                        width="16" 
                         
                        src='<wps:urlFindInTheme file="show_tools_off.gif"/>' 
                        alt='<wps:text key="link.show.tools" bundle="nls.engine"/>' 
                        title='<wps:text  key="link.show.tools"  bundle="nls.engine"/>'>

              </a>

            </td>

          </wps:if>


          <wps:if showTools="yes">

            <td class="wpsToolBarIconOn" valign="middle" nowrap>

                <a class="wpsToolBarLink" href='<wps:url command="ShowTools"/>'> 
                   <img border="0" 
                       align="absmiddle" 
                       width="16" 
                        
                       src='<wps:urlFindInTheme file="show_tools_on.gif"/>' 
                       alt='<wps:text key="link.hide.tools" bundle="nls.engine"/>' 
                       title='<wps:text key="link.hide.tools" bundle="nls.engine"/>'>
                </a>

            </td>

          </wps:if>
      </wps:if>


      <%-- forgot password button --%>
      <wps:if loggedIn="no" notScreen="ForgotPassword">

          <td class="wpsToolBar" valign="middle" nowrap>

            <a class="wpsToolBarLink" href='<wps:url screen="ForgotPassword" home="public"/>'>
                   <wps:text key="link.password" bundle="nls.engine"/>
            </a>

          </td>

      </wps:if>




      <%-- selfcare button --%>

      <%-- Uncomment to allow selfcare via screen --%>

      <%--
      <wps:if loggedIn="yes" notScreen="SelfcareUserForm,SelfcareUserConf" portletSolo="no">

        <td class="wpsToolBar" valign="middle" nowrap>

            <a class="wpsToolBarLink" 
               href='<wps:url command="PrepareSelfcare" reqid="no"/>'>

                <wps:text key="link.selfcare" bundle="nls.engine"/>

            </a>

        </td>

      </wps:if>
      --%>
      


      <%-- Comment to allow selfcare via screen --%>

      <wps:if loggedIn="yes" portletSolo="no" notSelection="wps.Selfcare">

        <wps-internal:adminlinkinfo name="<%=AdminUniqueNamesMappingService.SELFCARE%>">

          <wps:urlGeneration contentNode="<%=wpsContentNode%>" 
                             compositionNode='<%= wpsCompositionNode %>' 
                             portletWindowState="Normal">

              <wps:urlParam type="render" 
                            name="<%= SharedParamConstants.ACCESS_ORIGIN %>" 
                            value="<%= SharedParamConstants.THEME %>"/>

              <wps:urlParam type="render" 
                            name="<%= SharedParamConstants.ORIGIN_CONTENT_NODE %>" 
                            value="<%= wpsContentNodeID %>" />

              <td class="wpsToolBar" valign="middle" nowrap>

                <a href="<% wpsURL.write(out); %>" class="wpsToolBarLink">
                    <wps:text key="link.selfcare" bundle="nls.engine"/>
                </a>

              </td>

          </wps:urlGeneration>

        </wps-internal:adminlinkinfo>

      </wps:if>



      <%-- enroll button --%>
      <wps:if loggedIn="no" notSelection="wps.Selfcare">

        <%
          String dt = com.ibm.wps.puma.UserManager.instance().getDirectoryType();
          if (dt==null)
          {
            dt = "";
          }
          if (!dt.equals("SSPM"))
          {
        %>

        <%--  Uncomment to allow registration via screen --%>

        <%--
         <td class="wpsToolBar" valign="middle" nowrap>

            <a class="wpsToolBarLink" href='<wps:url command="PrepareEnrollment" home="public" reqid="no"/>'>

              <wps:text key="link.enrollment" bundle="nls.engine"/>

            </a>

          </td>
        --%> 


        <%-- Comment to allow registration via screen --%>

        <wps-internal:adminlinkinfo name="<%=AdminUniqueNamesMappingService.SELFCARE%>">

          <wps:urlGeneration contentNode="<%=wpsContentNode%>" 
                             compositionNode='<%= wpsCompositionNode %>' 
                             portletWindowState="Normal"  >

              <wps:urlParam type="render" 
                            name="<%= SharedParamConstants.ACCESS_ORIGIN %>" 
                            value="<%= SharedParamConstants.THEME %>"/>

              <wps:urlParam type="render" 
                            name="<%= SharedParamConstants.ORIGIN_CONTENT_NODE %>" 
                            value="<%= wpsContentNodeID %>" />

              <td class="wpsToolBar" valign="middle" nowrap>
                <a href="<% wpsURL.write(out); %>" class="wpsToolBarLink">
                  <wps:text key="link.enrollment" bundle="nls.engine"/>
                </a>

              </td>

          </wps:urlGeneration>

        </wps-internal:adminlinkinfo>

        <%
          }
        %>

      </wps:if>




      <%-- help button --%>

      <td class="wpsToolBarIcon" valign="middle" nowrap>

        <a href='<%= wpsDocURL %>/help/index.html' 
           target="PortalHelpWindow" 
           onClick="javascript: window.open('<%= wpsDocURL %>/help/index.html',
                                            'PortalHelpWindow',
                                            'resizable=yes,
                                             scrollbars=yes,
                                             menubar=no,
                                             toolbar=yes,
                                             status=no,
                                             width=800,
                                             height=600,
                                             screenX=10,
                                             screenY=10,
                                             top=10,
                                             left=10').focus();  return  false;"
           class="wpsToolBarLink">

               <img border="0" 
                    align="absmiddle" 
                    width="16" 
                     
                    src='<wps:urlFindInTheme file="help.gif"/>' 
                    alt='<wps:text key="link.help" bundle="nls.engine"/>' 
                    title='<wps:text 
                    key="link.help" 
                    bundle="nls.engine"/>' >
        </a>

      </td>




      <%-- login button --%>

      <%--  uncomment to allow log in via screen --%>

      <%--
      <wps:if loggedIn="no" notScreen="Login">

        <td class="wpsToolBar" valign="middle" nowrap>
          <a class="wpsToolBarLink" href='<wps:url home="public" screen="Login" ssl="false"/>'>
              <wps:text key="link.login" bundle="nls.engine"/>
          </a>

        </td>

      </wps:if>
      --%>


      <%--comment this to allow login via screen --%>

      <wps:if loggedIn="no" notSelection="wps.Login" >

        <wps:urlGeneration contentNode="wps.Login" portletWindowState="Normal">

          <td class="wpsToolBar" valign="middle" nowrap>
            <a href="<% wpsURL.write(out); %>" class="wpsToolBarLink">
              <wps:text key="link.login" bundle="nls.engine"/>
            </a>
          </td>

        </wps:urlGeneration>
      </wps:if>


      <%-- logout button --%>
      <wps:if loggedIn="yes">

          <td class="wpsToolBar" valign="middle" nowrap>
            <a class="wpsToolBarLink" href='<wps:url command="LogoutUser"/>'>
              <wps:text key="link.logout" bundle="nls.engine"/>
            </a>
          </td>

      </wps:if>

  </tr>
</table>

 

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