1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 pageEncoding="ISO-8859-1"
4 <%@ taglib prefix="s" uri="/struts-tags"
6 <s:url id="undo" namespace="/study" action="step-study"></s:url>
8 <!-- Selection of an existing type of simulation context
10 <s:if test="%{action == 'selectContext'}">
11 <table cellpadding=0 cellspacing=0 border=0 class=text>
12 <tr height=2><td></td></tr>
13 <s:iterator value="simulationContexts">
16 <s:if test="%{isApproved()}"><img src="<s:url value="/skin/disabled.APPROVED.png"/>" width=14 height=14 border="none" /></s:if>
17 <s:else><img src="<s:url value="/skin/disabled.state.png"/>" width=14 height=14 border="none" /></s:else>
20 <s:if test="%{type.isApproved()}"><b><s:text name="type.context.%{typeName}"/>: </b></s:if>
21 <s:else><b><s:property value="%{typeName}"/>: </b></s:else>
23 <td><s:property value="value"/></td>
27 <table cellpadding=0 cellspacing=0 border=0 class=text>
29 <td width=18 align=center>
30 <s:a href="%{undo}"><img src="<s:url value="/skin/icon.undo.png"/>" border="none" title="<s:text name="tooltip.cancel"/>" /></s:a>
33 <select name="contextType" onChange="submit()">
34 <s:set var="category" value="-1"/>
35 <option value="-1"><s:text name="menu.selectcontextype"/></option>
36 <option value="0"> <s:text name="menu.newcontype"/></option>
37 <s:iterator value="simulationContextTypes">
38 <s:set var="valided" value="%{isApproved()}"/>
39 <s:if test="%{#category != #valided}">
40 <s:if test="%{#category != '-1'}"></optgroup></s:if>
41 <s:if test="%{#valided}"><optgroup label=" <s:text name="label.contypes.valid"/>"></s:if>
42 <s:else><optgroup label=" <s:text name="label.contypes"/>"></s:else>
43 <s:set var="category" value="%{#valided}"/>
45 <option value="<s:property value="index"/>">
46 <s:if test="%{isApproved()}"> <s:text name="type.context.%{name}"/></s:if>
47 <s:else> <s:property value="%{name}"/></s:else>
58 <!-- List of existing simulation contexts
60 <table cellpadding=0 cellspacing=0 border=0 class=text>
61 <tr height=2><td></td></tr>
62 <s:iterator value="simulationContexts">
65 <s:if test="%{isApproved()}"><img src="<s:url value="/skin/disabled.APPROVED.png"/>" width=14 height=14 border="none" /></s:if>
66 <s:else><img src="<s:url value="/skin/disabled.state.png"/>" width=14 height=14 border="none" /></s:else>
69 <s:if test="%{type.isApproved()}"><b><s:text name="type.context.%{typeName}"/>: </b></s:if>
70 <s:else><b><s:property value="%{typeName}"/>: </b></s:else>
72 <td><s:property value="value"/></td>
77 <!-- Display of eventual input error
80 <!-- Input of a new type of simulation context
82 <table cellpadding=0 cellspacing=0 border=0 class=text>
83 <s:if test="%{action == 'newContext'}">
85 <td width=18 align=center>
86 <s:a href="%{undo}"><img src="<s:url value="/skin/icon.undo.png"/>" border="none" title="<s:text name="tooltip.cancel"/>" /></s:a>
88 <td><input type=text name=newType value="<s:text name="field.contextype"/>"> : </td>
89 <td><input type=text name=contextValue></td>
91 <button type="submit" value="" style="width:24px; height:16px; border:0; cursor:pointer; cursor:hand; background:transparent">
92 <img src="<s:url value="/skin/image.export.png"/>" title="<s:text name="button.save"/>"/>
98 <!-- Input of a value of the selected simulation context type
100 <s:elseif test="%{action == 'setContext'}">
102 <td width=18 align=center>
103 <s:a href="%{undo}"><img src="<s:url value="/skin/icon.undo.png"/>" border="none" title="<s:text name="tooltip.cancel"/>" /></s:a>
106 <s:if test="%{contextType.isApproved()}"><b><s:text name="type.context.%{contextName}"/>: </b></s:if>
107 <s:else><b><s:property value="%{contextName}"/>: </b></s:else>
109 <s:if test="simulationContextValues.size > 0">
111 <select name="contextValue" onChange="setValue()">
112 <option value="-1"><s:text name="menu.select"/></option>
113 <option value="0"> <s:text name="menu.newcontext"/></option>
114 <optgroup label=" <s:text name="label.contexts"/>">
115 <s:iterator value="simulationContextValues">
116 <option value="<s:property value="index"/>"> <s:property value="value"/></option>
121 <td id=enter style="display: none">
122 <input type=hidden name=contextType value="<s:property value="index"/>">
123 <input type=text name=contextValue>
126 <button type="submit" value="" style="width:24px; height:16px; border:0; cursor:pointer; cursor:hand; background:transparent">
127 <img src="<s:url value="/skin/image.export.png"/>" title="<s:text name="button.save"/>"/>
133 <input type=hidden name=contextType value="<s:property value="index"/>">
134 <input type=hidden name=contextValue value="0">
135 <input type=text name=contextValue>
138 <button type="submit" value="" style="width:24px; height:16px; border:0; cursor:pointer; cursor:hand; background:transparent">
139 <img src="<s:url value="/skin/image.export.png"/>" title="<s:text name="button.save"/>"/>