1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 pageEncoding="ISO-8859-1"
5 taglib prefix="s" uri="/struts-tags"
7 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
9 <s:set var="selected" value="%{selection}"/>
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">
20 =============================================================================================================================
22 <jsp:include page="/jsp/menubar.jsp">
23 <jsp:param name="menu" value="datadmin" />
25 <div id=top-spacer></div>
27 <!-- Administration menu
28 =============================================================================================================================
31 <jsp:include page="/jsp/toolbar.jsp">
32 <jsp:param name="tools" value="none" />
34 <div id=top-spacer></div>
35 <jsp:include page="/jsp/menuitem.jsp">
36 <jsp:param name="menu" value="open" />
43 =============================================================================================================================
46 <div id=section><s:text name="title.valid.context"/></div>
47 <div id=article-body class=text>
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>
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>
57 <tr height=1 bgcolor=#AAAAAA><td colspan=7></td></tr>
59 <s:iterator value="contextsToBeApproved">
60 <s:url id="edit" namespace="/sadmin" action="scontext-edit">
61 <s:param name="selection" value="%{index}"/>
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>
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"/>
77 <td><s:property value="typeName"/></td>
78 <td><s:property value="value"/></td>
79 <td><s:text name="menu.step.%{stepNumber}"/></td>
88 <s:text name="message.nocontext" />
94 =============================================================================================================================
96 <s:if test='%{#selected != "0"}'>
98 <div id=section><s:text name="title.valid.form"/></div>
99 <div id=article-body class=text>
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>
105 <td colspan=2><s:text name="label.ownerstudy"/></td>
106 <td width=150><s:text name="label.manager"/></td>
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}"/>
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>
123 <table cellpadding=0 cellspacing=0 border=0 class=text>
124 <tr height=20><td width=20></td></tr>
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>
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>
133 <tr height=5><td></td></tr>
137 <table cellpadding=0 cellspacing=0>
139 <td><i><s:text name="message.info.code"/></i></td>
140 <td> <img src="<s:url value="/skin/image.help.png"/>" border="none" title="<s:text name="help.contextcode"/>"/></td>
146 <td align=right><s:text name="field.code"/>: </td>
148 <table cellpadding=0 cellspacing=0>
150 <td><input type=text name=enteredCode size=40/></td>
152 <select name="code" style="width: 20px">
153 <option><s:text name="label.usedcode"/>:</option>
154 <s:iterator value="existingNames">
155 <option> <s:property value="name"/></option>
163 <tr height=5><td></td></tr>
166 <td><i><s:text name="message.info.type"/></i></td>
169 <s:iterator value="supportedLocales">
172 <td align=right><s:text name="field.label"/> <s:text name="label.lang.%{locale}"/>: </td>
174 <table cellpadding=0 cellspacing=0>
177 <s:if test="isCurrent()">
178 <input type=text name=enteredType size=40 value="<s:property value="edited.type.name"/>"/>
180 <input type=text name=enteredType size=40/>
184 <select name="code" style="width: 20px">
185 <option><s:text name="label.usedname"/>:</option>
186 <s:iterator value="typeNames" var="name">
187 <option> <s:property value="#name"/></option>
197 <tr height=5><td></td></tr>
200 <td><i><s:text name="message.info.step"/></i></td>
204 <td align=right><s:text name="field.step"/>: </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> <s:text name="menu.step.%{number}"/></option>
212 <option> <s:text name="menu.step.%{number}"/></option>
218 <tr height=20><td></td></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>
223 <tr height=5><td></td></tr>
225 <s:set var="valbel"><s:text name="type.context.%{edited.type.name}"/></s:set>
228 <!-- Approval form of the context value -->
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>
238 <td align=right><s:text name="%{#valbel}"/>: </td>
239 <td><input type=text name=enteredValue size=40 value="<s:property value="%{edited.value}"/>"></td>
240 <s:if test="existingContexts.size > 0">
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"/>"> <s:property value="value"/></option>
252 <!-- Validation button -->
253 <tr height=20><td></td></tr>
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>