mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
backup exclusions
This commit is contained in:
parent
f32b1113d9
commit
98dd6b9d5d
6 changed files with 346 additions and 2 deletions
104
web/templates/admin/edit_backup_exclusions.html
Normal file
104
web/templates/admin/edit_backup_exclusions.html
Normal file
|
@ -0,0 +1,104 @@
|
|||
<?php
|
||||
$back = $_SESSION['back'];
|
||||
if (empty($back)) {
|
||||
$back = "location.href='/list/backup/exclusions'";
|
||||
} else {
|
||||
$back = "location.href='".$back."'";
|
||||
}
|
||||
?>
|
||||
<table class="submenu">
|
||||
<tr>
|
||||
<td style="padding: 20px 10px;" ><a class="name"><b><?php print __('Editing Backup Exclusions');?></b></a>
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
|
||||
} else {
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<form id="vstobjects" name="v_edit_backup_exclusions" method="post">
|
||||
<table class='data'>
|
||||
<tr class="data-add">
|
||||
<td class="data-dotted">
|
||||
<table class="data-col1">
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="data-<?php echo $v_status ?>"><b><?php echo __($v_status) ?></b></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="data-dotted">
|
||||
<table class="data-col2" width="600px">
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 24px 0 0 0;">
|
||||
<?php print __('Web Domains');?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput" name="v_web" placeholder="<?php echo __('WEB_EXCLUSIONS') ?>"><?php if (isset($v_web)) echo $v_web; ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 12px 0 0 0;">
|
||||
<?php print __('DNS Domains');?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput" name="v_dns" placeholder="<?php echo __('DNS_EXCLUSIONS') ?>"><?php if (isset($v_dns)) echo $v_dns; ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 12px 0 0 0;">
|
||||
<?php print __('Mail Domains');?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput" name="v_mail" placeholder="<?php echo __('MAIL_EXCLUSIONS') ?>"><?php if (isset($v_mail)) echo $v_mail; ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 12px 0 0 0;">
|
||||
<?php print __('Databases');?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea class="vst-textinput" name="v_db" placeholder="<?php echo __('DB_EXCLUSIONS') ?>"><?php if (isset($v_db)) echo $v_db; ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="vst-text" style="padding: 12px 0 0 0;">
|
||||
<?php print __('User Directories');?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea size="20" class="vst-textinput" name="v_userdir" placeholder="<?php echo __('USER_EXCLUSIONS') ?>"><?php if (isset($v_userdir)) echo $v_userdir; ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="data-col2">
|
||||
<tr>
|
||||
<td style="padding: 24px 0 0 0;" width="116px">
|
||||
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
|
||||
</td>
|
||||
<td style="padding: 24px 0 0 0;">
|
||||
<input type="button" class="button" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
|
@ -7,7 +7,7 @@
|
|||
<div class="submenu-search-block">
|
||||
<form action="/search/" method="get">
|
||||
<input type="text" name="q" class="submenu-search-field">
|
||||
<input type="submit" value="<?php print __('Search');?>" class="submenu-button" style="width: 96px;">
|
||||
<input type="submit" value="<?php print __('Search');?>" class="submenu-button-search">
|
||||
</form>
|
||||
</div>
|
||||
<div class="submenu-select-block">
|
||||
|
@ -17,7 +17,10 @@
|
|||
<option value=""><?php print __('apply to selected');?></option>
|
||||
<option value="delete"><?php print __('delete');?></option>
|
||||
</select>
|
||||
<input type="submit" name="ok" value="›" class="submenu-button" style="width: 36px;">
|
||||
<input type="submit" name="ok" value="›" class="submenu-button-select">
|
||||
</div>
|
||||
<div class="submenu-select-block">
|
||||
<a class="submenu-select-link" href="/list/backup/exclusions/">[ <?php print __('backup exclusions');?> ]</a>
|
||||
</div>
|
||||
<?php display_error_block(); ?>
|
||||
</td>
|
||||
|
|
93
web/templates/admin/list_backup_exclusions.html
Normal file
93
web/templates/admin/list_backup_exclusions.html
Normal file
|
@ -0,0 +1,93 @@
|
|||
<table class="submenu">
|
||||
<tr>
|
||||
<td style="padding: 14px 10px">
|
||||
<div class="submenu-button-block">
|
||||
<button class="submenu-button-main" onclick="location.href='/edit/backup/exclusions/'"> <?php print __('Configure');?> </button>
|
||||
</div>
|
||||
<div class="submenu-search-block">
|
||||
<form action="/search/" method="get">
|
||||
<input type="text" name="q" class="submenu-search-field">
|
||||
<input type="submit" value="<?php print __('Search');?>" class="submenu-button-search">
|
||||
</form>
|
||||
</div>
|
||||
<div class="submenu-select-block">
|
||||
<form action="/bulk/backup/" method="post" id="objects">
|
||||
<a class="submenu-select-link" href='javascript:checkedAll("objects");'> <?php print __('toggle all');?> </a>
|
||||
<select class="submenu-select-dropdown" name="action">
|
||||
<option value=""><?php print __('apply to selected');?></option>
|
||||
<option value="delete"><?php print __('delete');?></option>
|
||||
</select>
|
||||
<input type="submit" name="ok" value="›" class="submenu-button-select">
|
||||
</div>
|
||||
<?php display_error_block(); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="vstobjects">
|
||||
<table class="data">
|
||||
|
||||
<?php
|
||||
foreach ($data as $key => $value) {
|
||||
?>
|
||||
|
||||
<tr class="data-row">
|
||||
<td class="data-dotted">
|
||||
<table class="data-col1">
|
||||
<tr><td><input type="checkbox" class="ch-toggle" name="exclusion[]" value="<?php echo $key ?>" ></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="data-dotted" width="830px">
|
||||
<a id="delete_link_<?php echo $i ?>" class="data-controls do_delete">
|
||||
<span class="do_delete">
|
||||
<img src="/images/delete.png" width="7px" height="7px">
|
||||
<?php print __('delete');?>
|
||||
<input type="hidden" name="delete_url" value="/delete/backup/exclusion/?excl=<?php echo "$key" ?>" />
|
||||
<div id="delete_dialog_<?php echo $i ?>" class="confirmation-text-delete hidden" title="<?php print __('Confirmation');?>">
|
||||
<p class="counter-value"><?php print __('DELETE_BACKUP_CONFIRMATION',$key);?></p>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<table class="data-col5">
|
||||
<tr>
|
||||
<td class="cron" width="116px" style="vertical-align:top;">
|
||||
<b><?php echo $key ?></b>
|
||||
</td>
|
||||
<td style="vertical-align:top;" class="counter-value">
|
||||
<?php if (empty($value)) print __('no exclusions'); ?>
|
||||
<table>
|
||||
<?php
|
||||
foreach ($value as $ex_key => $ex_value) {
|
||||
?>
|
||||
<tr>
|
||||
<td class="counter-value"><b><?php echo $ex_key ?></b></td>
|
||||
<td class="counter-value" style="padding-left:12px;"><?php echo $ex_value ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<table class="data-count">
|
||||
<tr>
|
||||
<td width="174px"></td>
|
||||
<td>
|
||||
...
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue