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 <jsp:param name="menu" value="create" />
41 <div id=top-spacer></div>
44 =============================================================================================================================
47 <jsp:include page="/jsp/toolbar.jsp">
48 <jsp:param name="tools" value="none" />
50 <div id=top-spacer></div>
51 <jsp:include page="/jsp/menuitem.jsp">
52 <jsp:param name="menu" value="open" />
57 =============================================================================================================================
61 <div id=section><s:text name="title.newstudy"/></div>
62 <div id=top-spacer></div>
63 <form name="create" action="valid-new" method="post">
67 <td colspan=3><s:text name="%{error}"/></td>
72 <s:text name="field.studytitle"/>*:
75 <input type=text size="60" name=title value="<s:property value="title"/>">
81 <s:text name="field.product"/>*:
83 <s:if test="projectContextValues.size > 0">
85 <select name="projectContext" style="width:214px" onChange="setValue()">
86 <option value="-1"><s:text name="menu.select"/></option>
87 <option value="0"> <s:text name="menu.newproduct"/></option>
88 <optgroup label=" <s:text name="label.products"/>">
89 <s:iterator value="projectContextValues">
90 <option value="<s:property value="index"/>"> <s:property value="value"/></option>
95 <td id=enter style="display: none">
96 <input type=text size="30" name=projectContext>
101 <input type=hidden name=projectContext value="0">
102 <input type=text size="30" name=projectContext>
106 <input type="submit" value="<s:text name="button.newstudy"/>"/>
112 <div id=top-spacer></div>
118 <div id=right-pane></div>
119 <div id=bottom-spacer></div>