blob: 99fbee41dce332d561c5faf0eeb91766a72ebd24 [file] [log] [blame]
<%
/*******************************************************************************
* Copyright (c) 2001, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
%>
<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.*,
org.uddi4j.util.*" %>
<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/>
<jsp:useBean id="sectionHeaderInfo" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.SectionHeaderInfo" scope="request"/>
<%
UDDIPerspective uddiPerspective = controller.getUDDIPerspective();
String tableContainerId = sectionHeaderInfo.getContainerId();
StringBuffer twistImageName = new StringBuffer("x");
twistImageName.append(tableContainerId);
%>
<table border=0 cellpadding=6 cellspacing=0>
<tr>
<td height=40 valign="bottom" align="left" nowrap width=11><a href="javascript:twist('<%=tableContainerId%>','<%=twistImageName.toString()%>')"><img name="<%=twistImageName.toString()%>" src="<%=response.encodeURL(controller.getPathWithContext("images/twistclosed.gif"))%>" alt="<%=controller.getMessage("ALT_TWIST_CLOSED")%>" class="twist"></a></td>
<td height=40 valign="bottom" align="left" nowrap class="labels">
<strong><%=uddiPerspective.getMessage("FORM_LABEL_CATEGORIES")%></strong>
</td>
<td height=40 valign="bottom" align="left" nowrap class="labels">
<a href="javascript:addCategoryRow('<%=tableContainerId%>')"><%=uddiPerspective.getMessage("FORM_LINK_ADD")%></a>
</td>
<td height=40 valign="bottom" align="left" nowrap class="labels">
<a href="javascript:removeSelectedCategoryRows('<%=tableContainerId%>')"><%=uddiPerspective.getMessage("FORM_LINK_REMOVE")%></a>
</td>
<td nowrap width="90%">&nbsp;</td>
</tr>
</table>
<table width="95%" border=0 cellpadding=0 cellspacing=0>
<tr>
<td valign="top" height=10><img src="<%=response.encodeURL(controller.getPathWithContext("images/keyline.gif"))%>" height=2 width="100%"></td>
</tr>
</table>
<div id="<%=tableContainerId%>" style="display:none;">
<table width="95%" cellpadding=3 cellspacing=0 class="tableborder">
<tr>
<th class="checkboxcells" width=10><input type="checkbox" onClick="handleCheckAllClick('<%=tableContainerId%>',this)" title="<%=controller.getMessage("FORM_CONTROL_TITLE_SELECT_ALL_CHECK_BOX")%>"></th>
<th class="headercolor"><%=uddiPerspective.getMessage("FORM_LABEL_CATEGORY_TYPE")%></th>
<th class="headercolor"><%=uddiPerspective.getMessage("FORM_LABEL_KEY_NAME")%></th>
<th class="headercolor"><%=uddiPerspective.getMessage("FORM_LABEL_KEY_VALUE")%></th>
<th class="headercolor"><%=controller.getMessage("FORM_LABEL_ACTIONS")%></th>
</tr>
</table>
<%
if (tableContainerId.startsWith("findBusinesses"))
{// condition to turn off for everything other than find by business searches.
%>
<table>
<tr>
<td height=30 valign="center">
<label for="business_categories"><%=uddiPerspective.getMessage("FORM_LABEL_BUSINESS_CATEGORIES")%></label>
</td>
<td height=30 valign="center">
<select id="business_categories" class="selectlist">
<option><%=uddiPerspective.getMessage("FORM_OPTION_BUSINESSES_ONLY")%>
<option value="<%=FindQualifier.serviceSubset%>"><%=uddiPerspective.getMessage("FORM_OPTION_SERVICES_ONLY")%>
<option value="<%=FindQualifier.combineCategoryBags%>"><%=uddiPerspective.getMessage("FORM_OPTION_BOTH")%>
</select>
</td>
</tr>
</table>
<%
}
%>
</div>