|
|
@@ -10,33 +10,43 @@
|
|
|
</div>
|
|
|
<div class="toolbar-right">
|
|
|
<div class="toolbar-sorting">
|
|
|
- <button class="toolbar-sorting-toggle" type="button" title="<?= _("Sort items") ?>">
|
|
|
- <?= _("sort by") ?>:
|
|
|
+ <button class="toolbar-sorting-toggle js-toggle-sorting-menu" type="button" title="<?= _("Sort items") ?>">
|
|
|
+ <?= _("Sort by") ?>:
|
|
|
<b>
|
|
|
<?php if ($_SESSION['userSortOrder'] === 'name') { $label = ('Name'); } else { $label = _('Date'); } ?>
|
|
|
<?=$label?> <i class="fas fa-arrow-down-a-z"></i>
|
|
|
</b>
|
|
|
</button>
|
|
|
- <ul class="toolbar-sorting-menu animate__animated animate__fadeIn u-hidden">
|
|
|
- <li entity="sort-bandwidth" sort_as_int="1"><span class="name"><?= _("Bandwidth") ?> <i class="fas fa-arrow-down-a-z"></i></span><span class="up"><i class="fas fa-arrow-up-a-z"></i></span></li>
|
|
|
- <li entity="sort-date" sort_as_int="1"><span class="name <?php if ($_SESSION['userSortOrder'] === 'date') { echo 'active'; } ?>"><?= _("Date") ?> <i class="fas fa-arrow-down-a-z"></i></span><span class="up"><i class="fas fa-arrow-up-a-z"></i></span></li>
|
|
|
- <li entity="sort-disk" sort_as_int="1"><span class="name"><?= _("Disk") ?> <i class="fas fa-arrow-down-a-z"></i></span><span class="up"><i class="fas fa-arrow-up-a-z"></i></span></li>
|
|
|
- <li entity="sort-name"><span class="name <?php if ($_SESSION['userSortOrder'] === 'name') { echo 'active'; } ?>"><?= _("Name") ?> <i class="fas fa-arrow-down-a-z"></i></span><span class="up"><i class="fas fa-arrow-up-a-z"></i></span></li>
|
|
|
- <li entity="sort-ip" sort_as_int="1"><span class="name"><?= _("IP address") ?> <i class="fas fa-arrow-down-a-z"></i></span><span class="up"><i class="fas fa-arrow-up-a-z"></i></span></li>
|
|
|
+ <ul class="toolbar-sorting-menu animate__animated animate__fadeIn js-sorting-menu u-hidden">
|
|
|
+ <li data-entity="sort-bandwidth" data-sort-as-int="1">
|
|
|
+ <span class="name"><?= _("Bandwidth") ?> <i class="fas fa-arrow-down-a-z"></i></span><span class="up"><i class="fas fa-arrow-up-a-z"></i></span>
|
|
|
+ </li>
|
|
|
+ <li data-entity="sort-date" data-sort-as-int="1">
|
|
|
+ <span class="name <?php if ($_SESSION['userSortOrder'] === 'date') { echo 'active'; } ?>"><?= _("Date") ?> <i class="fas fa-arrow-down-a-z"></i></span><span class="up"><i class="fas fa-arrow-up-a-z"></i></span>
|
|
|
+ </li>
|
|
|
+ <li data-entity="sort-disk" data-sort-as-int="1">
|
|
|
+ <span class="name"><?= _("Disk") ?> <i class="fas fa-arrow-down-a-z"></i></span><span class="up"><i class="fas fa-arrow-up-a-z"></i></span>
|
|
|
+ </li>
|
|
|
+ <li data-entity="sort-name">
|
|
|
+ <span class="name <?php if ($_SESSION['userSortOrder'] === 'name') { echo 'active'; } ?>"><?= _("Name") ?> <i class="fas fa-arrow-down-a-z"></i></span><span class="up"><i class="fas fa-arrow-up-a-z"></i></span>
|
|
|
+ </li>
|
|
|
+ <li data-entity="sort-ip" data-sort-as-int="1">
|
|
|
+ <span class="name"><?= _("IP Address") ?> <i class="fas fa-arrow-down-a-z"></i></span><span class="up"><i class="fas fa-arrow-up-a-z"></i></span>
|
|
|
+ </li>
|
|
|
</ul>
|
|
|
<?php if ($read_only !== "true") { ?>
|
|
|
<form x-data x-bind="BulkEdit" action="/bulk/web/" method="post">
|
|
|
<input type="hidden" name="token" value="<?= $_SESSION["token"] ?>">
|
|
|
<select class="form-select" name="action">
|
|
|
- <option value=""><?= _("apply to selected") ?></option>
|
|
|
+ <option value=""><?= _("Apply to selected") ?></option>
|
|
|
<?php if ($_SESSION["userContext"] === "admin") { ?>
|
|
|
- <option value="rebuild"><?= _("rebuild") ?></option>
|
|
|
+ <option value="rebuild"><?= _("Rebuild") ?></option>
|
|
|
<?php } ?>
|
|
|
- <option value="suspend"><?= _("suspend") ?></option>
|
|
|
- <option value="unsuspend"><?= _("unsuspend") ?></option>
|
|
|
- <option value="delete"><?= _("delete") ?></option>
|
|
|
+ <option value="suspend"><?= _("Suspend") ?></option>
|
|
|
+ <option value="unsuspend"><?= _("Unsuspend") ?></option>
|
|
|
+ <option value="delete"><?= _("Delete") ?></option>
|
|
|
</select>
|
|
|
- <button type="submit" class="toolbar-input-submit" title="<?= _("apply to selected") ?>">
|
|
|
+ <button type="submit" class="toolbar-input-submit" title="<?= _("Apply to selected") ?>">
|
|
|
<i class="fas fa-arrow-right"></i>
|
|
|
</button>
|
|
|
</form>
|
|
|
@@ -59,15 +69,14 @@
|
|
|
<div class="container units">
|
|
|
|
|
|
<!-- Table header -->
|
|
|
- <div class="header table-header">
|
|
|
+ <div class="header units-header">
|
|
|
<div class="l-unit__col l-unit__col--right">
|
|
|
<div class="clearfix l-unit__stat-col--left super-compact">
|
|
|
- <input type="checkbox" class="js-toggle-all" title="<?= _("Select all") ?>" <?= $display_mode ?>>
|
|
|
+ <input type="checkbox" class="js-toggle-all-checkbox" title="<?= _("Select all") ?>" <?= $display_mode ?>>
|
|
|
</div>
|
|
|
- <div class="clearfix l-unit__stat-col--left wide-3"><b><?= _("Name") ?></b></div>
|
|
|
+ <div class="clearfix l-unit__stat-col--left wide-4"><b><?= _("Name") ?></b></div>
|
|
|
<div class="clearfix l-unit__stat-col--left compact-4 u-text-right"><b> </b></div>
|
|
|
- <div class="clearfix l-unit__stat-col--left u-text-center"><b><?= _("IPV4 address") ?></b></div>
|
|
|
- <div class="clearfix l-unit__stat-col--left u-text-center"><b><?= _("IPV6 address") ?></b></div>
|
|
|
+ <div class="clearfix l-unit__stat-col--left u-text-center"><b><?= _("IP Address") ?></b></div>
|
|
|
<div class="clearfix l-unit__stat-col--left u-text-center"><b><?= _("Disk") ?></b></div>
|
|
|
<div class="clearfix l-unit__stat-col--left u-text-center compact"><b><?= _("Bandwidth") ?></b></div>
|
|
|
<div class="clearfix l-unit__stat-col--left u-text-center"><b><?= _("SSL") ?></b></div>
|
|
|
@@ -82,13 +91,15 @@
|
|
|
if ($data[$key]['SUSPENDED'] == 'yes') {
|
|
|
$status = 'suspended';
|
|
|
$spnd_action = 'unsuspend';
|
|
|
+ $spnd_action_title = _('Unsuspend');
|
|
|
$spnd_icon = 'fa-play';
|
|
|
- $spnd_confirmation = _('UNSUSPEND_DOMAIN_CONFIRMATION');
|
|
|
+ $spnd_confirmation = _('Are you sure you want to unsuspend domain %s?');
|
|
|
} else {
|
|
|
$status = 'active';
|
|
|
$spnd_action = 'suspend';
|
|
|
+ $spnd_action_title = _('Suspend');
|
|
|
$spnd_icon = 'fa-pause';
|
|
|
- $spnd_confirmation = _('SUSPEND_DOMAIN_CONFIRMATION');
|
|
|
+ $spnd_confirmation = _('Are you sure you want to suspend domain %s?');
|
|
|
}
|
|
|
if (!empty($data[$key]['SSL_HOME'])) {
|
|
|
if ($data[$key]['SSL_HOME'] == 'same') {
|
|
|
@@ -163,15 +174,17 @@
|
|
|
}
|
|
|
}
|
|
|
?>
|
|
|
- <div class="l-unit <?php if ($data[$key]['SUSPENDED'] == 'yes') echo 'l-unit--suspended';?> animate__animated animate__fadeIn" v_section="web" v_unit_id="<?=$key?>"
|
|
|
- id="web-unit-<?=$i?>" sort-ip="<?=str_replace('.', '', $data[$key]['IP'])?>"
|
|
|
- sort-date="<?=strtotime($data[$key]['DATE'].' '.$data[$key]['TIME'])?>"
|
|
|
- sort-name="<?=$key?>" sort-bandwidth="<?=$data[$key]['U_BANDWIDTH']?>" sort-disk="<?=$data[$key]['U_DISK']?>">
|
|
|
+ <div class="l-unit <?php if ($data[$key]['SUSPENDED'] == 'yes') echo 'l-unit--suspended'; ?> animate__animated animate__fadeIn js-unit"
|
|
|
+ data-sort-ip="<?=str_replace('.', '', $data[$key]['IP'])?>"
|
|
|
+ data-sort-date="<?=strtotime($data[$key]['DATE'].' '.$data[$key]['TIME'])?>"
|
|
|
+ data-sort-name="<?=$key?>"
|
|
|
+ data-sort-bandwidth="<?=$data[$key]['U_BANDWIDTH']?>"
|
|
|
+ data-sort-disk="<?=$data[$key]['U_DISK']?>">
|
|
|
<div class="l-unit__col l-unit__col--right">
|
|
|
<div class="clearfix l-unit__stat-col--left super-compact">
|
|
|
- <input id="check<?=$i?>" class="ch-toggle" type="checkbox" title="<?= _("Select") ?>" name="domain[]" value="<?=$key?>" <?=$display_mode;?>>
|
|
|
+ <input id="check<?=$i?>" class="js-unit-checkbox" type="checkbox" title="<?= _("Select") ?>" name="domain[]" value="<?=$key?>" <?=$display_mode;?>>
|
|
|
</div>
|
|
|
- <div class="clearfix l-unit__stat-col--left wide-3 truncate">
|
|
|
+ <div class="clearfix l-unit__stat-col--left wide-4 truncate">
|
|
|
<b>
|
|
|
<?php if ($read_only === 'true') {?>
|
|
|
<?=$key?>
|
|
|
@@ -184,7 +197,7 @@
|
|
|
}
|
|
|
}
|
|
|
?>
|
|
|
- <a href="/edit/web/?domain=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?= _("Editing Domain") ?>: <?=$key?>"><?=$key?><?php if( !empty($alias_new) && !empty($data[$key]['ALIAS']) ){ echo " <span class=\"hint\">(".implode(',',$alias_new).")"; } ?></a>
|
|
|
+ <a href="/edit/web/?domain=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?= _("Edit Domain") ?>: <?=$key?>"><?=$key?><?php if( !empty($alias_new) && !empty($data[$key]['ALIAS']) ){ echo " <span class=\"hint\">(".implode(',',$alias_new).")"; } ?></a>
|
|
|
<?php } ?>
|
|
|
</b>
|
|
|
</div>
|
|
|
@@ -201,14 +214,14 @@
|
|
|
|
|
|
<?php } else { ?>
|
|
|
<?php if ($data[$key]['SUSPENDED'] == 'no') {?>
|
|
|
- <div class="actions-panel__col actions-panel__edit shortcut-enter" data-key-action="href"><a href="/edit/web/?domain=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?= _("Editing Domain") ?>"><i class="fas fa-pencil icon-orange icon-dim"></i></a></div>
|
|
|
+ <div class="actions-panel__col actions-panel__edit shortcut-enter" data-key-action="href"><a href="/edit/web/?domain=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?= _("Edit Domain") ?>"><i class="fas fa-pencil icon-orange icon-dim"></i></a></div>
|
|
|
<?php } ?>
|
|
|
- <div class="actions-panel__col actions-panel__logs shortcut-l" data-key-action="href"><a href="/list/web-log/?domain=<?=$key?>&type=access#" title="<?= _("AccessLog") ?>"><i class="fas fa-binoculars icon-purple icon-dim"></i></a></div>
|
|
|
+ <div class="actions-panel__col actions-panel__logs shortcut-l" data-key-action="href"><a href="/list/web-log/?domain=<?=$key?>&type=access#" title="<?= _("Access Log") ?>"><i class="fas fa-binoculars icon-purple icon-dim"></i></a></div>
|
|
|
<div class="actions-panel__col actions-panel__suspend shortcut-s" data-key-action="js">
|
|
|
<a
|
|
|
class="data-controls js-confirm-action"
|
|
|
href="/<?=$spnd_action?>/web/?domain=<?=$key?>&token=<?=$_SESSION['token']?>"
|
|
|
- data-confirm-title="<?= _($spnd_action) ?>"
|
|
|
+ data-confirm-title="<?= $spnd_action_title ?>"
|
|
|
data-confirm-message="<?= sprintf($spnd_confirmation, $key) ?>"
|
|
|
>
|
|
|
<i class="fas <?= $spnd_icon ?> icon-highlight icon-dim"></i>
|
|
|
@@ -219,7 +232,7 @@
|
|
|
class="data-controls js-confirm-action"
|
|
|
href="/delete/web/?domain=<?=$key?>&token=<?=$_SESSION['token']?>"
|
|
|
data-confirm-title="<?= _("Delete") ?>"
|
|
|
- data-confirm-message="<?= sprintf(_('DELETE_DOMAIN_CONFIRMATION'), $key) ?>"
|
|
|
+ data-confirm-message="<?= sprintf(_('Are you sure you want to delete domain %s?'), $key) ?>"
|
|
|
>
|
|
|
<i class="fas fa-trash icon-red icon-dim"></i>
|
|
|
</a>
|
|
|
@@ -229,8 +242,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- END QUICK ACTION TOOLBAR AREA -->
|
|
|
- <div class="clearfix l-unit__stat-col--left u-text-center"><?=empty($ips[$data[$key]['IP']]['NAT']) ? (empty($data[$key]['IP']) ? " " : $data[$key]['IP']) : "{$ips[$data[$key]['IP']]['NAT']}"; ?></div>
|
|
|
- <div class="clearfix l-unit__stat-col--left u-text-center"><?=empty($ips[$data[$key]['IP6']]) ? " " : $data[$key]['IP6']; ?></div>
|
|
|
+ <div class="clearfix l-unit__stat-col--left u-text-center"><?=empty($ips[$data[$key]['IP']]['NAT']) ? $data[$key]['IP'] : "{$ips[$data[$key]['IP']]['NAT']}"; ?></div>
|
|
|
<div class="clearfix l-unit__stat-col--left u-text-center"><b><?=humanize_usage_size($data[$key]['U_DISK'])?></b> <span class="u-text-small"><?=humanize_usage_measure($data[$key]['U_DISK'])?></span></div>
|
|
|
<div class="clearfix l-unit__stat-col--left u-text-center compact"><b><?=humanize_usage_size($data[$key]['U_BANDWIDTH'])?></b> <span class="u-text-small"><?=humanize_usage_measure($data[$key]['U_BANDWIDTH'])?></span></div>
|
|
|
<div class="clearfix l-unit__stat-col--left u-text-center">
|