mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
Sort_by feature
This commit is contained in:
parent
4ebd88bc16
commit
5b06701fdc
33 changed files with 398 additions and 212 deletions
|
@ -1,7 +1,13 @@
|
|||
<div class="l-center">
|
||||
<div class="l-sort clearfix noselect">
|
||||
<a href="/add/firewall/" class="l-sort__create-btn" title="<?=str_replace(' ', ' ', __('Add Rule'))?>"></a>
|
||||
|
||||
<ul class="context-menu sort-order" style="display:none;">
|
||||
<li entity="sort-action"><span class="name active"><?=__('Action')?></span><span class="up"> </span></li>
|
||||
<li entity="sort-protocol"><span class="name"><?=__('Protocol')?></span><span class="up"> </span></li>
|
||||
<li entity="sort-port"><span class="name"><?=__('Port')?></span><span class="up"> </span></li>
|
||||
<li entity="sort-ip" sort_as_int="1"><span class="name"><?=__('IP address')?></span><span class="up"> </span></li>
|
||||
<li entity="sort-comment"><span class="name"><?=__('Comment')?></span><span class="up"> </span></li>
|
||||
</ul>
|
||||
<div class="l-sort-toolbar clearfix">
|
||||
<table>
|
||||
<tr>
|
||||
|
@ -21,6 +27,9 @@
|
|||
<input id="toggle-all" type="checkbox" name="toggle-all" value="toggle-all" onChange="checkedAll('objects');">
|
||||
<label for="toggle-all" class="check-label toggle-all"><?=__('toggle all')?></label>
|
||||
</td>
|
||||
<td class="sort-by">
|
||||
<?=__('sort by');?>: <span><b><?=__('Action')?></b></span> <i class="l-icon-down-arrow media-top"></i>
|
||||
</td>
|
||||
<td>
|
||||
<form action="/bulk/firewall/" method="post">
|
||||
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
||||
|
@ -47,7 +56,7 @@
|
|||
<!-- /.l-separator -->
|
||||
|
||||
|
||||
<div class="l-center">
|
||||
<div class="l-center units compact">
|
||||
<?php
|
||||
foreach ($data as $key => $value) {
|
||||
++$i;
|
||||
|
@ -62,8 +71,7 @@
|
|||
}
|
||||
?>
|
||||
|
||||
|
||||
<div class="l-unit<? if($status == 'suspended') echo ' l-unit--suspended';?>">
|
||||
<div class="l-unit<? if($status == 'suspended') echo ' l-unit--suspended'; if($_COOKIE['firewall-'.sha1($key)] == 1) echo ' l-unit--starred'; ?>" uniq-id="firewall-<?=sha1($key)?>" sort-action="<?=$data[$key]['ACTION']?>" sort-protocol="<?=$data[$key]['PROTOCOL']?>" sort-port="<?=$data[$key]['PORT']?>" sort-ip="<?=str_replace('.', '', $data[$key]['IP'])?>" sort-comment="<?=$data[$key]['COMMENT']?>">
|
||||
<div class="l-unit-toolbar clearfix">
|
||||
<div class="l-unit-toolbar__col l-unit-toolbar__col--left">
|
||||
<input id="check<?php echo $i ?>" class="ch-toggle" type="checkbox" name="rule[]" value="<?php echo $key ?>">
|
||||
|
@ -101,6 +109,9 @@
|
|||
|
||||
<div class="l-unit__col l-unit__col--left clearfix">
|
||||
<div class="l-unit__suspended""><?=__('suspended')?></div>
|
||||
<div class="text-center">
|
||||
<i class="l-icon-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.l-unit__col -->
|
||||
<div class="l-unit__col l-unit__col--right">
|
||||
|
@ -116,7 +127,7 @@
|
|||
<!-- /.l-unit__col -->
|
||||
</div>
|
||||
<!-- /.l-unit -->
|
||||
<div class="l-separator"></div>
|
||||
<!-- div class="l-separator"></div-->
|
||||
<!-- /.l-separator -->
|
||||
<?}?>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue