Skip to main content
summaryrefslogtreecommitdiffstats
blob: c3f901c026107ef64713061821cbe9ec3c107155 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<%
/*******************************************************************************
 * Copyright (c) 2000, 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
 *******************************************************************************/
%>
<table width="95%" border=0 cellpadding=3 cellspacing=0>
  <tr>
    <td>
      <img src="<%=response.encodeURL(controller.getPathWithContext(titleImagePath))%>">
      <strong><%=title%></strong>
    </td>
    <td width="*">&nbsp;</td>
<%
   int colspan = 2;
   if (subQueryKey != null && subQueryKey.length() > 0)
   {
     int nodeId = selectedNode.getNodeId();
     int toolId = formTool.getToolId();
     int viewId = selectedNode.getViewId();
     int viewToolId = selectedNode.getViewToolId();
     int count = 1;
%>
    <td align="right">
      <a href="<%=response.encodeURL(controller.getPathWithContext(SelectFindToolAction.getActionLink(nodeId,toolId,viewId,viewToolId,"",false)))%>"><%=count%></a>
    </td>
<%
     String currentSubQueryKey = subQueryKey;
     int separatorPos = -1;
     while ((separatorPos = currentSubQueryKey.indexOf(':')) != -1)
     {
       count++;
%>
    <td align="right">
      <a href="<%=response.encodeURL(controller.getPathWithContext(SelectFindToolAction.getActionLink(nodeId,toolId,viewId,viewToolId,currentSubQueryKey.substring(0,separatorPos),false)))%>"><%=count%></a>
    </td>      
<%   
       currentSubQueryKey = currentSubQueryKey.substring(separatorPos+1,currentSubQueryKey.length());
     }
     colspan += count;
   }
%>    
  </tr>
  <tr>
    <td height=20 colspan=<%=colspan%>> <img height=2 width="100%" align="top" src="<%=response.encodeURL(controller.getPathWithContext("images/keyline.gif"))%>"> </td>
  </tr>
</table>

Back to the top