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 =============================================================================================================================
31 <div id=section><s:text name="title.newstudy"/></div>
32 <div id=top-spacer></div>
33 <form name="create" action="valid-new" method="post">
37 <td colspan=3><s:text name="%{error}"/></td>
42 <s:text name="field.studytitle"/>*:
45 <input type=text size="60" name=title value="<s:property value="title"/>">
51 <s:text name="field.product"/>*:
53 <s:if test="projectContextValues.size > 0">
55 <select name="projectContext" style="width:214px" onChange="setValue()">
56 <option value="-1"><s:text name="menu.select"/></option>
57 <option value="0"> <s:text name="menu.newproduct"/></option>
58 <optgroup label=" <s:text name="label.products"/>">
59 <s:iterator value="projectContextValues">
60 <option value="<s:property value="index"/>"> <s:property value="value"/></option>
65 <td id=enter style="display: none">
66 <input type=text size="30" name=projectContext>
71 <input type=hidden name=projectContext value="0">
72 <input type=text size="30" name=projectContext>
76 <input type="submit" value="<s:text name="button.newstudy"/>"/>
82 <div id=top-spacer></div>
88 <div id=right-pane></div>
89 <div id=bottom-spacer></div>