list_backup_detail.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <table class="submenu">
  2. <tr>
  3. <td style="padding: 12px 8px">
  4. <div class="submenu-button-block">
  5. <button class="submenu-button-main" onclick="location.href='/schedule/restore/?backup=<?php echo $_GET['backup'] ?>'"> <?php print __('Restore All');?> </button>
  6. </div>
  7. <div class="submenu-search-block">
  8. <form action="/search/" method="get">
  9. <input type="text" name="q" class="submenu-search-field">
  10. <input type="submit" value="<?php print __('Search');?>" class="submenu-button" style="width: 96px;">
  11. </form>
  12. </div>
  13. <div class="submenu-select-block">
  14. <form action="/bulk/restore/" method="post" id="objects">
  15. <a class="submenu-select-link" href='javascript:checkedAll("objects");'> <?php print __('toggle all');?> </a>
  16. <select class="submenu-select-dropdown" name="action">
  17. <option value=""><?php print __('apply to selected');?></option>
  18. <option value="restore"><?php print __('restore');?></option>
  19. </select>
  20. <input type="hidden" name="backup" value="<?php echo $_GET['backup'] ?>">
  21. <input type="submit" name="ok" value="›" class="submenu-button" style="width: 36px;">
  22. </div>
  23. <?php
  24. if (!empty($_SESSION['restore_msg'])) {
  25. ?>
  26. <div>
  27. <script type="text/javascript">
  28. $(function() {
  29. $( "#dialog:ui-dialog" ).dialog( "destroy" );
  30. $( "#dialog-message" ).dialog({
  31. modal: true,
  32. buttons: {
  33. Ok: function() {
  34. $( this ).dialog( "close" );
  35. }
  36. }
  37. });
  38. });
  39. </script>
  40. <div id="dialog-message" title="<?php print __('Backup System') ?>">
  41. <p><?php echo $_SESSION['restore_msg'] ?></p>
  42. </div>
  43. </div>
  44. <?php
  45. unset($_SESSION['restore_msg']);
  46. }
  47. ?>
  48. </td>
  49. </tr>
  50. </table>
  51. </div>
  52. <div id="vstobjects">
  53. <div style="height:10px; font-size:0;"></div>
  54. <table class="data" style="background: #ebe9dc;">
  55. <tr>
  56. <td style="padding: 8px 2px 8px 0;">
  57. <a class="name" style="color: #555; font-size: 10pt;"><b><?php print __('Listing');?> <?php echo $_GET['backup'] ?> </b></a>
  58. </td>
  59. </tr>
  60. </table>
  61. <div style="height:10px; font-size:0;"></div>
  62. <table class="data">
  63. <?php
  64. $backup = $_GET['backup'];
  65. $web = explode(',',$data[$backup]['WEB']);
  66. foreach ($web as $key) {
  67. if (!empty($key)) {
  68. ?>
  69. <tr class="data-row">
  70. <td class="data-dotted" width="150">
  71. <table class="data-col1">
  72. <tr><td><input type="checkbox" class="ch-toggle" name="web[]" value="<?php echo $key ?>" ></td></tr>
  73. </table>
  74. </td>
  75. <td class="data-dotted" width="830px">
  76. <a href="/schedule/restore/?backup=<?php echo $backup ?>&type=web&object=<?php echo $key ?>" class="data-controls">
  77. <span>
  78. <img src="/images/restore.png" width="6px" height="8px">
  79. <?php print __('restore');?>
  80. </span>
  81. </a>
  82. <table class="data-col2" width="830px">
  83. <tr>
  84. <td class="cron" style="width: 170px; font-size: 14px;">
  85. <?php echo 'web ' . __('domain') ?>
  86. </td>
  87. <td class="domain" style="padding: 0 0 0 4px;">
  88. <b><?php echo $key ?></b>
  89. </td>
  90. </tr>
  91. </table>
  92. </td>
  93. </tr>
  94. <?php
  95. }
  96. }
  97. ?>
  98. <?php
  99. $dns = explode(',',$data[$backup]['DNS']);
  100. foreach ($dns as $key) {
  101. if (!empty($key)) {
  102. ?>
  103. <tr class="data-row">
  104. <td class="data-dotted" width="150">
  105. <table class="data-col1">
  106. <tr><td><input type="checkbox" class="ch-toggle" name="dns[]" value="<?php echo $key ?>" ></td></tr>
  107. </table>
  108. </td>
  109. <td class="data-dotted" width="830px">
  110. <a href="/schedule/restore/?backup=<?php echo $backup ?>&type=dns&object=<?php echo $key ?>" class="data-controls">
  111. <span>
  112. <img src="/images/restore.png" width="6px" height="8px">
  113. <?php print __('restore');?>
  114. </span>
  115. </a>
  116. <table class="data-col2" width="830px">
  117. <tr>
  118. <td class="cron" style="width: 170px; font-size: 14px;">
  119. <?php echo 'dns ' . __('domain') ?>
  120. </td>
  121. <td class="domain" style="padding: 0 0 0 4px;">
  122. <b><?php echo $key ?></b>
  123. </td>
  124. </tr>
  125. </table>
  126. </td>
  127. </tr>
  128. <?php
  129. }
  130. }
  131. ?>
  132. <?php
  133. $mail = explode(',',$data[$backup]['MAIL']);
  134. foreach ($mail as $key) {
  135. if (!empty($key)) {
  136. ?>
  137. <tr class="data-row">
  138. <td class="data-dotted" width="150">
  139. <table class="data-col1">
  140. <tr><td><input type="checkbox" class="ch-toggle" name="mail[]" value="<?php echo $key ?>" ></td></tr>
  141. </table>
  142. </td>
  143. <td class="data-dotted" width="830px">
  144. <a href="/schedule/restore/?backup=<?php echo $backup ?>&type=mail&object=<?php echo $key ?>" class="data-controls">
  145. <span>
  146. <img src="/images/restore.png" width="6px" height="8px">
  147. <?php print __('restore');?>
  148. </span>
  149. </a>
  150. <table class="data-col2" width="830px">
  151. <tr>
  152. <td class="cron" style="width: 170px; font-size: 14px;">
  153. <?php echo 'mail ' . __('domain') ?>
  154. </td>
  155. <td class="domain" style="padding: 0 0 0 4px;">
  156. <b><?php echo $key ?></b>
  157. </td>
  158. </tr>
  159. </table>
  160. </td>
  161. </tr>
  162. <?php
  163. }
  164. }
  165. ?>
  166. <?php
  167. $db = explode(',',$data[$backup]['DB']);
  168. foreach ($db as $key) {
  169. if (!empty($key)) {
  170. ?>
  171. <tr class="data-row">
  172. <td class="data-dotted" width="150">
  173. <table class="data-col1">
  174. <tr><td><input type="checkbox" class="ch-toggle" name="db[]" value="<?php echo $key ?>" ></td></tr>
  175. </table>
  176. </td>
  177. <td class="data-dotted" width="830px">
  178. <a href="/schedule/restore/?backup=<?php echo $backup ?>&type=db&object=<?php echo $key ?>" class="data-controls">
  179. <span>
  180. <img src="/images/restore.png" width="6px" height="8px">
  181. <?php print __('restore');?>
  182. </span>
  183. </a>
  184. <table class="data-col2" width="830px">
  185. <tr>
  186. <td class="cron" style="width: 170px; font-size: 14px;">
  187. <?php echo __('database') ?>
  188. </td>
  189. <td class="domain" style="padding: 0 0 0 4px;">
  190. <b><?php echo $key ?></b>
  191. </td>
  192. </tr>
  193. </table>
  194. </td>
  195. </tr>
  196. <?php
  197. }
  198. }
  199. ?>
  200. <?php
  201. $backup = $_GET['backup'];
  202. if (!empty($data[$backup]['CRON'])) {
  203. if (!empty($key)) {
  204. ?>
  205. <tr class="data-row">
  206. <td class="data-dotted" width="150">
  207. <table class="data-col1">
  208. <tr><td><input type="checkbox" class="ch-toggle" name="cron[]" value="<?php echo 'yes' ?>" ></td></tr>
  209. </table>
  210. </td>
  211. <td class="data-dotted" width="830px">
  212. <a href="/schedule/restore/?backup=<?php echo $backup ?>&type=cron&object=records" class="data-controls">
  213. <span>
  214. <img src="/images/restore.png" width="6px" height="8px">
  215. <?php print __('restore');?>
  216. </span>
  217. </a>
  218. <table class="data-col2" width="830px">
  219. <tr>
  220. <td class="cron" style="width: 170px; font-size: 14px;">
  221. <?php echo __('cron') ?>
  222. </td>
  223. <td class="domain" style="padding: 0 0 0 4px;">
  224. <b><?php echo 'cron ' . __('records') ?></b>
  225. </td>
  226. </tr>
  227. </table>
  228. </td>
  229. </tr>
  230. <?php
  231. }
  232. }
  233. ?>
  234. <?php
  235. $udir = explode(',',$data[$backup]['UDIR']);
  236. foreach ($udir as $key) {
  237. if (!empty($key)) {
  238. ?>
  239. <tr class="data-row">
  240. <td class="data-dotted" width="150">
  241. <table class="data-col1">
  242. <tr><td><input type="checkbox" class="ch-toggle" name="udir[]" value="<?php echo $key ?>" ></td></tr>
  243. </table>
  244. </td>
  245. <td class="data-dotted" width="830px">
  246. <a href="/schedule/restore/?backup=<?php echo $backup ?>&type=udir&object=<?php echo $key ?>" class="data-controls">
  247. <span>
  248. <img src="/images/restore.png" width="6px" height="8px">
  249. <?php print __('restore');?>
  250. </span>
  251. </a>
  252. <table class="data-col2" width="830px">
  253. <tr>
  254. <td class="cron" style="width: 170px; font-size: 14px;">
  255. <?php echo __('user dir') ?>
  256. </td>
  257. <td class="domain" style="padding: 0 0 0 4px;">
  258. <b><?php echo $key ?></b>
  259. </td>
  260. </tr>
  261. </table>
  262. </td>
  263. </tr>
  264. <?php
  265. }
  266. }
  267. ?>
  268. </table>
  269. </form>
  270. </div>