Salome HOME
Fix for display knowledge description.
[tools/siman.git] / Workspace / Siman / WebContent / study / displayKnowledge.jsp
1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
2 <%@ taglib prefix="s" uri="/struts-tags"%>
3 <!-- Description and simulation context sections
4      =============================================================================================================================
5
6      Display of tabs
7   -->
8       <div id="tab-bar">
9       <div id="tab-description">
10           <span id="tab-front">&nbsp;&nbsp;<s:text name="title.description"/>&nbsp;&nbsp;</span>
11       </div>
12       <div id="tab-context">
13           <span id="tab-front">&nbsp;&nbsp;<s:text name="title.context"/>&nbsp;&nbsp;</span>
14       </div>
15       </div>
16
17 <!-- Display of contents
18   -->
19       <div id="article-box">
20         <table width=100% border=0 cellspacing=0 cellpadding=0>
21           <tr valign=top>
22
23 <!--      Description of the knowledge element -->
24           <td width=38%>     <!-- Must conform to the width of above tab-description -->
25             <div id="top-spacer"></div>
26             <div id=article-body class=text>
27                           <div id="description_div">
28                             <table width="100%" cellpadding="0" cellspacing="0" border="0" class="attribute">
29                               <tr valign="top">
30                               <td>
31                                 <div id="description_value_div">
32                                   <s:property value="knelm.displayedDescription" escapeHtml="false"/>
33                                 </div>
34                                 &nbsp;
35                               </td>
36                             </tr> 
37                           </table>  
38                           </div>
39             </div>
40           </td>
41
42 <!--      Separator                            -->
43                   <td width=1></td>    <!-- Trick for aligning the vertical separator with the tab -->
44           <td width=1 bgcolor=#AAAAAA></td>
45
46 <!--      Simulation contexts                  -->
47           <td width=62%>
48             <div id="top-spacer"></div>
49             <div id=article-body class=text>
50               <jsp:include page="/jsp/readContext.jsp" />
51             </div>
52           </td>
53           </tr>
54         </table>
55       </div>
56
57 <!-- Knowledge elements section
58      =============================================================================================================================
59   -->
60       <s:if test="knowledges != null">
61       <div id=article-box>
62         <div id=section><s:text name="title.otherknowledge"/></div>
63         <div id=article-body class=text>
64           <jsp:include page="/jsp/readKnowledge.jsp">
65             <jsp:param name="entity" value="knowledge" />
66           </jsp:include>
67         </div>
68       </div>
69       </s:if>
70
71 <!-- Documents section
72      =============================================================================================================================
73   -->
74       <s:if test="documents != null">
75       <div id=article-box>
76         <div id=section><s:text name="title.document"/></div>
77         <div id=article-body class=text>
78           <jsp:include page="/jsp/readContents.jsp">
79             <jsp:param name="entity" value="knowledge" />
80           </jsp:include>
81         </div>
82       </div>
83       </s:if>