Salome HOME
Menus are improved
[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         <jsp:param name="tools" value="none" />
47       </jsp:include>
48       <div id=top-spacer></div>
49       <jsp:include page="/jsp/menuitem.jsp">
50         <jsp:param name="menu" value="open" />
51       </jsp:include>
52     </div>
53
54 <!-- New study dialog
55      =============================================================================================================================
56   -->
57     <div id=center-pane>
58       <div id=article-box>
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">
62         <table class="text">
63
64           <tr class="error">
65             <td colspan=3><s:text name="%{error}"/></td>
66           </tr>
67
68           <tr>
69             <td>
70               &nbsp;<s:text name="field.studytitle"/>*:&nbsp;
71             </td>
72             <td colspan=2>
73               <input type=text size="60" name=title value="<s:property value="title"/>">
74             </td>
75           </tr>
76
77           <tr>
78             <td>
79               &nbsp;<s:text name="field.product"/>*:&nbsp;
80             </td>
81             <s:if test="projectContextValues.size > 0">
82               <td id=select>
83                 <select name="projectContext" style="width:214px" onChange="setValue()">
84                   <option value="-1"><s:text name="menu.select"/></option>
85                   <option value="0">&nbsp;<s:text name="menu.newproduct"/></option>
86                   <optgroup label="&nbsp;<s:text name="label.products"/>">
87                     <s:iterator value="projectContextValues">
88                       <option value="<s:property value="index"/>">&nbsp;<s:property value="value"/></option>
89                     </s:iterator>
90                   </optgroup>
91                 </select>
92               </td>
93               <td id=enter style="display: none">
94                 <input type=text size="30" name=projectContext>
95               </td>
96             </s:if>
97             <s:else>
98               <td>
99                 <input type=hidden         name=projectContext value="0">
100                 <input type=text size="30" name=projectContext>
101               </td>
102             </s:else>
103             <td align=right>
104               <input type="submit" value="<s:text name="button.newstudy"/>"/>
105             </td>
106           </tr>
107
108         </table>
109         </form>
110         <div id=top-spacer></div>
111       </div>
112     </div>
113
114 <!-- Reserved
115   -->
116     <div id=right-pane></div>
117     <div id=bottom-spacer></div>
118
119   </body>
120
121 </html>