1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 pageEncoding="ISO-8859-1"
4 taglib prefix="s" uri="/struts-tags"
6 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
10 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
11 <title><s:text name="name.module"/></title>
12 <link href=<s:url value="/skin/default.css"/> rel="stylesheet" type="text/css">
13 <script language="JavaScript">
15 function initialize () {
16 // ----------------------
17 create.elements[0].focus();
20 function setValue () {
21 // -------------------
22 var select = create.elements[1].value; // contextValue select input
23 if (select == "0") { // Creation of a new context type
24 tds = document.getElementById("select");
25 tde = document.getElementById("enter");
26 tds.style.display = "none"; // Hides the select input
27 tde.style.display = "block"; // Displays the text input
29 create.elements[2].focus();
34 <body onLoad="initialize()">
36 =============================================================================================================================
38 <jsp:include page="/jsp/menubar.jsp" />
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" />
55 =============================================================================================================================
59 <div id=section><s:text name="title.newstudy"/></div>
60 <div id=top-spacer></div>
61 <form name="create" action="valid-new" method="post">
65 <td colspan=3><s:text name="%{error}"/></td>
70 <s:text name="field.studytitle"/>*:
73 <input type=text size="60" name=title value="<s:property value="title"/>">
79 <s:text name="field.product"/>*:
81 <s:if test="projectContextValues.size > 0">
83 <select name="projectContext" style="width:214px" onChange="setValue()">
84 <option value="-1"><s:text name="menu.select"/></option>
85 <option value="0"> <s:text name="menu.newproduct"/></option>
86 <optgroup label=" <s:text name="label.products"/>">
87 <s:iterator value="projectContextValues">
88 <option value="<s:property value="index"/>"> <s:property value="value"/></option>
93 <td id=enter style="display: none">
94 <input type=text size="30" name=projectContext>
99 <input type=hidden name=projectContext value="0">
100 <input type=text size="30" name=projectContext>
104 <input type="submit" value="<s:text name="button.newstudy"/>"/>
110 <div id=top-spacer></div>
116 <div id=right-pane></div>
117 <div id=bottom-spacer></div>