| ##Licensed to the Apache Software Foundation (ASF) under one or more |
| ##contributor license agreements. See the NOTICE file distributed with |
| ##this work for additional information regarding copyright ownership. |
| ##The ASF licenses this file to You under the Apache License, Version 2.0 |
| ##(the "License"); you may not use this file except in compliance with |
| ##the License. You may obtain a copy of the License at |
| ## |
| ##http://www.apache.org/licenses/LICENSE-2.0 |
| ## |
| ##Unless required by applicable law or agreed to in writing, software |
| ##distributed under the License is distributed on an "AS IS" BASIS, |
| ##WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ##See the License for the specific language governing permissions and |
| ##limitations under the License. |
| #set($layout = "/templates/governance/layout/redirect.vm") |
| <div id="alertBox" style="display: none; position: absolute; left: 200px; top: 200px; width: 720px; height: 300px;"> |
| <table style="background-image: url('#if($success)$rootContextPath.getURI( |
| "images/tip_succeed.png")#else$rootContextPath.getURI("images/tip_del.png")#end');" width="720" height="300" |
| onload="return redirect();"> |
| <tr height="42"> |
| <td></td> |
| <td width="31"><img src="$rootContextPath.getURI("images/pop_close.png")" |
| onclick="window.location.href = '$rootContextPath.getURI("$redirect")'';" |
| style="cursor: pointer;" width="20" |
| height="20"/></td> |
| </tr> |
| <tr height="120"> |
| <td align="right"><span style="font-size: 32px;">#if($success)#springMessageText("operation.success", "operation.success")#else#springMessageText( |
| "operation.failure","operation.failure")#end</span><br/>$!message$!exception.message</td> |
| <td></td> |
| </tr> |
| <tr> |
| <td align="right">#if(!$success) |
| <div class="btn_info" style="float: right; clear: left;"><a |
| href="$redirect">#springMessageText("confirm", "confirm")</a> |
| </div>#end</td> |
| <td></td> |
| </tr> |
| </table> |
| </div> |
| <script type="text/javascript"> |
| Box.show("alertBox"); |
| #if($success) |
| sleep(this, 500); |
| this.NextStep = function () { |
| window.location.href = '$redirect'; |
| } |
| #end |
| function sleep(obj, iMinSecond) { |
| if (window.eventList == null) |
| window.eventList = new Array(); |
| var ind = -1; |
| for (var i = 0; i < window.eventList.length; i++) { |
| if (window.eventList[i] == null) { |
| window.eventList[i] = obj; |
| ind = i; |
| break; |
| } |
| } |
| if (ind == -1) { |
| ind = window.eventList.length; |
| window.eventList[ind] = obj; |
| } |
| setTimeout("GoOn(" + ind + ")", iMinSecond); |
| } |
| function GoOn(ind) { |
| var obj = window.eventList[ind]; |
| window.eventList[ind] = null; |
| if (obj.NextStep) |
| obj.NextStep(); |
| else obj(); |
| } |
| </script> |