]> SALOME platform Git repositories - tools/siman.git/blob
Salome HOME
d62cb4cb0c718c2944163579b2c1f2f1ce8c768b
[tools/siman.git] /
1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2     pageEncoding="ISO-8859-1"
3 %>
4 <%@
5     taglib prefix="s" uri="/struts-tags"
6 %>
7 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
8 <html>
9
10   <head>
11     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
12     <title><s:text name="name.module"/></title>
13     <link href=<s:url value="/skin/default.css"/> rel="stylesheet" type="text/css">
14     <script language="JavaScript">
15
16     function initialize () {
17 //  ----------------------
18       version.description.focus();
19     }
20     </script>
21   </head>
22   <body onLoad="initialize()">
23 <!-- Menu-bar
24      =============================================================================================================================
25   -->
26     <jsp:include page="/jsp/menubar.jsp">
27       <jsp:param name="menu" value="study" />
28     </jsp:include>
29
30 <!-- Title-bar
31      =============================================================================================================================
32   -->
33     <jsp:include page="/jsp/titlebar.jsp">
34       <jsp:param name="entity"  value="study" />
35       <jsp:param name="disable" value="true" />
36     </jsp:include>
37
38 <!-- Left pane
39      =============================================================================================================================
40   -->
41     <div id=left-pane>
42       <s:if test="writeAccess">
43         <jsp:include page="/jsp/toolbar.jsp">
44           <jsp:param name="tools" value="study" />
45         </jsp:include>
46       </s:if>
47       <s:else>
48         <jsp:include page="/jsp/toolbar.jsp">
49           <jsp:param name="tools" value="none" />
50         </jsp:include>
51       </s:else>
52       <div id=top-spacer></div>
53       <jsp:include page="/jsp/menuitem.jsp">
54         <jsp:param name="menu" value="study" />
55       </jsp:include>
56       <jsp:include page="/jsp/studyProperties.jsp" />
57     </div>
58
59 <!-- Import dialog
60      =============================================================================================================================
61   -->
62     <div id=main-pane>
63       <div id=article-box>
64         <div id=section><s:text name="title.version"/></div>
65         <div id=article-body class=text>
66           <table width=100% cellpadding=0 cellspacing=0 border=0 class=text>
67             <tr height=25 valign=middle>
68               <td>
69                 <s:text name="message.upload">
70                   <s:param><s:property value="%{fileName}"/></s:param>
71                 </s:text>
72               </td>
73             </tr>
74             <tr height=1 bgcolor=#AAAAAA><td></td></tr>
75           </table>
76
77           <form name="version" action="valid-version" method="post">
78           <s:hidden name="fileName" value="%{fileName}" />
79           <s:hidden name="index"    value="%{index}" />
80           <s:hidden name="version"  value="%{version}" />
81           <s:hidden name="date"     value="%{date}" />
82           <s:hidden name="defaultDescription" value="%{description}" />
83           <table cellpadding=0 cellspacing=0 border=0 class=text>
84             <tr height=15><td></td></tr>
85             <tr>
86               <td align=right><s:text name="field.documentype"/>&nbsp;&nbsp;</td>
87               <td align=left>&nbsp;<s:text name="field.documentitle"/></td>
88             </tr>
89             <tr>
90               <td align=right>
91                 <select name="documentType" disabled="disabled">
92                   <option selected value="<s:property value="defaultDocumentType.index"/>">&nbsp;<s:text name="type.document.%{defaultDocumentType.name}"/></option>
93                 </select>&nbsp;
94               </td>
95               <td align=left>
96                 <input type="text" name="documentName" disabled="disabled" size="60" value="<s:property value="documentName"/>" />
97               </td>
98             </tr>
99             <s:if test="defaultDocumentUses.size > 0">
100               <tr><td align=right><s:text name="label.uses"/>:</td></tr>
101               <s:iterator value="defaultDocumentUses">
102               <tr>
103                 <td align=right><input type="checkbox" name="uses" value="<s:property value="index"/>" checked></td>
104                 <td><s:property value="title"/></td>
105               </tr>
106               </s:iterator>
107             </s:if>
108             <tr height=10><td></td></tr>
109             <tr>
110               <td align=right><s:text name="label.modifications"/>:</td>
111               <td>
112                 <s:set var="sethistory" value="%{''}"/>
113                 <s:if test="%{description != null}">
114                   <s:set var="sethistory" value="%{'disabled'}"/>
115                 </s:if>
116                 <input type="text" name="description" size="60" value="<s:property value="description"/>" <s:property value="%{#sethistory}"/> />
117               </td>
118             </tr>
119             <s:if test="dependencies.size > 0">
120               <tr height=10><td></td></tr>
121               <tr height=10 class=warning>
122                 <td colspan=2><b><s:text name="label.warning"/>:</b><br><s:text name="message.dependencies"/></td>
123               </tr>
124               <tr height=5><td></td></tr>
125                 <s:iterator value="dependencies">
126                   <tr>
127                     <td align=right><input type="checkbox" name="usedBy" value="<s:property value="index"/>"></td>
128                     <td><s:property value="value().title"/></td>
129                   </tr>
130                 </s:iterator>
131               <tr>
132               <tr>
133             </s:if>
134             <tr height=10><td></td></tr>
135             <tr>
136               <td align=right>
137                 <input type="submit" name="cancel" value="<s:text name="button.cancel"/>"/>&nbsp;
138               </td>
139               <td align=left>
140                 <s:set var="setstate" value="%{''}"/>
141                 <s:if test="%{version != ''}">
142                   <s:set var="setstate" value="%{'disabled'}"/>
143                 </s:if>
144                 <input type="submit" name="save" value="<s:text name="button.import"/>"/>
145                 <select name="documentState" <s:property value="%{#setstate}"/>>
146                   <s:if test="documentState == 'inDRAFT'">
147                     <option value="inWORK"><s:text name="label.inWORK"/></option>
148                     <option value="inDRAFT" selected><s:text name="label.inDRAFT"/></option>
149                   </s:if><s:else>
150                     <option value="inWORK" selected><s:text name="label.inWORK"/></option>
151                     <option value="inDRAFT"><s:text name="label.inDRAFT"/></option>
152                   </s:else>
153                 </select>
154               </td>
155             </tr>
156           </table>
157           </form>
158         </div>
159       </div>
160     </div>
161   </body>
162 </html>