]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman/WebContent/study/newStudy.jsp
Salome HOME
e5b2c1a4e892c75ee74e90f410e04abc1ecce5d5
[tools/siman.git] / Workspace / Siman / WebContent / study / newStudy.jsp
1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
2 <%@ taglib prefix="s" uri="/struts-tags"%>
3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4
5 <div>
6     <script language="JavaScript">
7
8     function initialize () {
9 //  ----------------------
10       create.elements[0].focus();
11     }
12
13     function setValue () {
14 //  -------------------
15       var select = create.elements[1].value;  // contextValue select input
16       if (select == "0") {                    // Creation of a new context type
17         tds = document.getElementById("select");
18         tde = document.getElementById("enter");
19         tds.style.display = "none";           // Hides the select input
20         tde.style.display = "block";          // Displays the text input
21       }
22       create.elements[2].focus();
23     }
24     </script>
25
26 <!-- New study dialog
27      =============================================================================================================================
28   -->
29     <div id=center-pane>
30       <div id=article-box>
31         <div id=section><s:text name="title.newstudy"/></div>
32         <div id=top-spacer></div>
33         <form name="create" action="valid-new" method="post">
34         <table class="text">
35
36           <tr class="error">
37             <td colspan=3><s:text name="%{error}"/></td>
38           </tr>
39
40           <tr>
41             <td>
42               &nbsp;<s:text name="field.studytitle"/>*:&nbsp;
43             </td>
44             <td colspan=2>
45               <input type=text size="60" name=title value="<s:property value="title"/>">
46             </td>
47           </tr>
48
49           <tr>
50             <td>
51               &nbsp;<s:text name="field.product"/>*:&nbsp;
52             </td>
53             <s:if test="projectContextValues.size > 0">
54               <td id=select>
55                 <select name="projectContext" style="width:214px" onChange="setValue()">
56                   <option value="-1"><s:text name="menu.select"/></option>
57                   <option value="0">&nbsp;<s:text name="menu.newproduct"/></option>
58                   <optgroup label="&nbsp;<s:text name="label.products"/>">
59                     <s:iterator value="projectContextValues">
60                       <option value="<s:property value="index"/>">&nbsp;<s:property value="value"/></option>
61                     </s:iterator>
62                   </optgroup>
63                 </select>
64               </td>
65               <td id=enter style="display: none">
66                 <input type=text size="30" name=projectContext>
67               </td>
68             </s:if>
69             <s:else>
70               <td>
71                 <input type=hidden         name=projectContext value="0">
72                 <input type=text size="30" name=projectContext>
73               </td>
74             </s:else>
75             <td align=right>
76               <input type="submit" value="<s:text name="button.newstudy"/>"/>
77             </td>
78           </tr>
79
80         </table>
81         </form>
82         <div id=top-spacer></div>
83       </div>
84     </div>
85
86 <!-- Reserved
87   -->
88     <div id=right-pane></div>
89     <div id=bottom-spacer></div>
90
91 </div>