added domainname based retention support

This commit is contained in:
SJ
2013-07-31 10:57:45 +02:00
parent d1cae282dc
commit 8b18ce4896
6 changed files with 39 additions and 4 deletions

View File

@ -2,6 +2,16 @@
<h4><?php print $text_add_new_rule; ?></h4>
<form method="post" id="add1" name="add1" action="index.php?route=policy/retention" class="form-horizontal">
<?php if(ENABLE_SAAS == 1) { ?>
<div class="control-group">
<label class="control-label" for="domain"><?php print $text_domain; ?>:</label>
<div class="controls">
<input type="text" class="text" name="domain" />
</div>
</div>
<?php } ?>
<div class="control-group">
<label class="control-label" for="from"><?php print $text_from; ?>:</label>
<div class="controls">
@ -76,6 +86,9 @@
<table id="ss1" class="table table-striped table-condensed">
<tr class="domainrow">
<?php if(ENABLE_SAAS == 1) { ?>
<th><?php print $text_domain; ?></th>
<?php } ?>
<th><?php print $text_from; ?></th>
<th><?php print $text_to; ?></th>
<th><?php print $text_subject; ?></th>
@ -89,6 +102,9 @@
<?php foreach($rules as $rule) { ?>
<tr class="domainrow">
<?php if(ENABLE_SAAS == 1) { ?>
<td><?php print $rule['domain']; ?></td>
<?php } ?>
<td><?php print $rule['from']; ?></td>
<td><?php print $rule['to']; ?></td>
<td><?php print $rule['subject']; ?></td>

View File

@ -5,6 +5,12 @@
<div id="ss1">
<?php if(ENABLE_SAAS == 1) { ?>
<div class="row">
<div class="domaincell"><?php print $text_domain; ?>:</div>
<div class="domaincell"><input type="text" name="domain" class="input-medium span5" /></div>
</div>
<?php } ?>
<div class="row">
<div class="domaincell"><?php print $text_from; ?>:</div>
<div class="domaincell"><input type="text" name="from" class="input-medium span5" /></div>
@ -78,6 +84,9 @@
<div id="ss1">
<div class="domainrow">
<?php if(ENABLE_SAAS == 1) { ?>
<div class="domaincell"><?php print $text_domain; ?></div>
<?php } ?>
<div class="domaincell"><?php print $text_from; ?></div>
<div class="domaincell"><?php print $text_to; ?></div>
<div class="domaincell"><?php print $text_subject; ?></div>
@ -91,6 +100,9 @@
<?php foreach($rules as $rule) { ?>
<div class="domainrow">
<?php if(ENABLE_SAAS == 1) { ?>
<div class="domaincell"><?php print $rule['domain']; ?></div>
<?php } ?>
<div class="domaincell"><?php print $rule['from']; ?></div>
<div class="domaincell"><?php print $rule['to']; ?></div>
<div class="domaincell"><?php print $rule['subject']; ?></div>