1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
2 <%@ taglib prefix="s" uri="/struts-tags"%>
3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
6 <script language="JavaScript">
8 function initialize () {
9 // ----------------------
10 create.elements[0].focus();
13 function setValue () {
14 // -------------------
15 var select = create.elements[1].value; // contextValue select input
16 if (select == "0") { // Creation of a new context type
17 tds = document.getElementById("select");
18 tde = document.getElementById("enter");
19 tds.style.display = "none"; // Hides the select input
20 tde.style.display = "block"; // Displays the text input
22 create.elements[2].focus();
27 =============================================================================================================================
30 <div id=section><s:text name="title.newstudy"/></div>
31 <div id=top-spacer></div>
32 <form name="create" action="valid-new" method="post">
36 <td colspan=3><s:text name="%{error}"/></td>
41 <s:text name="field.studytitle"/>*:
44 <input type=text size="60" name=title value="<s:property value="title"/>">
50 <s:text name="field.product"/>*:
52 <s:if test="projectContextValues.size > 0">
54 <select name="projectContext" style="width:214px" onChange="setValue()">
55 <option value="-1"><s:text name="menu.select"/></option>
56 <option value="0"> <s:text name="menu.newproduct"/></option>
57 <optgroup label=" <s:text name="label.products"/>">
58 <s:iterator value="projectContextValues">
59 <option value="<s:property value="index"/>"> <s:property value="value"/></option>
64 <td id=enter style="display: none">
65 <input type=text size="30" name=projectContext>
70 <input type=hidden name=projectContext value="0">
71 <input type=text size="30" name=projectContext>
75 <input type="submit" value="<s:text name="button.newstudy"/>"/>
81 <div id=top-spacer></div>
86 <div id=right-pane></div>
87 <div id=bottom-spacer></div>