added an option to change the stored retention values

This commit is contained in:
SJ
2013-08-02 12:30:09 +02:00
parent a10040ea1c
commit 16e54ffbfd
16 changed files with 117 additions and 5 deletions

View File

@ -72,7 +72,7 @@
<div class="row">
<div class="cellhealthleft"><?php print $text_disk_usage; ?></div>
<div class="cellhealthright"><?php foreach($shortdiskinfo as $partition) { ?><span class="bold <?php if($partition['utilization'] < HEALTH_RATIO) { ?>text-success<?php } else { ?>text-error<?php } ?>"><?php print $partition['partition']; ?> =&gt; <?php print nice_size(1000*$partition['used']); ?> / <?php print nice_size($partition['total']); ?> (<?php print $partition['utilization']; ?>%)</span><br /><?php } ?></div>
<div class="cellhealthright"><?php foreach($shortdiskinfo as $partition) { ?><span class="bold <?php if($partition['utilization'] < HEALTH_RATIO) { ?>text-success<?php } else { ?>text-error<?php } ?>"><?php print $partition['partition']; ?> =&gt; <?php print nice_size(1000*$partition['used']); ?> / <?php print nice_size(1000*$partition['total']); ?> (<?php print $partition['utilization']; ?>%)</span><br /><?php } ?></div>
</div>
<div class="row">

View File

@ -96,6 +96,9 @@
<div class="domaincell"><?php print $text_attachment_size; ?></div>
<div class="domaincell"><?php print $text_days; ?></div>
<div class="domaincell">&nbsp;</div>
<?php if(ENABLE_SAAS == 1) { ?>
<div class="domaincell">&nbsp;</div>
<?php } ?>
</div>
<?php foreach($rules as $rule) { ?>
@ -112,6 +115,9 @@
<div class="domaincell"><?php if($rule['attachment_size'] > 0) { print $rule['_attachment_size']; ?> <?php print $rule['attachment_size']; } ?></div>
<div class="domaincell"><?php print $rule['days']; ?></div>
<div class="domaincell"><a href="index.php?route=policy/removeretention&amp;confirmed=1&amp;id=<?php print $rule['id']; ?>" onclick="if(confirm('<?php print $text_remove_rule; ?>: ' + '#<?php print $rule['id']; ?>')) return true; return false;"><?php print $text_remove; ?></a></div>
<?php if(ENABLE_SAAS == 1) { ?>
<div class="domaincell"><?php if($rule['domain']) { ?><a href="index.php?route=policy/updateretention&domain=<?php print $rule['domain']; ?>&days=<?php print $rule['days']; ?>"><?php print $text_update_retention_within_this_domain; ?></a><?php } else { ?>&nbsp;<?php } ?></div>
<?php } ?>
</div>
<?php } ?>

View File

@ -0,0 +1,9 @@
<div class="alert alert-<?php if($n > 0) { ?>success<?php } else { ?>error<?php } ?>">
<?php print $text_domain; ?>: <?php print $domain; ?><br />
<?php print $text_retention_days; ?>: <?php print $days; ?><br />
<?php print $text_updated_records; ?>: <?php print $n; ?>
</div>