<%@ page import="org.splat.simer.StudyPropertiesAction"%>
<%@ page import="org.splat.dal.bo.kernel.User"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-
<s:if test="actionType == null">
<s:set var="todo">display</s:set>
<s:param name="cycle" value="%{'default'}"/>
</s:url>
<s:url id="undo" namespace="/study" action="prop-study" />
-<html>
-
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- <link href=<s:url value="/skin/default.css"/> rel="stylesheet" type="text/css">
- <script language="JavaScript">
-
+<script language="JavaScript">
function setType () {
-// -------------------
var type = edit.documentType.value;
-// if (type == "0") edit.saveCycle.disabled = true;
-// else edit.saveCycle.disabled = false;
}
- </script>
- </head>
-
- <body>
+</script>
<!-- Properties form
=============================================================================================================================
StudyPropertiesAction controler = (StudyPropertiesAction)stacktop;
Iterator<User> members = controler.getContributors().iterator();
- for (Iterator<User> staff = controler.getCandidates().iterator(); staff.hasNext(); ) {
- out.print("<tr>");
- if (members.hasNext()) {
- User user = members.next();
- out.print("<td><input type=checkbox name=\"members\" value=\"" + String.valueOf(String.valueOf(user.getIndex())) + "\" checked/></td>");
- out.print("<td>");
- out.print(controler.getText(user.getDisplayName()));
- out.print("</td>");
- } else {
- out.print("<td></td><td></td>");
- }
+ for (Iterator<User> staff = controler.getCandidates().iterator(); staff.hasNext(); ) {%>
+ <tr>
+ <%if (members.hasNext()) {
+ User user = members.next();%>
+ <td><input type="checkbox" name="members" value="<%=String.valueOf(user.getIndex())%>" checked/></td>
+ <td>
+ <%=controler.getText(user.getDisplayName())%>
+ </td>
+ <%} else {%>
+ <td></td><td></td>
+ <%}
for (int j=0; j<3; j++) {
if (staff.hasNext()) {
- User user = staff.next();
- out.print("<td><input type=checkbox name=\"candidates\" value=\"" + String.valueOf(user.getIndex()) + "\" /> ");
- out.print(controler.getText(user.getDisplayName()));
- out.print("</td>");
- } else {
- out.print("<td></td>");
- }
- }
- out.print("</tr>");
- }
+ User user = staff.next();%>
+ <td><input type="checkbox" name="candidates" value="<%=String.valueOf(user.getIndex())%>" />
+ <%=controler.getText(user.getDisplayName())%>
+ </td>
+ <%} else {%>
+ <td></td>
+ <%}
+ }%>
+ </tr>
+ <%}
while (members.hasNext()) {
- User user = members.next();
- out.print("<tr>");
- out.print("<td><input type=checkbox name=\"members\" value=\"" + String.valueOf(user.getIndex()) + "\" checked/></td>");
- out.print("<td>");
- out.print(controler.getText(user.getDisplayName()));
- out.print("</td>");
- out.print("</tr>");
- }%>
+ User user = members.next();%>
+ <tr>
+ <td><input type="checkbox" name="members" value="<%=String.valueOf(user.getIndex())%>" checked/></td>
+ <td>
+ <%=controler.getText(user.getDisplayName())%>
+ </td>
+ </tr>
+ <%}%>
</s:if>
<s:else>
<tr>
<s:iterator value="readers">
<tr>
<td>
- <s:checkbox name="readerIds" fieldValue="%{index}" theme="simple" checked="checked" />
- <s:property value="%{getText(displayName)}"/>
+ <s:checkbox name="readerIds" fieldValue="%{index}" theme="simple" value="true" />
+ <s:property value="%{getText(displayName)}"/>
</td>
</tr>
</s:iterator>
</s:form>
</div>
</div>
-
- </body>
-</html>
\ No newline at end of file