mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 17:47:01 +02:00
fixed apache example config
This commit is contained in:
@ -37,6 +37,7 @@
|
||||
<?php } ?>
|
||||
<li><a href="index.php?route=policy/archiving"><?php print $text_archiving_rules; ?></a></li>
|
||||
<li><a href="index.php?route=policy/retention"><?php print $text_retention_rules; ?></a></li>
|
||||
<li><a href="index.php?route=policy/folder"><?php print $text_folder_rules; ?></a></li>
|
||||
<li><a href="index.php?route=policy/legalhold"><?php print $text_legal_hold; ?></a></li>
|
||||
<li><a href="index.php?route=search/autosearch"><?php print $text_automated_search; ?></a></li>
|
||||
</ul>
|
||||
|
141
webui/view/theme/mobile/templates/policy/folder.tpl
Normal file
141
webui/view/theme/mobile/templates/policy/folder.tpl
Normal file
@ -0,0 +1,141 @@
|
||||
<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" name="add1" action="index.php?route=policy/folder" class="formbottom form-search">
|
||||
|
||||
<div id="ss1">
|
||||
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_from; ?>:</div>
|
||||
<div class="domaincell"><input type="text" name="from" class="input-medium span5" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_to; ?>:</div>
|
||||
<div class="domaincell"><input type="text" name="to" class="input-medium span5" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_subject; ?>:</div>
|
||||
<div class="domaincell"><input type="text" name="subject" class="input-medium span5" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_body; ?>:</div>
|
||||
<div class="domaincell"><input type="text" name="body" class="input-medium span5" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_size; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<select name="_size" class="span1">
|
||||
<option value=">">></option>
|
||||
<option value="=">=</option>
|
||||
<option value="<"><</option>
|
||||
</select>
|
||||
<input type="text" name="size" class="input-medium span4" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_attachment_name; ?>:</div>
|
||||
<div class="domaincell"><input type="text" name="attachment_name" class="input-medium span5" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_attachment_type; ?>:</div>
|
||||
<div class="domaincell"><input type="text" name="attachment_type" class="input-medium span5" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_attachment_size; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<select name="_attachment_size" class="span1">
|
||||
<option value=">">></option>
|
||||
<option value="=">=</option>
|
||||
<option value="<"><</option>
|
||||
</select>
|
||||
<input type="text" name="attachment_size" class="input-medium span4" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_spam; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<select name="spam" class="span1">
|
||||
<option value="-1">-</option>
|
||||
<option value="0"><?php print $text_not_spam; ?></option>
|
||||
<option value="1"><?php print $text_spam2; ?></option>
|
||||
</select>
|
||||
<input type="text" name="attachment_size" class="input-medium span4" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_folder; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<select name="folder_id" class="span1">
|
||||
<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="row">
|
||||
<div class="domaincell"> </div>
|
||||
<div class="domaincell"><input type="submit" class="btn btn-primary" value="<?php print $text_add; ?>" /> <input type="reset" class="btn" value="<?php print $text_cancel; ?>" /></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<?php if($error) { ?><p class="text-error bold"><?php print $text_error; ?>: <?php print $error; ?></p><?php } ?>
|
||||
|
||||
|
||||
<h4><?php print $text_existing_rules; ?></h4>
|
||||
|
||||
<?php if(isset($rules)){ ?>
|
||||
|
||||
<div id="ss1">
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_from; ?></div>
|
||||
<div class="domaincell"><?php print $text_to; ?></div>
|
||||
<div class="domaincell"><?php print $text_subject; ?></div>
|
||||
<div class="domaincell"><?php print $text_body; ?></div>
|
||||
<div class="domaincell"><?php print $text_spam; ?></div>
|
||||
<div class="domaincell"><?php print $text_size; ?></div>
|
||||
<div class="domaincell"><?php print $text_attachment_name; ?></div>
|
||||
<div class="domaincell"><?php print $text_attachment_type; ?></div>
|
||||
<div class="domaincell"><?php print $text_attachment_size; ?></div>
|
||||
<div class="domaincell"><?php print $text_folder; ?></div>
|
||||
<div class="domaincell"> </div>
|
||||
</div>
|
||||
|
||||
<?php foreach($rules as $rule) { ?>
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $rule['from']; ?></div>
|
||||
<div class="domaincell"><?php print $rule['to']; ?></div>
|
||||
<div class="domaincell"><?php print $rule['subject']; ?></div>
|
||||
<div class="domaincell"><?php print $rule['body']; ?></div>
|
||||
<div class="domaincell"><?php if($rule['spam'] == -1) { print "-"; } else if($rule['spam'] == 0) { print $text_not_spam; } else { print $text_spam; } ?></div>
|
||||
<div class="domaincell"><?php if($rule['size'] > 0) { print $rule['_size']; ?> <?php print $rule['size']; } ?></div>
|
||||
<div class="domaincell"><?php print $rule['attachment_name']; ?></div>
|
||||
<div class="domaincell"><?php print $rule['attachment_type']; ?></div>
|
||||
<div class="domaincell"><?php if($rule['attachment_size'] > 0) { print $rule['_attachment_size']; ?> <?php print $rule['attachment_size']; } ?></div>
|
||||
<div class="domaincell"><?php print $folders[$rule['folder_id']]; ?></div>
|
||||
<div class="domaincell"><a href="index.php?route=policy/removefolder&confirmed=1&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>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
<?php print $text_not_found; ?>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<div class="top20px">
|
||||
<input type="button" class="btn btn-danger" onclick="Piler.reload_piler();" value="<?php print $text_apply_changes; ?>" /> <span id="applyChangesOutput"></span>
|
||||
</div>
|
||||
|
25
webui/view/theme/mobile/templates/policy/removefolder.tpl
Normal file
25
webui/view/theme/mobile/templates/policy/removefolder.tpl
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
<p>
|
||||
|
||||
<?php if($confirmed){ ?>
|
||||
|
||||
<?php print $x; ?>. <a href="index.php?route=policy/folder"><?php print $text_back; ?></a>
|
||||
|
||||
<?php } else { ?>
|
||||
<a href="index.php?route=policy/removefolder&id=<?php print $id; ?>&confirmed=1"><?php print $text_remove_rule; ?></a>: <?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'] . ' '; }
|
||||
?> <a href="index.php?route=policy/folder"><?php print $text_back; ?></a>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</p>
|
||||
|
Reference in New Issue
Block a user