mirror of
https://github.com/serghey-rodin/vesta.git
synced 2024-12-25 21:41:13 -08:00
397 lines
15 KiB
HTML
397 lines
15 KiB
HTML
<div class="l-center">
|
|
<div class="l-sort clearfix noselect">
|
|
<a href="/schedule/restore/?backup=<?=htmlentities($_GET['backup'])?>" class="l-sort__create-btn restore" title="<?=__('Restore All')?>"></a>
|
|
<div class="l-sort-toolbar clearfix">
|
|
<table>
|
|
<tr>
|
|
<td class="l-sort-toolbar__search-box">
|
|
<form action="/search/" method="get">
|
|
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
|
<input type="text" name="q" class="search-input" value="<? echo isset($_POST['q']) ? htmlspecialchars($_POST['q']) : '' ?>" />
|
|
<input type="submit" value="" class="l-sort-toolbar__search" onClick="return doSearch('/search/')" />
|
|
</form>
|
|
</td>
|
|
<td class="toggle-all">
|
|
<input id="toggle-all" type="checkbox" name="toggle-all" value="toggle-all" onchange="checkedAll('objects');">
|
|
<label for="toggle-all" class="check-label toggle-all"><?=__('toggle all')?></label>
|
|
</td>
|
|
<td>
|
|
<form action="/bulk/restore/" method="post" id="objects">
|
|
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
|
<input type="hidden" name="backup" value="<?=htmlentities($_GET['backup']); ?>">
|
|
<div class="l-select">
|
|
<select name="action">
|
|
<option value=""><?=__('apply to selected')?></option>
|
|
<option value="restore"><?php print __('restore') ?></option>
|
|
</select>
|
|
</div>
|
|
<input type="submit" value="" class="l-sort-toolbar__filter-apply" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<!-- /.l-sort -->
|
|
</div>
|
|
|
|
<div class="l-separator"></div>
|
|
<!-- /.l-separator -->
|
|
|
|
|
|
<div class="l-center units">
|
|
<div class="l-unit header">
|
|
<div class="subtitle"><?=__('Listing')?> <?=htmlentities($_GET['backup'])?></div>
|
|
</div>
|
|
|
|
<?
|
|
$backup = $_GET['backup'];
|
|
$web = explode(',',$data[$backup]['WEB']);
|
|
foreach ($web as $key) {
|
|
if (!empty($key)) {
|
|
++$i;
|
|
?>
|
|
|
|
<div class="l-unit">
|
|
<div class="l-unit-toolbar clearfix">
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--left">
|
|
<input id="check<?=$i?>" class="ch-toggle" type="checkbox" name="web[]" value="<?=$key?>">
|
|
<label for="check<?=$i++?>" class="check-label"></label>
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--right">
|
|
<div class="actions-panel__col actions-panel__update shortcut-r" key-action="href"><a href="/schedule/restore/?backup=<?=$backup?>&type=web&object=<?=$key?>&token=<?=$_SESSION['token']?>"><?=__('restore')?> <i></i></a><span class="shortcut"> R</span></div>
|
|
<!-- /.actiona-panel -->
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
</div>
|
|
<!-- /.l-unit-toolbar -->
|
|
|
|
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
|
<!-- /.l-unit__col -->
|
|
<div class="l-unit__col l-unit__col--right">
|
|
<!-- div class="l-unit__name separate">
|
|
<?=$key?>
|
|
</div -->
|
|
|
|
<div class="l-unit__stats">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<div class="l-unit__stat-cols clearfix">
|
|
<div class="l-unit__stat-col l-unit__stat-col--left uppercase"><?='WEB ' . __('domain')?></div>
|
|
<div class="l-unit__stat-col l-unit__stat-col--left wide-3"><b><?=$key?></b></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<!-- /.l-unit__stats -->
|
|
</div>
|
|
<!-- /.l-unit__col -->
|
|
</div>
|
|
<!-- /.l-unit -->
|
|
<!--div class="l-separator"></div-->
|
|
<!-- /.l-separator -->
|
|
<? }} ?>
|
|
|
|
|
|
|
|
<?
|
|
$mail = explode(',',$data[$backup]['MAIL']);
|
|
foreach ($mail as $key) {
|
|
if (!empty($key)) {
|
|
?>
|
|
|
|
<div class="l-unit">
|
|
<div class="l-unit-toolbar clearfix">
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--left">
|
|
<input id="check2<?=$i?>" type="checkbox" name="mail[]" value="<?=$key?>">
|
|
<label for="check2<?=$i++?>" class="check-label"></label>
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">
|
|
<div class="actions-panel__col actions-panel__update shortcut-r" key-action="href"><a href="/schedule/restore/?backup=<?=$backup?>&type=mail&object=<?=$key?>"><?=__('restore')?> <i></i></a><span class="shortcut"> R</span></div>
|
|
<!-- /.actiona-panel -->
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
</div>
|
|
<!-- /.l-unit-toolbar -->
|
|
|
|
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
|
<!-- /.l-unit__col -->
|
|
<div class="l-unit__col l-unit__col--right">
|
|
<div class="l-unit__stats">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<div class="l-unit__stat-cols clearfix">
|
|
<div class="l-unit__stat-col l-unit__stat-col--left uppercase"><?='MAIL ' . __('domain')?></div>
|
|
<div class="l-unit__stat-col l-unit__stat-col--left wide-3"><b><?=$key?></b></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<!-- /.l-unit__stats -->
|
|
</div>
|
|
<!-- /.l-unit__col -->
|
|
</div>
|
|
<!-- /.l-unit -->
|
|
<!--div class="l-separator"></div-->
|
|
<!-- /.l-separator -->
|
|
<? }} ?>
|
|
|
|
|
|
|
|
|
|
<?
|
|
$dns = explode(',',$data[$backup]['DNS']);
|
|
foreach ($dns as $key) {
|
|
if (!empty($key)) {
|
|
?>
|
|
|
|
<div class="l-unit">
|
|
<div class="l-unit-toolbar clearfix">
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--left">
|
|
<input id="check3<?=$i?>" type="checkbox" name="dns[]" value="<?=$key?>">
|
|
<label for="check3<?=$i++?>" class="check-label"></label>
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--right">
|
|
<div class="actions-panel__col actions-panel__update shortcut-r" key-action="href"><a href="/schedule/restore/?backup=<?=$backup?>&type=dns&object=<?=$key?>"><?=__('restore')?> <i></i></a><span class="shortcut"> R</span></div>
|
|
<!-- /.actiona-panel -->
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
</div>
|
|
<!-- /.l-unit-toolbar -->
|
|
|
|
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
|
<!-- /.l-unit__col -->
|
|
<div class="l-unit__col l-unit__col--right">
|
|
<div class="l-unit__stats">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<div class="l-unit__stat-cols clearfix">
|
|
<div class="l-unit__stat-col l-unit__stat-col--left uppercase"><?='DNS ' . __('domain')?></div>
|
|
<div class="l-unit__stat-col l-unit__stat-col--left wide-3"><b><?=$key?></b></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<!-- /.l-unit__stats -->
|
|
</div>
|
|
<!-- /.l-unit__col -->
|
|
</div>
|
|
<!-- /.l-unit -->
|
|
<!--div class="l-separator"></div-->
|
|
<!-- /.l-separator -->
|
|
<? }} ?>
|
|
|
|
|
|
|
|
<?
|
|
$db = explode(',',$data[$backup]['DB']);
|
|
foreach ($db as $key) {
|
|
if (!empty($key)) {
|
|
?>
|
|
|
|
<div class="l-unit">
|
|
<div class="l-unit-toolbar clearfix">
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--left">
|
|
<input id="check4<?=$i?>" type="checkbox" name="db[]" value="<?=$key?>">
|
|
<label for="check4<?=$i++?>" class="check-label"></label>
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--right">
|
|
<div class="actions-panel__col actions-panel__update shortcut-r" key-action="href"><a href="/schedule/restore/?backup=<?=$backup?>&type=db&object=<?=$key?>"><?=__('restore')?> <i></i></a><span class="shortcut"> R</span></div>
|
|
<!-- /.actiona-panel -->
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
</div>
|
|
<!-- /.l-unit-toolbar -->
|
|
|
|
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
|
<!-- /.l-unit__col -->
|
|
<div class="l-unit__col l-unit__col--right">
|
|
<div class="l-unit__stats">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<div class="l-unit__stat-cols clearfix">
|
|
<div class="l-unit__stat-col l-unit__stat-col--left uppercase"><?=__('database')?></div>
|
|
<div class="l-unit__stat-col l-unit__stat-col--left wide-3"><b><?=$key?></b></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<!-- /.l-unit__stats -->
|
|
</div>
|
|
<!-- /.l-unit__col -->
|
|
</div>
|
|
<!-- /.l-unit -->
|
|
<!--div class="l-separator"></div-->
|
|
<!-- /.l-separator -->
|
|
<? }} ?>
|
|
|
|
|
|
|
|
|
|
<?
|
|
$backup = $_GET['backup'];
|
|
if (!empty($data[$backup]['CRON'])) {
|
|
if (!empty($key)) {
|
|
?>
|
|
|
|
<div class="l-unit">
|
|
<div class="l-unit-toolbar clearfix">
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--left">
|
|
<input id="check5<?=$i?>" type="checkbox" name="check" value="<?=$key?>">
|
|
<label for="check5<?=$i++?>" class="check-label"></label>
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--right">
|
|
<div class="actions-panel__col actions-panel__update shortcut-r" key-action="href"><a href="/schedule/restore/?backup=<?=$backup?>&type=cron&object=records"><?=__('restore')?> <i></i></a><span class="shortcut"> R</span></div>
|
|
<!-- /.actiona-panel -->
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
</div>
|
|
<!-- /.l-unit-toolbar -->
|
|
|
|
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
|
<!-- /.l-unit__col -->
|
|
<div class="l-unit__col l-unit__col--right">
|
|
<div class="l-unit__stats">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<div class="l-unit__stat-cols clearfix">
|
|
<div class="l-unit__stat-col l-unit__stat-col--left uppercase"><?=__('cron')?></div>
|
|
<div class="l-unit__stat-col l-unit__stat-col--left wide-3"><b><?='cron '.__('records')?></b></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<!-- /.l-unit__stats -->
|
|
</div>
|
|
<!-- /.l-unit__col -->
|
|
</div>
|
|
<!-- /.l-unit -->
|
|
<!--div class="l-separator"></div-->
|
|
<!-- /.l-separator -->
|
|
<? }} ?>
|
|
|
|
|
|
|
|
|
|
<?
|
|
$udir = explode(',',$data[$backup]['UDIR']);
|
|
foreach ($udir as $key) {
|
|
if (!empty($key)) {
|
|
?>
|
|
|
|
<div class="l-unit">
|
|
<div class="l-unit-toolbar clearfix">
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--left">
|
|
<input id="check6<?=$i?>" type="checkbox" name="udir[]" value="<?=$key?>">
|
|
<label for="check6<?=$i++?>" class="check-label"></label>
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--right">
|
|
<div class="actions-panel__col actions-panel__update shortcut-r" key-action="href"><a href="/schedule/restore/?backup=<?=$backup?>&type=udir&object=<?=$key?>"><?=__('restore')?> <i></i></a><span class="shortcut"> R</span></div>
|
|
<!-- /.actiona-panel -->
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
</div>
|
|
<!-- /.l-unit-toolbar -->
|
|
|
|
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
|
<!-- /.l-unit__col -->
|
|
<div class="l-unit__col l-unit__col--right">
|
|
<div class="l-unit__stats">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<div class="l-unit__stat-cols clearfix">
|
|
<div class="l-unit__stat-col l-unit__stat-col--left uppercase"><?=__('user dir')?></div>
|
|
<div class="l-unit__stat-col l-unit__stat-col--left wide-3"><b><?=$key?></b></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<!-- /.l-unit__stats -->
|
|
</div>
|
|
<!-- /.l-unit__col -->
|
|
</div>
|
|
<!-- /.l-unit -->
|
|
<!-- div class="l-separator"></div-->
|
|
<!-- /.l-separator -->
|
|
<? }} ?>
|
|
|
|
<div class="l-unit">
|
|
<div class="l-unit-toolbar clearfix">
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--left">
|
|
<input id="check7<?=$i?>" type="checkbox" name="cron" value="<?=$i?>">
|
|
<label for="check7<?=$i++?>" class="check-label"></label>
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--right">
|
|
<div class="actions-panel__col actions-panel__update shortcut-r" key-action="href"><a href="/schedule/restore/?backup=<?=$backup?>&type=cron"><?=__('restore')?> <i></i></a><span class="shortcut"> R</span></div>
|
|
<!-- /.actiona-panel -->
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
</div>
|
|
<!-- /.l-unit-toolbar -->
|
|
|
|
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
|
<!-- /.l-unit__col -->
|
|
<div class="l-unit__col l-unit__col--right">
|
|
<div class="l-unit__stats">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<div class="l-unit__stat-cols clearfix">
|
|
<div class="l-unit__stat-col l-unit__stat-col--left uppercase"><?=__('cron')?></div>
|
|
<div class="l-unit__stat-col l-unit__stat-col--left wide-3"><b></b></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<!-- /.l-unit__stats -->
|
|
</div>
|
|
<!-- /.l-unit__col -->
|
|
</div>
|
|
<!-- /.l-unit -->
|
|
<!-- div class="l-separator"></div-->
|
|
<!-- /.l-separator -->
|
|
</div>
|
|
|
|
|
|
|
|
<div id="vstobjects">
|
|
<div class="l-separator"></div>
|
|
<div class="l-center">
|
|
<div class="l-unit-ft">
|
|
<table class='data'></table>
|
|
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
|
<div class="data-count l-unit__col l-unit__col--right total clearfix">
|
|
<?php
|
|
if ( $i == 1) {
|
|
echo __('1 item');
|
|
} else {
|
|
echo __('%s items',$i);
|
|
}
|
|
?>
|
|
</div>
|
|
<div class="data-count l-unit__col l-unit__col--right back clearfix">
|
|
<a class="button cancel" href="/list/backup/"><?=__('Back')?></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|