<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: niujiaqing1265 $
    $Date: 2010/11/24 08:32:46 $
    $Revision: 1.2 $
    $Purpose: 没有权限提示页面
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" trace="true">
    <a:init-procedure>
        <p:echo message="Hello World!"/>
    </a:init-procedure>
    <a:view template="empty">
        <a:form id="tipForm" className="mytable" height="100" style="position:absolute;left:-2000px;top:-2000px;" title="提示" width="320">
            <table>
                <tr>
                    <td>
                        <img height="64" src="images/alert.png" style="margin:10px;" width="64"/>
                    </td>
                    <td>
                        <span style="font-size:20px;"><![CDATA[Session 超时!]]></span>
                    </td>
                </tr>
            </table>
        </a:form>
        <script type="text/javascript"><![CDATA[
            Leaf.onReady(function() {
                Leaf.center('tipForm');
                Leaf.get('tipForm').show();
                if (top && top.showlogin) {
                    top.showlogin();
                } else {
            
                    var win = Leaf.showInfoMessage('${l:PROMPT}', '${l:SYSTEM_TIME_OUT_RELOGIN}');
                    win.on('close', function() {
            
                        var url = '${/request/@context_path}/login';
            
                        if (top.opener) {
                            top.opener.location.href = url;
                            top.opener.focus();
                            top.close();
                        } else {
                            top.location.href = url;
                        }
                    });
                }
            });
        ]]></script>
    </a:view>
</a:screen>