]> SALOME platform Git repositories - tools/siman.git/blob
Salome HOME
f41f54c6c1b4937debbb56510ca758d98b3a35ee
[tools/siman.git] /
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       <jsp:param name="menu" value="study" />
32     </jsp:include>
33
34 <!-- Title-bar
35      =============================================================================================================================
36   -->
37     <jsp:include page="/jsp/titlebar.jsp">
38       <jsp:param name="entity"  value="study" />
39       <jsp:param name="disable" value="true" />
40     </jsp:include>
41
42 <!-- Left pane
43      =============================================================================================================================
44   -->
45     <div id=left-pane>
46       <jsp:include page="/jsp/toolbar.jsp">
47         <jsp:param name="tools" value="none" />
48       </jsp:include>
49       <div id=top-spacer></div>
50       <jsp:include page="/jsp/menuitem.jsp">
51         <jsp:param name="menu" value="scenario" />
52       </jsp:include>
53       <jsp:include page="/jsp/studyProperties.jsp" />
54     </div>
55
56 <!-- New scenario properties
57      =============================================================================================================================
58   -->
59     <div id=main-pane>
60       <div id=article-box>
61         <div id=section><s:text name="title.newscenario"/></div>
62         <div id=article-body class=text>
63         <form name="create" action="valid-add" method="post">
64           <table class="text">
65             <tr>
66               <td><s:text name="field.scenariotitle"/>*:&nbsp;</td>
67               <td>
68                 <input type=text size="25" name=title value="<s:property value="title"/>">
69               </td>
70             </tr>
71             <tr>
72               <td><s:text name="field.scenario"/>*:&nbsp;</td>
73               <td>
74                 <s:set var="previous" value="selectedScenarioIndex"/>
75                 <select name="selectedScenario" style="width:204px">
76                   <s:iterator value="scenarii">    
77                     <s:if test="%{index == #previous}">
78                       <option selected value="<s:property value="index"/>"><s:property value="%{title}"/></option>
79                     </s:if><s:else>
80                       <option value="<s:property value="index"/>"><s:property value="%{title}"/></option>
81                     </s:else>
82                   </s:iterator>        
83                 </select>
84               </td>
85             </tr>
86             <tr>
87               <td>&nbsp;</td>
88             </tr>
89             <tr>
90               <td></td>
91               <td><i><s:text name="message.info.bastep"/></i></td>
92             </tr>
93             <tr>
94               <td><s:text name="field.activity"/>&nbsp;:&nbsp;</td>
95               <td>
96                 <s:if test="sharesStep()">
97                   <input type=text size="25" value="<s:text name="menu.step.%{sharedStep}"/>" disabled>
98                 </s:if><s:else>
99                   <input type=text size="25" disabled>
100                 </s:else>
101               </td>
102             </tr>
103             <tr height=10><td></td></tr>
104             <tr>
105               <td align=right>
106                 <input type="submit" name="cancel" value="<s:text name="button.cancel"/>"/>
107               </td>
108               <td>
109                 <input type="submit" name="save"   value="<s:text name="button.newscenario"/>"/>
110               </td>
111             </tr>
112           </table>
113         </form>
114         </div>
115       </div>
116     </div>
117   </body>
118 </html>