Salome HOME
jQuery UI is used to display message about checked out files.
[tools/siman.git] / Workspace / Siman / WebContent / layout / baseLayout.jsp
1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
2 <%@ taglib prefix="s" uri="/struts-tags"%>
3 <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
4 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
6 <html>
7
8  <head>
9     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
10     <tiles:importAttribute name="title" scope="request"/>       
11         <title>
12                 <s:property value="%{getText(#request.title)}"/>
13         </title>
14     <link href=<s:url value="/skin/default.css"/> rel="stylesheet" type="text/css"/>
15     <link href=<s:url value="/css/cupertino/jquery-ui-1.9.0.custom.css"/> rel="stylesheet"/>
16     <script src=<s:url value="/js/jquery-1.8.2.js"/>></script>
17     <script src=<s:url value="/js/jquery-ui-1.9.0.custom.js"/>></script>
18 </head>
19
20 <body>
21         <!-- Menu-bar  -->
22     <tiles:insertAttribute name="menu_bar" ignore="true" />
23
24         <!-- Title-bar -->
25         <tiles:insertAttribute name="title_bar" ignore="true" />
26
27 <!-- Left pane -->
28     <div id=left-pane>
29         <tiles:insertAttribute name="tool_bar" ignore="true" />
30         <div id=top-spacer></div>
31         <tiles:insertAttribute name="left_menus" ignore="true" />
32         <tiles:insertAttribute name="study_properties" ignore="true" />
33     </div>
34
35 <!-- Message pane
36      =============================================================================================================================
37   -->
38     <div id=main-pane>
39         <tiles:insertAttribute name="presentation_pane" ignore="true" />
40     </div>
41 <s:if test="message != ''">
42 <div id="message"><p><s:property value="message"/></p></div>
43 <script>
44     $(document).ready(function () {
45         $( "#message" ).dialog({
46             autoOpen: true,
47             width: 400,
48             buttons: [
49                 {
50                     text: '<s:text name="button.ok"/>',
51                     click: function() {
52                         $( this ).dialog( "close" );
53                     }
54                 }
55             ]
56         });
57     });
58 </script>
59 </s:if>
60   </body>
61