Salome HOME
6929ecebc2e238857f5028e575c2338bec09115f
[tools/siman.git] / Workspace / .metadata / .plugins / org.eclipse.wst.server.core / tmp0 / wtpwebapps / Siman / 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     String action = request.getParameter("action");
7     String index  = request.getParameter("index");
8 %>
9 <s:set var="todo"><%=action%></s:set>
10 <s:set var="edit"><%=index%></s:set>
11
12 <s:url id="develop" namespace="/study" action="document-study">
13   <s:param name="action">develop</s:param>
14 </s:url>
15 <s:url id="reduce"  namespace="/study" action="document-study">
16   <s:param name="action">reduce</s:param>
17 </s:url>
18 <s:url id="reduceall"  namespace="/study" action="document-study">
19   <s:param name="action">reduceall</s:param>
20 </s:url>
21 <s:url id="addocument" namespace="/study" action="select-file">
22   <s:param name="nextAction">import</s:param>
23 </s:url>
24 <s:url id="undo" namespace="/study" action="step-study"></s:url>
25
26 <table width=100% cellpadding=0 cellspacing=0 border=0 class=attribute>
27   <tr height=20 valign=bottom>
28     <td width=20></td>
29     <td width=18></td>
30     <td width=18></td>
31     <td><s:text name="label.title"/></td>
32     <td width=120 align=center>&nbsp;<s:text name="label.version"/>&nbsp;</td>
33     <td width=80 align=right><s:text name="label.size"/>&nbsp;&nbsp;&nbsp;</td>
34     <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>
35   </tr>
36   <tr height=1 bgcolor=#AAAAAA><td colspan=7></td></tr>
37   <s:if test="documents.size > 0">
38     <s:iterator value="documents">
39       <s:set var="docindex" value="%{index}"/>
40       <tr height=18>
41         <td>
42           <s:if test="%{#todo == 'renameDocument'}">
43             <s:if test="%{#edit == #docindex}">
44               <s:a href="%{undo}"><img src="<s:url value="/skin/icon.undo.png"/>" border="none" title="<s:text name="tooltip.cancel"/>" /></s:a>
45             </s:if><s:else>
46               <img src="<s:url value="/skin/image.box.png"/>"  border="none" title=""/>
47             </s:else>
48           </s:if><s:elseif test="%{presentationState == 'open' || presentationState == 'deepopen'}">
49               <s:a href="%{reduceall}&index=%{#docindex}"><img src="<s:url value="/skin/icon.minus.png"/>" border="none" title=""/></s:a>
50           </s:elseif><s:else>
51               <s:a href="%{develop}&index=%{#docindex}"><img src="<s:url value="/skin/icon.plus.png"/>" border="none" title=""/></s:a>
52           </s:else>
53         </td>
54         <td>
55           <s:if test="%{#todo != 'renameDocument'}">
56             <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;">
57               <jsp:include page="/jsp/menupopup.jsp"/>
58             </div>
59             <s:a href="popdoc%{#docindex}">
60               <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"/>"/>
61             </s:a>
62           </s:if>
63           <s:else>
64             <img src="<s:url value="/skin/%{stateIcon}"/>" width=14 height=14 border="none" title=""/>
65           </s:else>
66         </td>
67         <td><img src="<s:url value="/skin/%{fileIcon}"/>" border="none" title=""/></td>
68         <td>
69           <s:if test="%{#todo == 'renameDocument'}">
70             <s:if test="%{#edit == #docindex}">
71               <input type="hidden" name="action" value="renameDocument" />
72               <input type="hidden" name="index" value="<%=index%>" />
73               <input type="text"   name="documentTitle" size="60" value="<s:property value="title"/>" />
74             </s:if><s:else>
75               <s:property value="title"/>
76             </s:else>
77           </s:if><s:else>
78             <s:a href="%{URL}" target="_blank" cssClass="link"><s:property value="title"/></s:a>
79           </s:else>
80         </td>
81         <td align=center>
82           <s:if test="%{progressState == 'EXTERN'}"><s:property value="version"/></s:if>
83           <s:else>
84           <table>
85             <tr>
86               <td><img src="<s:url value="/skin/%{sharingIcon}"/>" width=14 height=14 border="none" title="<s:text name="tooltip.shared"/>"/></td>
87               <td>&nbsp;<s:property value="version"/>&nbsp;</td>
88               <td><img src="<s:url value="/skin/%{versioningIcon}"/>" width=14 height=14 border="none" title=""/></td>
89             </tr>
90           </table>
91           </s:else>
92         </td>
93         <td align=right><s:property value="size"/>&nbsp;&nbsp;</td>
94         <td align=right><s:property value="date"/></td>
95       </tr>
96       <s:if test="%{presentationState == 'open' || presentationState == 'deepopen'}">
97         <s:iterator value="uses">
98           <tr height=18>
99             <td></td>
100             <td></td>
101             <td><img src="<s:url value="/skin/icon.relation.png"/>" border="none" title=""/></td>
102             <td><i><s:text name="label.uses"/>:</i>&nbsp;<s:property value="title"/></td>
103             <td align=center><s:property value="version"/></td>
104             <td align=right><s:property value="size"/>&nbsp;&nbsp;</td>
105             <td align=right><s:property value="date"/></td>
106           </tr>
107         </s:iterator>
108         <s:iterator value="attachments">
109           <tr height=18>
110             <td></td>
111             <td></td>
112             <td><img src="<s:url value="/skin/image.attach.png"/>" border="none" title=""/></td>
113             <td>
114               <i><s:text name="label.converts"/>:</i>&nbsp;
115               <s:property value="format"/>&nbsp;<s:property value="description"/>
116             </td>
117             <td align=center></td>
118             <td align=right><s:property value="size"/>&nbsp;&nbsp;</td>
119             <td align=right><s:property value="date"/></td>
120           </tr>
121         </s:iterator>
122         <s:if test="%{history != null}">
123           <tr height=18>
124             <td></td>
125             <s:if test="%{presentationState == 'deepopen'}">
126               <td>
127                 <s:a href="%{reduce}&index=%{#docindex}"><img src="<s:url value="/skin/icon.minus.png"/>" border="none" title=""/></s:a>
128               </td>
129               <td><img src="<s:url value="/skin/image.diropen.png"/>" border="none" title=""/></td>
130             </s:if><s:else>
131               <td>
132                 <s:a href="%{develop}&index=%{#docindex}"><img src="<s:url value="/skin/icon.plus.png"/>" border="none" title=""/></s:a>
133               </td>
134               <td><img src="<s:url value="/skin/image.dirclosed.png"/>" border="none" title=""/></td>
135             </s:else>
136             <td><i><s:text name="label.history"/></i></td>
137           </tr>
138           <s:if test="%{presentationState == 'deepopen'}">
139             <s:iterator value="history">
140             <tr height=18>
141               <td colspan=3></td>
142               <td>
143                 <table cellpadding=0 cellspacing=0 border=0>
144                   <tr>
145                     <td width=18><img src="<s:url value="/skin/%{fileIcon}"/>" border="none" title=""/></td>
146                     <td><s:property value="description"/></td>
147                   </tr>
148                 </table>
149               </td>
150               <td align=center>
151                 <table>
152                   <tr>
153                     <td><img src="<s:url value="/skin/%{sharingIcon}"/>" width=14 height=14 border="none" title="<s:text name="tooltip.shared"/>"/></td>
154                     <td><s:property value="version"/></td>
155                     <td><img src="<s:url value="/skin/%{versioningIcon}"/>" width=14 height=14 border="none" title=""/></td>
156                   </tr>
157                 </table>
158               </td>
159               <td align=right><s:property value="size"/>&nbsp;&nbsp;</td>
160               <td align=right><s:property value="date"/></td>
161             </tr>
162             </s:iterator>
163           </s:if>
164         </s:if>
165       </s:if>
166     </s:iterator>
167   </s:if>
168   <s:if test="%{#todo != 'renameDocument' && userRights.canCreateDocument()}">
169     <tr height=22 valign=bottom>
170       <td align=center>
171         <s:a href="%{addocument}">
172           <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"/>" />
173         </s:a>
174       </td>
175     </tr>
176   </s:if>
177 </table>