Salome HOME
d227e8e7f373b4e9da07636d486e3066a15829da
[tools/siman.git] / Workspace / Siman / WebContent / study / newStudy.jsp
1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2     pageEncoding="ISO-8859-1"
3 %><%@
4     taglib prefix="s" uri="/struts-tags"
5 %>
6 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
7 <html>
8
9   <head>
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">
14
15     function initialize () {
16 //  ----------------------
17       create.elements[0].focus();
18     }
19
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
28       }
29       create.elements[2].focus();
30     }
31     </script>
32   </head>
33
34   <body onLoad="initialize()">
35 <!-- Menu-bar
36      =============================================================================================================================
37   -->
38     <jsp:include page="/jsp/menubar.jsp" />
39     <div id=top-spacer></div>
40
41 <!-- Creation menu
42      =============================================================================================================================
43   -->
44     <div id=left-pane>
45       <jsp:include page="/jsp/toolbar.jsp" />
46       <div id=top-spacer></div>
47       <jsp:include page="/jsp/menuitem.jsp">
48         <jsp:param name="menu" value="open" />
49       </jsp:include>
50     </div>
51
52 <!-- New study dialog
53      =============================================================================================================================
54   -->
55     <div id=center-pane>
56       <div id=article-box>
57         <div id=section><s:text name="title.newstudy"/></div>
58         <div id=top-spacer></div>
59         <form name="create" action="valid-new" method="post">
60         <table class="text">
61
62           <tr class="error">
63             <td colspan=3><s:text name="%{error}"/></td>
64           </tr>
65
66           <tr>
67             <td>
68               &nbsp;<s:text name="field.studytitle"/>*:&nbsp;
69             </td>
70             <td colspan=2>
71               <input type=text size="60" name=title value="<s:property value="title"/>">
72             </td>
73           </tr>
74
75           <tr>
76             <td>
77               &nbsp;<s:text name="field.product"/>*:&nbsp;
78             </td>
79             <s:if test="projectContextValues.size > 0">
80               <td id=select>
81                 <select name="projectContext" style="width:214px" onChange="setValue()">
82                   <option value="-1"><s:text name="menu.select"/></option>
83                   <option value="0">&nbsp;<s:text name="menu.newproduct"/></option>
84                   <optgroup label="&nbsp;<s:text name="label.products"/>">
85                     <s:iterator value="projectContextValues">
86                       <option value="<s:property value="index"/>">&nbsp;<s:property value="value"/></option>
87                     </s:iterator>
88                   </optgroup>
89                 </select>
90               </td>
91               <td id=enter style="display: none">
92                 <input type=text size="30" name=projectContext>
93               </td>
94             </s:if>
95             <s:else>
96               <td>
97                 <input type=hidden         name=projectContext value="0">
98                 <input type=text size="30" name=projectContext>
99               </td>
100             </s:else>
101             <td align=right>
102               <input type="submit" value="<s:text name="button.newstudy"/>"/>
103             </td>
104           </tr>
105
106         </table>
107         </form>
108         <div id=top-spacer></div>
109       </div>
110     </div>
111
112 <!-- Reserved
113   -->
114     <div id=right-pane></div>
115     <div id=bottom-spacer></div>
116
117   </body>
118
119 </html>