| 1 | </pre> |
|---|
| 2 | </div> |
|---|
| 3 | |
|---|
| 4 | <script type="text/javascript"> |
|---|
| 5 | /* <![CDATA[ */ |
|---|
| 6 | var progress = getByID("progress-bar"); |
|---|
| 7 | if (progress) { |
|---|
| 8 | progress.style.display = "none"; |
|---|
| 9 | } |
|---|
| 10 | /* ]]> */ |
|---|
| 11 | </script> |
|---|
| 12 | |
|---|
| 13 | <mt:if name="restore_end"> |
|---|
| 14 | <mt:if name="error"> |
|---|
| 15 | <mtapp:statusmsg |
|---|
| 16 | id="restore-error" |
|---|
| 17 | class="error"> |
|---|
| 18 | <__trans phrase="An error occurred during the restore process: [_1] Please check your restore file." params="<mt:var name="error">"> |
|---|
| 19 | </mtapp:statusmsg> |
|---|
| 20 | <div class="actions-bar"> |
|---|
| 21 | <div class="actions-bar-inner pkg actions"> |
|---|
| 22 | <form action="" method="get" onsubmit="return false" onclick="window.focus();"> |
|---|
| 23 | <button |
|---|
| 24 | onclick="return closeDialog('<mt:var name="error_url">'); return false" |
|---|
| 25 | type="submit" |
|---|
| 26 | accesskey="v" |
|---|
| 27 | title="<__trans phrase="View Activity Log (v)">" |
|---|
| 28 | class="primary-button" |
|---|
| 29 | ><__trans phrase="View Activity Log"></button> |
|---|
| 30 | </form> |
|---|
| 31 | </div> |
|---|
| 32 | </div> |
|---|
| 33 | <mt:else> |
|---|
| 34 | <mtapp:statusmsg |
|---|
| 35 | id="restore-success" |
|---|
| 36 | class="success"> |
|---|
| 37 | <__trans phrase="All data restored successfully!"> |
|---|
| 38 | </mtapp:statusmsg> |
|---|
| 39 | <div class="actions-bar"> |
|---|
| 40 | <div class="actions-bar-inner pkg actions"> |
|---|
| 41 | <form action="" method="get" onsubmit="return false" onclick="window.focus();"> |
|---|
| 42 | <button |
|---|
| 43 | onclick="return closeDialog('<mt:var name="ok_url">'); return false" |
|---|
| 44 | type="submit" |
|---|
| 45 | accesskey="s" |
|---|
| 46 | title="<__trans phrase="Close (s)">" |
|---|
| 47 | class="primary-button" |
|---|
| 48 | ><__trans phrase="Close"></button> |
|---|
| 49 | </form> |
|---|
| 50 | </div> |
|---|
| 51 | </div> |
|---|
| 52 | </mt:if> |
|---|
| 53 | |
|---|
| 54 | <mt:else> |
|---|
| 55 | <form name="next_page" id="next_page" method="POST" action="<mt:var name="script_url">"> |
|---|
| 56 | <input type="hidden" name="__mode" value="<mt:var name="next_mode">" /> |
|---|
| 57 | <input type="hidden" name="magic_token" value="<mt:var name="magic_token">" /> |
|---|
| 58 | <input type="hidden" name="files" value="<mt:var name="files">" /> |
|---|
| 59 | <input type="hidden" name="assets" value="<mt:var name="assets">" /> |
|---|
| 60 | <input type="hidden" name="current_file" value="<mt:var name="name">" /> |
|---|
| 61 | <input type="hidden" name="last" value="<mt:var name="last">" /> |
|---|
| 62 | <input type="hidden" name="redirect" value="1" /> |
|---|
| 63 | <input type="hidden" name="is_dirty" value="<mt:var name="is_dirty">" /> |
|---|
| 64 | <input type="hidden" name="is_asset" value="<mt:var name="is_asset">" /> |
|---|
| 65 | <input type="hidden" name="objects_json" value="<mt:var name="objects_json" escape="html">" /> |
|---|
| 66 | <input type="hidden" name="deferred_json" value="<mt:var name="deferred_json" escape="html">" /> |
|---|
| 67 | <input type="hidden" name="blog_ids" value="<mt:var name="blog_ids">" /> |
|---|
| 68 | <input type="hidden" name="asset_ids" value="<mt:var name="asset_ids">" /> |
|---|
| 69 | <input type="hidden" name="blogs_meta" value="<mt:var name="blogs_meta" escape="html">" /> |
|---|
| 70 | |
|---|
| 71 | </form> |
|---|
| 72 | <div class="actions-bar"> |
|---|
| 73 | <div class="actions-bar-inner pkg actions"> |
|---|
| 74 | <form id="command_form" action="" method="get" onsubmit="return false" onclick="window.focus();"> |
|---|
| 75 | <button |
|---|
| 76 | onclick="submit_form();" |
|---|
| 77 | type="submit" |
|---|
| 78 | id="next-page-button" |
|---|
| 79 | class="hidden" |
|---|
| 80 | accesskey="s" |
|---|
| 81 | title="<__trans phrase="Next Page"> (s)" |
|---|
| 82 | ><__trans phrase="Next Page"></button> |
|---|
| 83 | </form> |
|---|
| 84 | </div> |
|---|
| 85 | </div> |
|---|
| 86 | <script type="text/javascript"> |
|---|
| 87 | /* <![CDATA[ */ |
|---|
| 88 | function submit_form() { |
|---|
| 89 | var f = document['next_page']; |
|---|
| 90 | if (f) { |
|---|
| 91 | f.submit(); |
|---|
| 92 | } |
|---|
| 93 | } |
|---|
| 94 | |
|---|
| 95 | var timer; |
|---|
| 96 | timer = window.setTimeout("submit_form()", 3000); |
|---|
| 97 | |
|---|
| 98 | function stopTimer() { |
|---|
| 99 | window.clearTimeout(timer); |
|---|
| 100 | var p = getByID("message"); |
|---|
| 101 | p.innerHTML = ''; |
|---|
| 102 | DOM.removeClassName(getByID('next-page-button'), 'hidden'); |
|---|
| 103 | } |
|---|
| 104 | /* ]]> */ |
|---|
| 105 | </script> |
|---|
| 106 | <p id="message"><__trans phrase="The page will redirect to a new page in 3 seconds. [_1]Stop the redirect.[_2]" params="<a href='javascript:void(0)' onclick='return stopTimer()'>%%</a>"></p> |
|---|
| 107 | </mt:if> |
|---|
| 108 | <mt:include name="dialog/footer.tmpl"> |
|---|