blob: 1083233d60f1d5d90001f13760513145a9c6097c (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
<%
/*******************************************************************************
* 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.perspective.*,
org.eclipse.wst.ws.internal.explorer.platform.wsil.perspective.WSILPerspective,
org.eclipse.wst.ws.internal.explorer.platform.util.HTMLUtils" %>
<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/>
<jsp:useBean id="abstractLangs" class="java.util.Vector" scope="request"/>
<jsp:useBean id="abstracts" class="java.util.Vector" scope="request"/>
<jsp:include page="/wsil/scripts/wsilTable.jsp" flush="true"/>
<%
String abstractTable = "abstractTable";
String xabstractTable = "xabstractTable";
String showAllAbstractID = "showAllAbstractID";
WSILPerspective wsilPerspective =controller.getWSILPerspective();
%>
<script language="javascript">
function showAbstract(tableContainerID) {
var table = getTable(tableContainerID);
var tableBody = table.getElementsByTagName("TBODY").item(0);
var hiddenInput = document.getElementById('<%=showAllAbstractID%>');
<%
for (int i = 0; i < abstracts.size(); i++) {
%>
addRowToAbstractTable(tableBody,
"<%=HTMLUtils.JSMangle((String)abstractLangs.elementAt(i))%>",
"<%=HTMLUtils.JSMangle((String)abstracts.elementAt(i))%>");
<%
}
%>
}
function addRowToAbstractTable(tableBody, lang, abst) {
var newRow = document.createElement("tr");
addKeyValueToRow(newRow, lang, abst);
tableBody.appendChild(newRow);
}
</script>
<table border=0 cellpadding=6 cellspacing=0>
<tr>
<td height=40 valign="bottom" align="left" nowrap width=11>
<a href="javascript:twist('<%=abstractTable%>','<%=xabstractTable%>')"><img name="<%=xabstractTable%>" 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><%=wsilPerspective.getMessage("FORM_LABEL_ABSTRACT")%></strong>
</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="<%=abstractTable%>">
<table width="95%" cellpadding=3 cellspacing=0 class="tableborder">
<tr>
<th class="headercolor"><%=wsilPerspective.getMessage("FORM_LABEL_LANGUAGE")%></th>
<th class="headercolor" width="100%"><%=wsilPerspective.getMessage("FORM_LABEL_ABSTRACT")%></th>
</tr>
</table>
</div>
<script language="javascript">
showAbstract('<%=abstractTable%>');
twistInit('<%=abstractTable%>','<%=xabstractTable%>');
</script>
|