| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <!-- Begin toolbar -->
- <div class="toolbar">
- <div class="toolbar-inner">
- <div class="toolbar-buttons">
- <a class="button button-secondary button-back js-button-back" href="/list/firewall/">
- <i class="fas fa-arrow-left icon-blue"></i><?= tohtml( _("Back")) ?>
- </a>
- <a href="/add/firewall/ipset/" class="button button-secondary js-button-create">
- <i class="fas fa-circle-plus icon-green"></i><?= tohtml( _("Add IP list")) ?>
- </a>
- </div>
- <div class="toolbar-right">
- <form x-data x-bind="BulkEdit" action="/bulk/firewall/ipset/" method="post">
- <input type="hidden" name="token" value="<?= tohtml($_SESSION["token"]) ?>">
- <select class="form-select" name="action">
- <option value=""><?= tohtml( _("Apply to selected")) ?></option>
- <option value="delete"><?= tohtml( _("Delete")) ?></option>
- </select>
- <button type="submit" class="toolbar-input-submit" title="<?= tohtml( _("Apply to selected")) ?>">
- <i class="fas fa-arrow-right"></i>
- </button>
- </form>
- </div>
- </div>
- </div>
- <!-- End toolbar -->
- <div class="container">
- <h1 class="u-text-center u-hide-desktop u-mt20 u-pr30 u-mb20 u-pl30"><?= tohtml( _("IPset IP Lists")) ?></h1>
- <div class="units-table js-units-container">
- <div class="units-table-header">
- <div class="units-table-cell">
- <input type="checkbox" class="js-toggle-all-checkbox" title="<?= tohtml( _("Select all")) ?>">
- </div>
- <div class="units-table-cell"><?= tohtml( _("IP List Name")) ?></div>
- <div class="units-table-cell"></div>
- <div class="units-table-cell u-text-center"><?= tohtml( _("Auto Update")) ?></div>
- <div class="units-table-cell u-text-center"><?= tohtml( _("IP Version")) ?></div>
- <div class="units-table-cell u-text-center"><?= tohtml( _("Date")) ?></div>
- <div class="units-table-cell u-text-center"><?= tohtml( _("Time")) ?></div>
- </div>
- <!-- Begin firewall IP address list item loop -->
- <?php
- foreach ($data as $key => $value) {
- ++$i;
- $listname = $key;
- ?>
- <div class="units-table-row js-unit">
- <div class="units-table-cell">
- <div>
- <input id="check<?= tohtml($i) ?>" class="js-unit-checkbox" type="checkbox" title="<?= tohtml( _("Select")) ?>" name="setname[]" value="<?= tohtml($listname) ?>">
- <label for="check<?= tohtml($i) ?>" class="u-hide-desktop"><?= tohtml( _("Select")) ?></label>
- </div>
- </div>
- <div class="units-table-cell units-table-heading-cell u-text-bold">
- <span class="u-hide-desktop"><?= tohtml( _("IP List Name")) ?>:</span>
- <?= tohtml($listname) ?>
- </div>
- <div class="units-table-cell">
- <ul class="units-table-row-actions">
- <li class="units-table-row-action shortcut-delete" data-key-action="js">
- <a
- class="units-table-row-action-link data-controls js-confirm-action"
- href="/delete/firewall/ipset/?<?= tohtml(http_build_query(["listname" => $listname, "token" => $_SESSION["token"]])) ?>"
- title="<?= tohtml( _("Delete")) ?>"
- data-confirm-title="<?= tohtml( _("Delete")) ?>"
- data-confirm-message="<?= tohtml(sprintf(_("Are you sure you want to delete IP list %s?"), $key)) ?>"
- >
- <i class="fas fa-trash icon-red"></i>
- <span class="u-hide-desktop"><?= tohtml( _("Delete")) ?></span>
- </a>
- </li>
- </ul>
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("Auto Update")) ?>:</span>
- <?php if ($data[$key]["AUTOUPDATE"] == "no") { ?>
- <i class="fas fa-circle-xmark icon-red" title="<?= tohtml( _("Disabled")) ?>"></i>
- <?php } else { ?>
- <i class="fas fa-circle-check icon-green" title="<?= tohtml( _("Enabled")) ?>"></i>
- <?php } ?>
- </div>
- <div class="units-table-cell u-text-center-desktop">
- <span class="u-hide-desktop u-text-bold"><?= tohtml( _("IP Version")) ?>:</span>
- <?= tohtml( _($data[$key]["IP_VERSION"])) ?>
- </div>
- <div class="units-table-cell u-text-center-desktop">
- <span class="u-hide-desktop u-text-bold"><?= tohtml( _("Date")) ?>:</span>
- <time datetime="<?= tohtml( _($data[$key]["DATE"])) ?>"><?= tohtml( _($data[$key]["DATE"])) ?></time>
- </div>
- <div class="units-table-cell u-text-center-desktop">
- <span class="u-hide-desktop u-text-bold"><?= tohtml( _("Time")) ?>:</span>
- <?= tohtml($data[$key]["TIME"]) ?>
- </div>
- </div>
- <?php } ?>
- </div>
- <div class="units-table-footer">
- <p>
- <?php
- if ( $i == 0) {
- echo _('There are currently no IP lists defined.');
- } else {
- printf(ngettext('%d IP list', '%d IP lists', $i),$i);
- }
- ?>
- </p>
- </div>
- </div>
|