]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman/WebContent/jsp/editContents.jsp
Salome HOME
Now the "Context type" input field is cleaned when the focus is inside the field...
[tools/siman.git] / Workspace / Siman / WebContent / jsp / editContents.jsp
1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2     pageEncoding="ISO-8859-1"
3 %>
4 <%@ taglib prefix="s" uri="/struts-tags"
5 %>
6 <s:url id="develop" namespace="/study" action="document-study">
7   <s:param name="action">develop</s:param>
8 </s:url>
9 <s:url id="reduce"  namespace="/study" action="document-study">
10   <s:param name="action">reduce</s:param>
11 </s:url>
12 <s:url id="reduceall"  namespace="/study" action="document-study">
13   <s:param name="action">reduceall</s:param>
14 </s:url>
15 <s:url id="addocument" namespace="/study" action="select-file">
16   <s:param name="nextAction">import</s:param>
17 </s:url>
18 <s:url id="undo" namespace="/study" action="step-study"></s:url>
19
20 <table width=100% cellpadding=0 cellspacing=0 border=0 class=attribute>
21   <tr height=20 valign=bottom>
22     <td width=20></td>
23     <td width=18></td>
24     <td width=18></td>
25     <td><s:text name="label.title"/></td>
26     <td width=120 align=center>&nbsp;<s:text name="label.version"/>&nbsp;</td>
27     <td width=80 align="right"><s:text name="label.size"/>&nbsp;&nbsp;&nbsp;</td>
28     <td width=75 align=left>&nbsp;&nbsp;&nbsp;&nbsp;<s:text name="label.date"/><img src="<s:url value="/skin/icon.sortdown.png"/>" border="none"/></td>
29   </tr>
30   <tr height=1 bgcolor=#AAAAAA><td colspan=7></td></tr>
31   <s:if test="documents.size > 0">
32   <s:set var="selectedDocIndex" value="%{index}"/>
33     <s:iterator value="documents">
34       <s:set var="docindex" value="%{index}"/>
35       <tr height=18>
36         <td>
37           <s:if test="%{curAction == 'renameDocument'}">
38             <s:if test="%{#selectedDocIndex == #docindex}">
39               <s:a href="%{undo}"><img src="<s:url value="/skin/icon.undo.png"/>" border="none" title="<s:text name="tooltip.cancel"/>" /></s:a>
40             </s:if><s:else>
41               <img src="<s:url value="/skin/image.box.png"/>"  border="none" title=""/>
42             </s:else>
43           </s:if><s:elseif test="%{presentationState == 'open' || presentationState == 'deepopen'}">
44               <s:a href="%{reduceall}&index=%{#docindex}"><img src="<s:url value="/skin/icon.minus.png"/>" border="none" title=""/></s:a>
45           </s:elseif><s:else>
46               <s:a href="%{develop}&index=%{#docindex}"><img src="<s:url value="/skin/icon.plus.png"/>" border="none" title=""/></s:a>
47           </s:else>
48         </td>
49         <td>
50           <s:if test="%{curAction != 'renameDocument'}">
51             <div id="popdoc<s:property value="%{#docindex}"/>" style="position:absolute; display:none; top:0px; left:0px; z-index:10000;" onmouseover="javascript:_mouseOverContext=true;" onmouseout="javascript:_mouseOverContext=false;">
52               <jsp:include page="/jsp/menupopup.jsp"/>
53             </div>
54             <s:a href="popdoc%{#docindex}">
55               <img src="<s:url value="/skin/%{editIcon}"/>" onMouseOver=this.src="<s:url value="/skin/icon.ed.png"/>" onMouseOut=this.src="<s:url value="/skin/%{editIcon}"/>" width=14 height=14 border="none" title="<s:text name="tooltip.edit.document"/>"/>
56             </s:a>
57           </s:if>
58           <s:else>
59             <img src="<s:url value="/skin/%{stateIcon}"/>" width=14 height=14 border="none" title=""/>
60           </s:else>
61         </td>
62         <td>
63           <s:a href="%{URL}" target="_blank" cssClass="link"> 
64             <img src="<s:url value="/skin/%{fileIcon}"/>" border="none" title=""/>  </s:a>
65         </td>
66         <td>
67           <s:if test="%{curAction == 'renameDocument'}">
68             <s:if test="%{#selectedDocIndex == #docindex}">
69               <input type="hidden" name="action" value="renameDocument" />
70               <input type="hidden" name="index" value="<s:property value="index"/>" />
71               <input type="text"   name="documentTitle" size="60" value="<s:property value="title"/>" />
72               <button type="submit" value="" style="width:24px; height:16px; border:0; cursor:pointer; cursor:hand; background:transparent">
73                   <img src="<s:url value="/skin/image.export.png"/>" title="<s:text name="button.save"/>"/>
74               </button>
75             </s:if><s:else>
76               <s:property value="title"/>
77             </s:else>
78           </s:if><s:else>
79             <s:a href="%{URL}" target="_blank" cssClass="link"><s:property value="title"/></s:a>
80           </s:else>
81         </td>
82         <td align=center>
83           <s:if test="%{progressState == 'EXTERN'}"><s:property value="version"/></s:if>
84           <s:else>
85           <table>
86             <tr>
87               <td><img src="<s:url value="/skin/%{sharingIcon}"/>" width=14 height=14 border="none" title="<s:text name="tooltip.shared"/>"/></td>
88               <td>&nbsp;<s:property value="version"/>&nbsp;</td>
89               <td><img src="<s:url value="/skin/%{versioningIcon}"/>" width=14 height=14 border="none" title=""/></td>
90             </tr>
91           </table>
92           </s:else>
93         </td>
94         <td align="right"><s:property value="size"/>&nbsp;&nbsp;</td>
95         <td align="right"><s:property value="date"/></td>
96       </tr>
97       <s:if test="%{presentationState == 'open' || presentationState == 'deepopen'}">
98         <s:iterator value="uses">
99           <tr height=18>
100             <td></td>
101             <td></td>
102             <td><img src="<s:url value="/skin/icon.relation.png"/>" border="none" title=""/></td>
103             <td><i><s:text name="label.uses"/>:</i>&nbsp;<s:property value="title"/></td>
104             <td align=center><s:property value="version"/></td>
105             <td align="right"><s:property value="size"/>&nbsp;&nbsp;</td>
106             <td align="right"><s:property value="date"/></td>
107           </tr>
108         </s:iterator>
109         <s:iterator value="attachments">
110           <tr height=18>
111             <td></td>
112             <td></td>
113             <td><img src="<s:url value="/skin/image.attach.png"/>" border="none" title=""/></td>
114             <td>
115               <i><s:text name="label.converts"/>:</i>&nbsp;
116               <s:property value="format"/>&nbsp;<s:property value="description"/>
117             </td>
118             <td align=center></td>
119             <td align="right"><s:property value="size"/>&nbsp;&nbsp;</td>
120             <td align="right"><s:property value="date"/></td>
121           </tr>
122         </s:iterator>
123         <s:if test="%{history != null}">
124           <tr height=18>
125             <td></td>
126             <s:if test="%{presentationState == 'deepopen'}">
127               <td>
128                 <s:a href="%{reduce}&index=%{#docindex}"><img src="<s:url value="/skin/icon.minus.png"/>" border="none" title=""/></s:a>
129               </td>
130               <td><img src="<s:url value="/skin/image.diropen.png"/>" border="none" title=""/></td>
131             </s:if><s:else>
132               <td>
133                 <s:a href="%{develop}&index=%{#docindex}"><img src="<s:url value="/skin/icon.plus.png"/>" border="none" title=""/></s:a>
134               </td>
135               <td><img src="<s:url value="/skin/image.dirclosed.png"/>" border="none" title=""/></td>
136             </s:else>
137             <td><i><s:text name="label.history"/></i></td>
138           </tr>
139           <s:if test="%{presentationState == 'deepopen'}">
140             <s:iterator value="history">
141             <tr height=18>
142               <td colspan=3></td>
143               <td>
144                 <table cellpadding=0 cellspacing=0 border=0>
145                   <tr>
146                     <td width=18><img src="<s:url value="/skin/%{fileIcon}"/>" border="none" title=""/></td>
147                     <td><s:property value="description"/></td>
148                   </tr>
149                 </table>
150               </td>
151               <td align=center>
152                 <table>
153                   <tr>
154                     <td><img src="<s:url value="/skin/%{sharingIcon}"/>" width=14 height=14 border="none" title="<s:text name="tooltip.shared"/>"/></td>
155                     <td><s:property value="version"/></td>
156                     <td><img src="<s:url value="/skin/%{versioningIcon}"/>" width=14 height=14 border="none" title=""/></td>
157                   </tr>
158                 </table>
159               </td>
160               <td align="right"><s:property value="size"/>&nbsp;&nbsp;</td>
161               <td align="right"><s:property value="date"/></td>
162             </tr>
163             </s:iterator>
164           </s:if>
165         </s:if>
166       </s:if>
167     </s:iterator>
168   </s:if>
169   <s:if test="%{curAction != 'renameDocument' && userRights.canCreateDocument()}">
170     <tr height=22 valign=bottom>
171       <td align=center>
172         <s:a href="%{addocument}">
173           <img src="<s:url value="/skin/icon.add.png"/>" onMouseOver=this.src="<s:url value="/skin/icon.addhot.png"/>" onMouseOut=this.src="<s:url value="/skin/icon.add.png"/>" border="none" title="<s:text name="tooltip.import"/>" />
174         </s:a>
175       </td>
176     </tr>
177   </s:if>
178 </table>