home *** CD-ROM | disk | FTP | other *** search
- <%
- com.websina.util.Field field;
- String default_option="-";
- %>
- <table cellspacing=4 cellpadding=2 border=0>
- <tr>
- <% if( (field=conf.getField("project_area")) != null && (optionList=field.getValue()) != null) { %>
- <td align=center bgcolor="#e0e0e0"><%=label.get("project_area", projectId)%><br>
- <select name=project_area size=3 multiple>
- <%=ListMaker.makeOptionList(optionList, default_option) %>
- </select> </td>
- <% } %>
- </tr></table>
- <table cellspacing=4 cellpadding=2 border=0>
- <tr>
- <%
- int cf = conf.getCustomFieldNumber();
- int bn = 0, count = 0; // bn for the break number
- if (cf > 8) { // for field number of 9,10,11,12
- bn = cf/3;
- } else if (cf > 4) { // for field number of 5,6,7,8
- bn = cf/2;
- }
- for (int i=1; i<=CUSTOM_FIELDS; i++) {
- String fieldName = "field_"+i;
- if( (field=conf.getField(fieldName)) != null && (optionList=field.getValue()) != null) {
- %>
- <td align=center valign=top bgcolor="#e0e0e0">
- <% if (field.isTextField()) { %>
- <%=label.get(fieldName, projectId)%><font color=red>¹</font><br>
- <input name="<%=fieldName%>" size=20 maxlength=255>
- </td>
- <input type="hidden" name="<%=fieldName%>_type" value="text">
- <% } else { %>
- <%=label.get(fieldName, projectId)%><br>
- <select name=<%=fieldName%> size=3 multiple>
- <%=ListMaker.makeOptionList(optionList, default_option) %>
- </select> </td>
- <% }
- count++;
- if (count == bn) {
- cf -= bn;
- if (cf >= 2*bn) {
- bn = cf/2;
- } else {
- bn = cf;
- }
- count = 0; // reset the count
- if (cf > 0) { //start a new table.
- out.println("</tr></table><table cellspacing=4 cellpadding=2 border=0><tr>");
- }
- }
- }} %>
- </tr></table>
-
- <table cellspacing=4 cellpadding=2 border=0>
- <tr>
- <% if( (field=conf.getField("issue_type")) != null && (optionList=field.getValue()) != null) { %>
- <td align=center bgcolor="#e0e0e0"><%=label.get("issue_type", projectId)%><br>
- <select name=issue_type size=4 multiple>
- <%=ListMaker.makeOptionList(optionList, default_option) %>
- </select> </td>
- <% } %>
- <% if( (field=conf.getField("severity")) != null && (optionList=field.getValue()) != null) { %>
- <td align=center bgcolor="#e0e0e0"><%=label.get("severity", projectId)%><br>
- <select name=severity size=4 multiple>
- <%=ListMaker.makeOptionList(optionList, default_option) %>
- </select></td>
- <% } %>
- <% if( (field=conf.getField("priority")) != null && (optionList=field.getValue()) != null) { %>
- <td align=center bgcolor="#e0e0e0"><%=label.get("priority", projectId)%><br>
- <select name=priority size=4 multiple>
- <%=ListMaker.makeOptionList(optionList, default_option) %>
- </select></td>
- <% } %>
- <td align=center bgcolor="#e0e0e0"><%=label.get("state", projectId)%><br>
- <select name=state size=4 multiple>
- <%=ListMaker.makeOptionList(conf.getField("state").getValue(), default_option) %>
- </select></td>
- </tr></table>
-