mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:47:02 +02:00
fixed apache example config
This commit is contained in:
@ -39,8 +39,9 @@
|
||||
<li><a href="index.php?route=customer/list"><i class="icon-wrench"></i> <?php print $text_customers; ?></a></li>
|
||||
<li><a href="index.php?route=import/list"><i class="icon-lightbulb"></i> <?php print $text_import; ?></a></li>
|
||||
<?php } ?>
|
||||
<li><a href="index.php?route=policy/archiving"><i class="icon-folder-open"></i> <?php print $text_archiving_rules; ?></a></li>
|
||||
<li><a href="index.php?route=policy/archiving"><i class="icon-stop"></i> <?php print $text_archiving_rules; ?></a></li>
|
||||
<li><a href="index.php?route=policy/retention"><i class="icon-time"></i> <?php print $text_retention_rules; ?></a></li>
|
||||
<li><a href="index.php?route=policy/folder"><i class="icon-folder-open"></i> <?php print $text_folder_rules; ?></a></li>
|
||||
<li><a href="index.php?route=policy/legalhold"><i class="icon-legal"></i> <?php print $text_legal_hold; ?></a></li>
|
||||
<li><a href="index.php?route=search/autosearch"><i class="icon-search"></i> <?php print $text_automated_search; ?></a></li>
|
||||
</ul>
|
||||
|
160
webui/view/theme/default/templates/policy/folder.tpl
Normal file
160
webui/view/theme/default/templates/policy/folder.tpl
Normal file
@ -0,0 +1,160 @@
|
||||
<form method="get" name="search1" action="folder.php" class="form-inline pull-right">
|
||||
<div class="input-append">
|
||||
<input type="text" name="search" class="input-medium" value="<?php print $search; ?>" />
|
||||
<input type="submit" class="btn" value="<?php print $text_search; ?>" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<h4><?php print $text_add_new_rule; ?></h4>
|
||||
|
||||
<form method="post" id="add1" name="add1" action="index.php?route=policy/folder" 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">
|
||||
<input type="text" class="text" name="from" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="to"><?php print $text_to; ?>:</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="text" name="to" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="subject"><?php print $text_subject; ?>:</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="text" name="subject" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="body"><?php print $text_body; ?>:</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="text" name="body" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="size"><?php print $text_size; ?>:</label>
|
||||
<div class="controls">
|
||||
<select class="ruleselect" name="_size">
|
||||
<option value=">">></option>
|
||||
<option value="=">=</option>
|
||||
<option value="<"><</option>
|
||||
</select>
|
||||
<input type="text" class="ruletext" name="size" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="attachment_name"><?php print $text_attachment_name; ?>:</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="text" name="attachment_name" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="attachment_type"><?php print $text_attachment_type; ?>:</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="text" name="attachment_type" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="attachment_size"><?php print $text_attachment_size; ?>:</label>
|
||||
<div class="controls">
|
||||
<select class="ruleselect" name="_attachment_size">
|
||||
<option value=">">></option>
|
||||
<option value="=">=</option>
|
||||
<option value="<"><</option>
|
||||
</select>
|
||||
<input type="text" class="ruletext" name="attachment_size" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="spam"><?php print $text_spam; ?>:</label>
|
||||
<div class="controls">
|
||||
<select class="ruleselect" name="spam">
|
||||
<option value="-1">-</option>
|
||||
<option value="0"><?php print $text_not_spam; ?></option>
|
||||
<option value="1"><?php print $text_spam2; ?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="days"><?php print $text_folder; ?>:</label>
|
||||
<div class="controls">
|
||||
<select class="ruleselect" name="folder_id">
|
||||
<option value="0">-</option>
|
||||
<?php while(list($k,$v) = each($folders)) { ?>
|
||||
<option value="<?php print $k; ?>"><?php print $v; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<input type="submit" class="btn btn-primary" value="<?php print $text_add; ?>" /><input type="reset" class="btn" value="<?php print $text_cancel; ?>" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<h4><?php print $text_existing_rules; ?></h4>
|
||||
|
||||
<?php if(isset($rules)){ ?>
|
||||
|
||||
<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>
|
||||
<th><?php print $text_body; ?></th>
|
||||
<th><?php print $text_spam; ?></th>
|
||||
<th><?php print $text_size; ?></th>
|
||||
<th><?php print $text_attachment_name; ?></th>
|
||||
<th><?php print $text_attachment_type; ?></th>
|
||||
<th><?php print $text_attachment_size; ?></th>
|
||||
<th><?php print $text_folder; ?></th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
|
||||
<?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>
|
||||
<td><?php print $rule['body']; ?></td>
|
||||
<td><?php if($rule['spam'] == -1) { print "-"; } else if($rule['spam'] == 0) { print $text_not_spam; } else { print $text_spam; } ?></td>
|
||||
<td><?php if($rule['size'] > 0) { print $rule['_size']; ?> <?php print $rule['size']; } ?></td>
|
||||
<td><?php print $rule['attachment_name']; ?></td>
|
||||
<td><?php print $rule['attachment_type']; ?></td>
|
||||
<td><?php if($rule['attachment_size'] > 0) { print $rule['_attachment_size']; ?> <?php print $rule['attachment_size']; } ?></td>
|
||||
<td><?php print $folders[$rule['folder_id']]; ?></td>
|
||||
<td><a href="index.php?route=policy/removefolder&id=<?php print $rule['id']; ?>"><?php print $text_remove; ?></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
</table>
|
||||
|
||||
<?php } else { ?>
|
||||
<div class="alert alert-error lead">
|
||||
<?php print $text_not_found; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
<input type="button" class="btn btn-danger" onclick="Piler.reload_piler();" value="<?php print $text_apply_changes; ?>" /> <span id="applyChangesOutput"></span>
|
||||
</div>
|
||||
|
31
webui/view/theme/default/templates/policy/removefolder.tpl
Normal file
31
webui/view/theme/default/templates/policy/removefolder.tpl
Normal file
@ -0,0 +1,31 @@
|
||||
|
||||
<div>
|
||||
|
||||
<?php if($confirmed){ ?>
|
||||
|
||||
<p><?php print $x; ?>.</p>
|
||||
<p><a href="index.php?route=policy/folder"><?php print $text_back; ?></a></p>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<p><a href="index.php?route=policy/removefolder&id=<?php print $id; ?>&confirmed=1"><?php print $text_remove_rule; ?></a>:</p>
|
||||
<p>
|
||||
<?php
|
||||
if($rule['domain']) { print $text_domain . ': ' . $rule['domain'] . ', '; }
|
||||
if($rule['from']) { print $text_from . ': ' . $rule['from'] . ', '; }
|
||||
if($rule['to']) { print $text_to . ': ' . $rule['to'] . ', '; }
|
||||
if($rule['subject']) { print $text_subject . ': ' . $rule['subject'] . ', '; }
|
||||
if($rule['body']) { print $text_body . ': ' . $rule['body'] . ', '; }
|
||||
if($rule['size'] > 0) { print $text_size . ': ' . $rule['_size'] . ' ' . $rule['size'] . ', '; }
|
||||
if($rule['attachment_name']) { print $text_attachment_name . ': ' . $rule['attachment_name'] . ', '; }
|
||||
if($rule['attachment_type']) { print $text_attachment_type . ': ' . $rule['attachment_type'] . ', '; }
|
||||
if($rule['attachment_size'] > 0) { print $text_attachment_size . ': ' . $rule['_attachment_size'] . ' ' . $rule['attachment_size'] . ' '; }
|
||||
?>
|
||||
</p>
|
||||
|
||||
<p><a href="index.php?route=policy/folder"><?php print $text_back; ?></a></p>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user