]> SALOME platform Git repositories - tools/siman.git/blob
Salome HOME
9a65fd053611a0f9eaed254f0a588478dc2027ba
[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       bring.documentName.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.import"/></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="bring" action="valid-import" method="post">
78           <s:hidden name="fileName"      value="%{fileName}" />
79           <s:hidden name="reference"     value="%{reference}" />
80           <s:hidden name="documentTitle" value="%{documentName}" />
81           <s:hidden name="defaultDocumentType"  value="%{documentType}" />
82           <s:hidden name="defaultDocumentState" value="%{documentState}" />
83           <s:hidden name="version"       value="%{version}" />
84           <s:hidden name="documentDate"  value="%{documentDate}" />
85           <table cellpadding=0 cellspacing=0 border=0 class=text>
86             <tr height=15><td></td></tr>
87             <tr>
88               <td align=right><s:text name="field.documentype"/>&nbsp;&nbsp;</td>
89               <td align=left>&nbsp;<s:text name="field.documentitle"/></td>
90             </tr>
91             <tr>
92               <td>
93                 <s:set var="type"      value="defaultDocumentType.index"/>
94                 <s:set var="selectype" value="%{'onChange=submit()'}"/>
95                 <s:if test="%{documentType != 0}">
96                   <s:set var="selectype" value="%{'disabled'}"/>
97                 </s:if>
98                 <select name="documentType" <s:property value="%{#selectype}"/>>
99                   <option value="-1"><s:text name="menu.select"/></option>
100                   <option value="0">&nbsp;<s:text name="menu.newdoctype"/></option>
101                   <optgroup label="&nbsp;<s:text name="label.doctypes"/>">
102                     <s:iterator value="documentTypes">
103                       <s:if test="%{index == #type}">
104                         <option selected value="<s:property value="index"/>">&nbsp;<s:text name="type.document.%{name}"/></option>
105                       </s:if><s:else>
106                         <option value="<s:property value="index"/>">&nbsp;<s:text name="type.document.%{name}"/></option>
107                       </s:else>
108                     </s:iterator>
109                   </optgroup>
110                 </select>&nbsp;
111               </td>
112               <td>
113                 <s:set var="setname" value="%{''}"/>
114                 <s:if test="%{reference != null}">
115                   <s:set var="setname" value="%{'disabled'}"/>
116                 </s:if>
117                 <input type="text" name="documentName" size="60" value="<s:property value="documentName"/>" <s:property value="%{#setname}"/> />
118               </td>
119             </tr>
120             <s:if test="defaultDocumentUses.size > 0">
121               <tr><td align=right><s:text name="label.uses"/>:</td></tr>
122               <s:iterator value="defaultDocumentUses">
123               <tr>
124                 <td align=right><input type="checkbox" name="uses" value="<s:property value="index"/>" checked></td>
125                 <td><s:property value="title"/></td>
126               </tr>
127               </s:iterator>
128             </s:if>
129             <tr height=10><td></td></tr>
130             <tr>
131               <td align=right>
132                 <input type="submit" name="cancel" value="<s:text name="button.cancel"/>"/>&nbsp;
133               </td>
134               <td align=left>
135                 <input type="submit" name="save" value="<s:text name="button.import"/>"/>
136                 <select name="documentState" <s:property value="%{#setname}"/>>
137                   <s:if test="documentState == 'EXTERN'">
138                     <option value="inWORK"><s:text name="label.inWORK"/></option>
139                     <option value="inDRAFT"><s:text name="label.inDRAFT"/></option>
140                     <option value="EXTERN" selected><s:text  name="label.EXTERN"/></option>
141                   </s:if>
142                   <s:elseif test="documentState == 'inDRAFT'">
143                     <option value="inWORK"><s:text name="label.inWORK"/></option>
144                     <option value="inDRAFT" selected><s:text name="label.inDRAFT"/></option>
145                     <option value="EXTERN"><s:text  name="label.EXTERN"/></option>
146                   </s:elseif>
147                   <s:else>
148                     <option value="inWORK" selected><s:text name="label.inWORK"/></option>
149                     <option value="inDRAFT"><s:text name="label.inDRAFT"/></option>
150                     <option value="EXTERN"><s:text  name="label.EXTERN"/></option>
151                   </s:else>
152                 </select>
153               </td>
154             </tr>
155           </table>
156           </form>
157         </div>
158       </div>
159     </div>
160   </body>
161 </html>