1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 pageEncoding="ISO-8859-1"
4 <%@ page import="org.splat.som.Study"%>
5 <%@ page import="org.splat.som.ApplicationRights"%>
7 taglib prefix="s" uri="/struts-tags"
9 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
11 <!-- Initialization of the context
12 =============================================================================================================================
14 <% String action = request.getParameter("action");
16 ApplicationRights user = (ApplicationRights)session.getAttribute("user.rights");
17 String result = "uptodate";
18 boolean anonymous = true;
20 if (user.canCreateStudy()) anonymous = false;
21 if (session.getAttribute("search.result") == null) result = "obsolete";
23 <s:set var="todo"><%=action%></s:set>
26 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
27 <title><s:text name="name.module"/></title>
28 <link href=<s:url value="/skin/default.css"/> rel="stylesheet" type="text/css">
29 <script language="JavaScript" type="text/javascript" src="../jvs/search.js"></script>
32 <body onLoad="initialize('<%=result%>')">
34 =============================================================================================================================
36 <jsp:include page="/jsp/menubar.jsp">
37 <jsp:param name="menu" value="open" />
39 <div id=top-spacer></div>
42 =============================================================================================================================
45 <jsp:include page="/jsp/toolbar.jsp">
46 <jsp:param name="tools" value="none" />
48 <div id=top-spacer></div>
49 <jsp:include page="/jsp/menuitem.jsp">
50 <jsp:param name="menu" value="open" />
56 <!-- Search criteria section
57 =============================================================================================================================
60 <jsp:include page="/jsp/searchtabs.jsp"/>
63 <div id="top-spacer"></div>
64 <div id="article-body">
65 <form name="search" action="refresh-study" method="post">
66 <input type=hidden name="contextIndex" />
67 <s:set var="valid"><s:text name="button.result"/></s:set>
69 <table width=100% cellpadding=0 cellspacing=0 border=0 class=text>
71 <td width=40%> <s:text name="field.among"/></td>
72 <td width=60%> <s:text name="field.context"/></td>
74 <tr height=1 bgcolor=#AAAAAA><td colspan=3></td></tr>
77 <div id="article-item">
78 <s:if test="owner == 'all'">
79 <input type=radio name="owner" value="all" checked onClick="unsetReference()"><s:text name="criterion.study.all"/>
81 <input type=radio name="owner" value="all" onClick="unsetReference()"><s:text name="criterion.study.all"/>
83 <select name="state" style="width: <s:text name="size.study.state"/>" onChange="changeFilter()">
84 <option value="0"><s:text name="menu.select" /></option>
85 <s:if test="area == 'reference'">
86 <s:if test="state == 'ARCHIVED'"> <option value="ARCHIVED" selected><s:text name="criterion.archived" /></option></s:if>
87 <s:else> <option value="ARCHIVED" ><s:text name="criterion.archived" /></option></s:else>
88 <s:if test="state == 'TEMPLATE'"> <option value="TEMPLATE" selected><s:text name="criterion.template" /></option></s:if>
89 <s:else> <option value="TEMPLATE" ><s:text name="criterion.template" /></option></s:else>
91 <s:if test="state == 'inPROGRESS'"><option value="inPROGRESS" selected><s:text name="criterion.inprogress" /></option></s:if>
92 <s:else> <option value="inPROGRESS" ><s:text name="criterion.inprogress" /></option></s:else>
93 <s:if test="state == 'inDRAFT'"> <option value="inDRAFT" selected><s:text name="criterion.indraft" /></option></s:if>
94 <s:else> <option value="inDRAFT" ><s:text name="criterion.indraft" /></option></s:else>
95 <s:if test="state == 'inCHECK'"> <option value="inCHECK" selected><s:text name="criterion.incheck" /></option></s:if>
96 <s:else> <option value="inCHECK" ><s:text name="criterion.incheck" /></option></s:else>
97 <s:if test="state == 'APPROVED'"> <option value="APPROVED" selected><s:text name="criterion.approved" /></option></s:if>
98 <s:else> <option value="APPROVED" ><s:text name="criterion.approved" /></option></s:else>
102 <div id="article-item">
103 <s:if test="owner == 'his'">
104 <input type=radio name="owner" value="his" checked onClick="unsetReference()"><s:text name="criterion.study.his"/>
106 <input type=radio name="owner" value="his" onClick="unsetReference()"><s:text name="criterion.study.his"/>
108 <s:set var="him" value="author"/>
109 <select name="author" style="width: <s:text name="size.study.author"/>" onChange="changeFilter()">
110 <option value="0"><s:text name="menu.select" /></option>
111 <s:iterator value="candidates">
112 <s:if test="%{index == #him}">
113 <option value="<s:property value="index"/>" selected><s:property value="toString()"/></option>
115 <option value="<s:property value="index"/>"><s:property value="toString()"/></option>
120 <div id="article-item">
122 %> <input type=radio name="owner" value="mine" disabled><font color="#A1A192"><s:text name="criterion.study.mine"/></font>
124 %> <s:if test="owner == 'mine'">
125 <input type=radio name="owner" value="mine" checked onClick="unsetReference()"><s:text name="criterion.study.mine"/>
127 <input type=radio name="owner" value="mine" onClick="unsetReference()"><s:text name="criterion.study.mine"/>
130 <div id="article-item">
131 <s:if test="owner == 'ref'">
132 <input type=radio name="owner" value="ref" checked onClick="setReference()"><s:text name="criterion.study.ref"/>
134 <input type=radio name="owner" value="ref" onClick="setReference()"><s:text name="criterion.study.ref"/>
137 <input type=text name="reference" value="<s:property value="%{reference}"/>" size="18" onKeydown="changeFilter()"/>
144 <table cellpadding=0 cellspacing=0 border=0 class=text>
145 <s:iterator value="simulationContexts">
147 <td><input type=checkbox checked onClick="removeContext('<s:property value="index"/>')"> </td>
149 <s:if test="%{type.isApproved()}"><s:text name="type.context.%{type.name}"/>: </s:if>
150 <s:else><s:property value="%{type.name}"/>: </s:else>
152 <td><s:property value="value"/></td>
156 <s:if test="%{#todo == 'setContext'}">
159 <img src="<s:url value="/skin/icon.undo.png"/>" border="none" title="<s:text name="tooltip.cancel"/>" onClick="cancel()" />
162 <s:if test="%{selectedContextType.isApproved()}"><s:text name="type.context.%{selectedContextType.name}"/>: </s:if>
163 <s:else><s:property value="%{selectedContextType.name}"/>: </s:else>
166 <select name="contextValue" onChange="submit()">
167 <option value="-1"><s:text name="menu.select"/></option>
168 <s:iterator value="contextValueOptions">
169 <option value="<s:property value="index"/>"> <s:property value="value" /></option>
177 <s:if test="%{#todo != 'setContext'}">
178 <select name="contextType" onChange="submit()">
179 <option value="-1"><s:text name="menu.addcontext"/></option>
180 <s:iterator value="contextTypeOptions">
181 <option value="<s:property value="index"/>">
182 <s:if test="%{isApproved()}"> <s:text name="type.context.%{name}" /></s:if>
183 <s:else> <s:property value="%{name}" /></s:else>
194 <br/><s:text name="field.contain"/> : <input type=text name=words value="<s:property value="%{words}"/>" onKeydown="changeFilter()" />
201 <input type="submit" name="refresh" value="<s:text name="button.result"/>" disabled/>
211 =============================================================================================================================
215 <div id=section><s:text name="title.result"/></div>
216 <div id=article-body class=text>
218 <s:if test="result.size > 0">
219 <table width=100% cellpadding=0 cellspacing=0 border=0 class=text>
220 <tr height=20 valign=bottom>
222 <td width=80><s:text name="label.reference"/></td>
223 <td><s:text name="label.title"/><img src="<s:url value="/skin/icon.sortup.png"/>" border="none"/></td>
224 <td width=150><s:text name="label.manager"/></td>
226 <tr height=1 bgcolor=#AAAAAA><td colspan=4></td></tr>
227 <s:iterator value="result">
229 <td><img src="<s:url value="/skin/icon.%{progressState}.png"/>" width=12 height=12 border="none" title=""/></td>
230 <td><s:property value="reference"/></td>
232 <s:url id="open" namespace="/study" action="open-study?selection=0.0">
233 <s:param name="index" value="%{index}"/>
235 <s:a href="%{open}" cssClass="link"><s:property value="title"/></s:a>
237 <td><s:property value="authorName"/></td>
244 <s:text name="message.nostudy" />