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