backup exclusions

This commit is contained in:
Serghey Rodin 2014-04-07 23:51:21 +03:00
commit 98dd6b9d5d
6 changed files with 346 additions and 2 deletions

View 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>