Salome HOME
<jsp:param ... > parameters are removed from the title bar
[tools/siman.git] / Workspace / Siman / WebContent / study / newScenario.jsp
1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2     pageEncoding="ISO-8859-1"
3 %>
4 <%@
5     taglib prefix="s" uri="/struts-tags"
6 %>
7 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
8 <%  String            init = request.getParameter("init");   
9     if (init == null) init = "none";
10 %>
11 <html>
12
13   <head>
14     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
15     <title><s:text name="name.module"/></title>
16     <link href=<s:url value="/skin/default.css"/> rel="stylesheet" type="text/css">
17     <script language="JavaScript">
18
19     function initialize (context) {
20 //  -----------------------------
21       if (context == "focus") create.elements[0].focus();
22     }
23     </script>
24   </head>
25
26   <body onLoad="initialize('<%=init%>')">
27 <!-- Menu-bar
28      =============================================================================================================================
29   -->
30     <jsp:include page="/jsp/menubar.jsp" />
31
32 <!-- Title-bar
33      =============================================================================================================================
34   -->
35     <jsp:include page="/jsp/titlebar.jsp" />
36 <!-- Left pane
37      =============================================================================================================================
38   -->
39     <div id=left-pane>
40       <jsp:include page="/jsp/toolbar.jsp">
41         <jsp:param name="tools" value="none" />
42       </jsp:include>
43       <div id=top-spacer></div>
44       <jsp:include page="/jsp/menuitem.jsp">
45         <jsp:param name="menu" value="scenario" />
46       </jsp:include>
47       <jsp:include page="/jsp/studyProperties.jsp" />
48     </div>
49
50 <!-- New scenario properties
51      =============================================================================================================================
52   -->
53     <div id=main-pane>
54       <div id=article-box>
55         <div id=section><s:text name="title.newscenario"/></div>
56         <div id=article-body class=text>
57         <form name="create" action="valid-add" method="post">
58           <table class="text">
59             <tr>
60               <td><s:text name="field.scenariotitle"/>*:&nbsp;</td>
61               <td>
62                 <input type=text size="25" name=title value="<s:property value="title"/>">
63               </td>
64             </tr>
65             <tr>
66               <td><s:text name="field.scenario"/>*:&nbsp;</td>
67               <td>
68                 <s:set var="previous" value="selectedScenarioIndex"/>
69                 <select name="selectedScenario" style="width:204px">
70                   <s:iterator value="scenarii">    
71                     <s:if test="%{index == #previous}">
72                       <option selected value="<s:property value="index"/>"><s:property value="%{title}"/></option>
73                     </s:if><s:else>
74                       <option value="<s:property value="index"/>"><s:property value="%{title}"/></option>
75                     </s:else>
76                   </s:iterator>        
77                 </select>
78               </td>
79             </tr>
80             <tr>
81               <td>&nbsp;</td>
82             </tr>
83             <tr>
84               <td></td>
85               <td><i><s:text name="message.info.bastep"/></i></td>
86             </tr>
87             <tr>
88               <td><s:text name="field.activity"/>&nbsp;:&nbsp;</td>
89               <td>
90                 <s:if test="sharesStep()">
91                   <input type=text size="25" value="<s:text name="menu.step.%{sharedStep}"/>" disabled>
92                 </s:if><s:else>
93                   <input type=text size="25" disabled>
94                 </s:else>
95               </td>
96             </tr>
97             <tr height=10><td></td></tr>
98             <tr>
99               <td align=right>
100                 <input type="submit" name="cancel" value="<s:text name="button.cancel"/>"/>
101               </td>
102               <td>
103                 <input type="submit" name="save"   value="<s:text name="button.newscenario"/>"/>
104               </td>
105             </tr>
106           </table>
107         </form>
108         </div>
109       </div>
110     </div>
111   </body>
112 </html>