2017-12-09 20:17:15 +08:00
|
|
|
<?php
|
|
|
|
require_once "inc/prerequisites.inc.php";
|
|
|
|
|
|
|
|
if (isset($_SESSION['mailcow_cc_role'])) {
|
|
|
|
require_once "inc/header.inc.php";
|
|
|
|
$_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
|
|
|
|
|
|
|
|
?>
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2018-02-09 03:13:36 +08:00
|
|
|
<h3 class="panel-title"><?=$lang['quarantine']['quarantine'];?></h3>
|
2017-12-09 20:17:15 +08:00
|
|
|
</div>
|
2018-02-09 03:13:36 +08:00
|
|
|
<p style="margin:10px" class="help-block"><?=$lang['quarantine']['qinfo'];?></p>
|
2017-12-09 20:17:15 +08:00
|
|
|
<div class="table-responsive">
|
2018-02-09 03:13:36 +08:00
|
|
|
<table id="quarantinetable" class="table table-striped"></table>
|
2017-12-09 20:17:15 +08:00
|
|
|
</div>
|
2018-02-09 03:13:36 +08:00
|
|
|
<div class="mass-actions-quarantine">
|
2017-12-09 20:17:15 +08:00
|
|
|
<div class="btn-group">
|
2018-02-09 03:13:36 +08:00
|
|
|
<a class="btn btn-sm btn-default" id="toggle_multi_select_all" data-id="qitems" href="#"><span class="glyphicon glyphicon-check" aria-hidden="true"></span> <?=$lang['quarantine']['toggle_all'];?></a>
|
|
|
|
<a class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" href="#"><?=$lang['quarantine']['quick_actions'];?> <span class="caret"></span></a>
|
2017-12-09 20:17:15 +08:00
|
|
|
<ul class="dropdown-menu">
|
2018-02-09 03:13:36 +08:00
|
|
|
<li><a id="edit_selected" data-id="qitems" data-api-url='edit/qitem' data-api-attr='{"action":"release"}' href="#"><?=$lang['quarantine']['release'];?></a></li>
|
2017-12-09 20:17:15 +08:00
|
|
|
<li role="separator" class="divider"></li>
|
2018-02-09 03:13:36 +08:00
|
|
|
<li><a id="delete_selected" data-id="qitems" data-api-url='delete/qitem' href="#"><?=$lang['quarantine']['remove'];?></a></li>
|
2017-12-09 20:17:15 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div> <!-- /col-md-12 -->
|
|
|
|
</div> <!-- /row -->
|
|
|
|
</div> <!-- /container -->
|
|
|
|
<?php
|
2018-02-09 03:13:36 +08:00
|
|
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/modals/quarantine.php';
|
2017-12-09 20:17:15 +08:00
|
|
|
?>
|
|
|
|
<script type='text/javascript'>
|
|
|
|
<?php
|
2018-02-09 03:13:36 +08:00
|
|
|
$lang_mailbox = json_encode($lang['quarantine']);
|
2017-12-09 20:17:15 +08:00
|
|
|
echo "var lang = ". $lang_mailbox . ";\n";
|
|
|
|
echo "var csrf_token = '". $_SESSION['CSRF']['TOKEN'] . "';\n";
|
|
|
|
$role = ($_SESSION['mailcow_cc_role'] == "admin") ? 'admin' : 'domainadmin';
|
|
|
|
echo "var role = '". $role . "';\n";
|
|
|
|
echo "var pagination_size = '". $PAGINATION_SIZE . "';\n";
|
|
|
|
?>
|
|
|
|
</script>
|
|
|
|
<script src="js/footable.min.js"></script>
|
2018-02-09 03:13:36 +08:00
|
|
|
<script src="js/quarantine.js"></script>
|
2017-12-09 20:17:15 +08:00
|
|
|
<?php
|
|
|
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php';
|
|
|
|
} else {
|
|
|
|
header('Location: /');
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
?>
|