]> SALOME platform Git repositories - tools/siman.git/blob
Salome HOME
f74d7e7ebcea60944eafdb58a2cb700ca463adc4
[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
9 <s:set var="selected" value="%{selection}"/>
10
11 <html>
12   <head>
13     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
14     <title><s:text name="name.module"/></title>
15     <link href=<s:url value="/skin/default.css"/> rel="stylesheet" type="text/css">
16   </head>
17
18   <body>
19 <!-- Menu-bar
20      =============================================================================================================================
21   -->
22     <jsp:include page="/jsp/menubar.jsp">
23         <jsp:param name="menu" value="datadmin" />
24     </jsp:include>
25     <div id=top-spacer></div>
26
27 <!-- Administration menu
28      =============================================================================================================================
29   -->
30     <div id=left-pane>
31       <jsp:include page="/jsp/toolbar.jsp">
32         <jsp:param name="tools" value="none" />
33       </jsp:include>
34       <div id=top-spacer></div>
35       <jsp:include page="/jsp/menuitem.jsp">
36         <jsp:param name="menu" value="open" />
37       </jsp:include>
38     </div>
39
40     <div id=main-pane>
41
42 <!-- Result list
43      =============================================================================================================================
44   -->
45       <div id=article-box>
46         <div id=section><s:text name="title.valid.context"/></div>
47         <div id=article-body class=text>
48
49           <s:if test="contextsToBeApproved.size > 0">
50           <table width=100% cellpadding=0 cellspacing=0 border=0 class=text>
51             <tr height=20 valign=bottom>
52               <td width=20></td>
53               <td><s:text name="label.contypes.check"/></td>
54               <td><s:text name="label.value"/></td>
55               <td><s:text name="label.activity"/></td>
56             </tr>
57             <tr height=1 bgcolor=#AAAAAA><td colspan=7></td></tr>
58
59             <s:iterator value="contextsToBeApproved">
60             <s:url id="edit" namespace="/sadmin" action="scontext-edit">
61               <s:param name="selection" value="%{index}"/>
62             </s:url>
63             <s:if test="%{#selected == index}">
64             <tr height=18 background="<s:url value="/skin/image.selected.jpg"/>">
65               <td><img src="<s:url value="/skin/icon.ed.png"/>" width=14 height=14 border="none"></td>
66               <td><s:property value="typeName"/></td>
67               <td><s:property value="value"/></td>
68               <td><s:text name="menu.step.%{stepNumber}"/></td>
69             </tr>
70             </s:if><s:else>
71             <tr height=18>
72               <td>
73                 <s:a href="%{#edit}">
74                   <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"/>
75                 </s:a>
76               </td>
77               <td><s:property value="typeName"/></td>
78               <td><s:property value="value"/></td>
79               <td><s:text name="menu.step.%{stepNumber}"/></td>
80             </tr>
81             </s:else>
82             </s:iterator>
83
84           </table>
85           </s:if>
86
87           <s:else>
88             <s:text name="message.nocontext" />
89           </s:else>
90         </div>
91       </div>
92
93 <!-- Approval form
94      =============================================================================================================================
95   -->
96       <s:if test='%{#selected != "0"}'>
97       <div id=article-box>
98         <div id=section><s:text name="title.valid.form"/></div>
99         <div id=article-body class=text>
100
101 <!-- Scenario studies indexed by the selected simulation context -->
102           <table width=100% cellpadding=0 cellspacing=0 border=0 class=text>
103             <tr height=20 valign=bottom>
104               <td width=20></td>
105               <td colspan=2><s:text name="label.ownerstudy"/></td>
106               <td width=150><s:text name="label.manager"/></td>
107             </tr>
108             <tr height=1 bgcolor=#AAAAAA><td colspan=7></td></tr>
109             <s:iterator value="indexedElements">
110             <s:url id="open" namespace="/study" action="open-study?selection=%{selection}">
111               <s:param name="index" value="%{studyIndex}"/>
112             </s:url>
113             <tr>
114               <td width=20><img src="<s:url value="/skin/icon.%{progressState}.png"/>" width=12 height=12 border="none"/></td>
115               <td width=80><s:property value="reference"/></td>
116               <td><s:a href="%{open}" cssClass="link"><s:property value="title"/></s:a></td>
117               <td width=150><s:property value="authorName"/></td>
118             </tr>
119             </s:iterator>
120           </table>
121
122 <!-- Form -->
123           <table cellpadding=0 cellspacing=0 border=0 class=text>
124             <tr height=20><td width=20></td></tr>
125
126             <!-- Approval form of the context type -->
127             <s:if test="edited.type.isApproved() == false">
128             <s:set var="valbel"><s:text name="field.context.value"/></s:set>
129             <tr>
130               <td><img src="<s:url value="/skin/image.rightarrow.png"/>" border="none"/></td>
131               <td colspan=2><b><s:text name="label.approtype"/></b></td>
132             </tr>
133             <tr height=5><td></td></tr>
134             <tr>
135               <td colspan=2></td>
136               <td>
137                 <table cellpadding=0 cellspacing=0>
138                   <tr>
139                     <td><i><s:text name="message.info.code"/></i></td>
140                     <td>&nbsp;<img src="<s:url value="/skin/image.help.png"/>" border="none" title="<s:text name="help.contextcode"/>"/></td>
141                   </tr>
142                 </table>
143             </tr>
144             <tr>
145               <td></td>
146               <td align=right><s:text name="field.code"/>:&nbsp;</td>
147               <td>
148                 <table cellpadding=0 cellspacing=0>
149                   <tr>
150                     <td><input type=text name=enteredCode size=40/></td>
151                     <td>
152                       <select name="code" style="width: 20px">
153                         <option><s:text name="label.usedcode"/>:</option>
154                         <s:iterator value="existingNames">
155                           <option>&nbsp;<s:property value="name"/></option>
156                         </s:iterator>
157                       </select>
158                     </td>
159                   </tr>
160                 </table>
161               </td>
162             </tr>
163             <tr height=5><td></td></tr>
164             <tr>
165               <td colspan=2></td>
166               <td><i><s:text name="message.info.type"/></i></td>
167             </tr>
168
169             <s:iterator value="supportedLocales">
170             <tr>
171               <td></td>
172               <td align=right><s:text name="field.label"/>&nbsp;<s:text name="label.lang.%{locale}"/>:&nbsp;</td>
173               <td>
174                 <table cellpadding=0 cellspacing=0>
175                   <tr>
176                     <td>
177                     <s:if test="isCurrent()">
178                       <input type=text name=enteredType size=40 value="<s:property value="edited.type.name"/>"/>
179                     </s:if><s:else>
180                       <input type=text name=enteredType size=40/>
181                     </s:else>
182                     </td>
183                     <td>
184                       <select name="code" style="width: 20px">
185                         <option><s:text name="label.usedname"/>:</option>
186                         <s:iterator  value="typeNames" var="name">
187                           <option>&nbsp;<s:property value="#name"/></option>
188                         </s:iterator>
189                       </select>
190                     </td>
191                   </tr>
192                 </table>
193               </td>
194             </tr>
195             </s:iterator>
196
197             <tr height=5><td></td></tr>
198             <tr>
199               <td colspan=2></td>
200               <td><i><s:text name="message.info.step"/></i></td>
201             </tr>
202             <tr>
203               <td></td>
204               <td align=right><s:text name="field.step"/>:&nbsp;</td>
205               <td>
206                 <select name="code" style="width: 300px">
207                 <s:set var="selection" value="attachedStep.number"/>
208                 <s:iterator value="allStudySteps">
209                   <s:if test="%{number == #selection}">
210                     <option selected>&nbsp;<s:text name="menu.step.%{number}"/></option>
211                   </s:if><s:else>
212                     <option>&nbsp;<s:text name="menu.step.%{number}"/></option>
213                   </s:else>
214                 </s:iterator>
215                 </select>
216               </td>
217             </tr>
218             <tr height=20><td></td></tr>
219             <tr>
220               <td><img src="<s:url value="/skin/image.rightarrow.png"/>" border="none"/></td>
221               <td colspan=2><b><s:text name="label.approval"/></b></td>
222             </tr>
223             <tr height=5><td></td></tr>
224             </s:if><s:else>
225             <s:set var="valbel"><s:text name="type.context.%{edited.type.name}"/></s:set>
226             </s:else>
227
228             <!-- Approval form of the context value -->
229             <tr>
230               <td colspan=2></td>
231               <td><i><s:text name="message.info.value"/></i></td>
232               <s:if test="existingContexts.size > 0">
233               <td><i><s:text name="message.info.context"/></i></td>
234               </s:if>
235             </tr>
236             <tr>
237               <td></td>
238               <td align=right><s:text name="%{#valbel}"/>:&nbsp;</td>
239               <td><input type=text name=enteredValue size=40 value="<s:property value="%{edited.value}"/>"></td>
240               <s:if test="existingContexts.size > 0">
241               <td>
242                 <select name="selectedValue" style="width: 20px">
243                   <option value="-1"><s:text name="menu.select"/></option>
244                   <s:iterator value="existingContexts">
245                     <option value="<s:property value="index"/>">&nbsp;<s:property value="value"/></option>
246                   </s:iterator>
247                 </select>
248               </td>
249               </s:if>
250             </tr>
251
252             <!-- Validation button -->
253             <tr height=20><td></td></tr>
254             <tr>
255               <td></td>
256               <td align=right><img src="<s:url value="/skin/icon.APPROVED.png"/>" border="none"></td>
257               <td><input type="submit" name="doIt"  value="<s:text name="button.approve"/>" disabled/></td>
258             </tr>
259           </table>
260         </div>
261       </div>
262       </s:if>
263
264     </div>
265   </body>
266 </html>