]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman/WebContent/jsp/editContents.jsp
Salome HOME
656d729295ed4c3e9224abd3942a3dbf01e2d396
[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:iterator value="documents">
33       <s:set var="docindex" value="%{index}"/>
34       <tr height=18>
35         <td>
36           <s:if test="%{curAction == 'renameDocument'}">
37             <s:if test="%{index == #docindex}">
38               <s:a href="%{undo}"><img src="<s:url value="/skin/icon.undo.png"/>" border="none" title="<s:text name="tooltip.cancel"/>" /></s:a>
39             </s:if><s:else>
40               <img src="<s:url value="/skin/image.box.png"/>"  border="none" title=""/>
41             </s:else>
42           </s:if><s:elseif test="%{presentationState == 'open' || presentationState == 'deepopen'}">
43               <s:a href="%{reduceall}&index=%{#docindex}"><img src="<s:url value="/skin/icon.minus.png"/>" border="none" title=""/></s:a>
44           </s:elseif><s:else>
45               <s:a href="%{develop}&index=%{#docindex}"><img src="<s:url value="/skin/icon.plus.png"/>" border="none" title=""/></s:a>
46           </s:else>
47         </td>
48         <td>
49           <s:if test="%{curAction != 'renameDocument'}">
50             <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;">
51               <jsp:include page="/jsp/menupopup.jsp"/>
52             </div>
53             <s:a href="popdoc%{#docindex}">
54               <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"/>"/>
55             </s:a>
56           </s:if>
57           <s:else>
58             <img src="<s:url value="/skin/%{stateIcon}"/>" width=14 height=14 border="none" title=""/>
59           </s:else>
60         </td>
61         <td><img src="<s:url value="/skin/%{fileIcon}"/>" border="none" title=""/></td>
62         <td>
63           <s:if test="%{curAction == 'renameDocument'}">
64             <s:if test="%{index == #docindex}">
65               <input type="hidden" name="action" value="renameDocument" />
66               <input type="hidden" name="index" value="<s:property value="index"/>" />
67               <input type="text"   name="documentTitle" size="60" value="<s:property value="title"/>" />
68               <button type="submit" value="" style="width:24px; height:16px; border:0; cursor:pointer; cursor:hand; background:transparent">
69                   <img src="<s:url value="/skin/image.export.png"/>" title="<s:text name="button.save"/>"/>
70               </button>
71             </s:if><s:else>
72               <s:property value="title"/>
73             </s:else>
74           </s:if><s:else>
75             <s:a href="%{URL}" target="_blank" cssClass="link"><s:property value="title"/></s:a>
76           </s:else>
77         </td>
78         <td align=center>
79           <s:if test="%{progressState == 'EXTERN'}"><s:property value="version"/></s:if>
80           <s:else>
81           <table>
82             <tr>
83               <td><img src="<s:url value="/skin/%{sharingIcon}"/>" width=14 height=14 border="none" title="<s:text name="tooltip.shared"/>"/></td>
84               <td>&nbsp;<s:property value="version"/>&nbsp;</td>
85               <td><img src="<s:url value="/skin/%{versioningIcon}"/>" width=14 height=14 border="none" title=""/></td>
86             </tr>
87           </table>
88           </s:else>
89         </td>
90         <td align="right"><s:property value="size"/>&nbsp;&nbsp;</td>
91         <td align="right"><s:property value="date"/></td>
92       </tr>
93       <s:if test="%{presentationState == 'open' || presentationState == 'deepopen'}">
94         <s:iterator value="uses">
95           <tr height=18>
96             <td></td>
97             <td></td>
98             <td><img src="<s:url value="/skin/icon.relation.png"/>" border="none" title=""/></td>
99             <td><i><s:text name="label.uses"/>:</i>&nbsp;<s:property value="title"/></td>
100             <td align=center><s:property value="version"/></td>
101             <td align="right"><s:property value="size"/>&nbsp;&nbsp;</td>
102             <td align="right"><s:property value="date"/></td>
103           </tr>
104         </s:iterator>
105         <s:iterator value="attachments">
106           <tr height=18>
107             <td></td>
108             <td></td>
109             <td><img src="<s:url value="/skin/image.attach.png"/>" border="none" title=""/></td>
110             <td>
111               <i><s:text name="label.converts"/>:</i>&nbsp;
112               <s:property value="format"/>&nbsp;<s:property value="description"/>
113             </td>
114             <td align=center></td>
115             <td align="right"><s:property value="size"/>&nbsp;&nbsp;</td>
116             <td align="right"><s:property value="date"/></td>
117           </tr>
118         </s:iterator>
119         <s:if test="%{history != null}">
120           <tr height=18>
121             <td></td>
122             <s:if test="%{presentationState == 'deepopen'}">
123               <td>
124                 <s:a href="%{reduce}&index=%{#docindex}"><img src="<s:url value="/skin/icon.minus.png"/>" border="none" title=""/></s:a>
125               </td>
126               <td><img src="<s:url value="/skin/image.diropen.png"/>" border="none" title=""/></td>
127             </s:if><s:else>
128               <td>
129                 <s:a href="%{develop}&index=%{#docindex}"><img src="<s:url value="/skin/icon.plus.png"/>" border="none" title=""/></s:a>
130               </td>
131               <td><img src="<s:url value="/skin/image.dirclosed.png"/>" border="none" title=""/></td>
132             </s:else>
133             <td><i><s:text name="label.history"/></i></td>
134           </tr>
135           <s:if test="%{presentationState == 'deepopen'}">
136             <s:iterator value="history">
137             <tr height=18>
138               <td colspan=3></td>
139               <td>
140                 <table cellpadding=0 cellspacing=0 border=0>
141                   <tr>
142                     <td width=18><img src="<s:url value="/skin/%{fileIcon}"/>" border="none" title=""/></td>
143                     <td><s:property value="description"/></td>
144                   </tr>
145                 </table>
146               </td>
147               <td align=center>
148                 <table>
149                   <tr>
150                     <td><img src="<s:url value="/skin/%{sharingIcon}"/>" width=14 height=14 border="none" title="<s:text name="tooltip.shared"/>"/></td>
151                     <td><s:property value="version"/></td>
152                     <td><img src="<s:url value="/skin/%{versioningIcon}"/>" width=14 height=14 border="none" title=""/></td>
153                   </tr>
154                 </table>
155               </td>
156               <td align="right"><s:property value="size"/>&nbsp;&nbsp;</td>
157               <td align="right"><s:property value="date"/></td>
158             </tr>
159             </s:iterator>
160           </s:if>
161         </s:if>
162       </s:if>
163     </s:iterator>
164   </s:if>
165   <s:if test="%{curAction != 'renameDocument' && userRights.canCreateDocument()}">
166     <tr height=22 valign=bottom>
167       <td align=center>
168         <s:a href="%{addocument}">
169           <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"/>" />
170         </s:a>
171       </td>
172     </tr>
173   </s:if>
174 </table>