Salome HOME
29aca70561f0022e6462ca8bb1663154ecbf602c
[tools/siman.git] / Workspace / Siman / WebContent / study / copyStudy.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
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=article-box>
30         <div id=section><s:text name="title.newstudy"/></div>
31         <div id=top-spacer></div>
32         <form name="create" action="valid-new" method="post">
33         <table class="text">
34
35           <tr class="error">
36             <td colspan=3><s:text name="%{error}"/></td>
37           </tr>
38
39           <tr>
40             <td>
41               &nbsp;<s:text name="field.studytitle"/>*:&nbsp;
42             </td>
43             <td colspan=2>
44               <input type=text size="60" name=title value="<s:property value="title"/>">
45             </td>
46           </tr>
47
48           <tr>
49             <td>
50               &nbsp;<s:text name="field.product"/>*:&nbsp;
51             </td>
52             <s:if test="projectContextValues.size > 0">
53               <td id=select>
54                 <select name="projectContext" style="width:214px" onChange="setValue()">
55                   <option value="-1"><s:text name="menu.select"/></option>
56                   <option value="0">&nbsp;<s:text name="menu.newproduct"/></option>
57                   <optgroup label="&nbsp;<s:text name="label.products"/>">
58                     <s:iterator value="projectContextValues">
59                       <option value="<s:property value="index"/>">&nbsp;<s:property value="value"/></option>
60                     </s:iterator>
61                   </optgroup>
62                 </select>
63               </td>
64               <td id=enter style="display: none">
65                 <input type=text size="30" name=projectContext>
66               </td>
67             </s:if>
68             <s:else>
69               <td>
70                 <input type=hidden         name=projectContext value="0">
71                 <input type=text size="30" name=projectContext>
72               </td>
73             </s:else>
74             <td align=right>
75               <input type="submit" value="<s:text name="button.newstudy"/>"/>
76             </td>
77           </tr>
78
79         </table>
80         </form>
81         <div id=top-spacer></div>
82       </div>
83
84 <!-- Reserved
85   -->
86     <div id=right-pane></div>
87     <div id=bottom-spacer></div>