mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-22 06:14:19 -07:00
Sort_by feature
This commit is contained in:
parent
4ebd88bc16
commit
5b06701fdc
33 changed files with 398 additions and 212 deletions
|
@ -1,6 +1,10 @@
|
|||
<div class="l-center">
|
||||
<div class="l-sort clearfix noselect">
|
||||
<a href="/add/cron/" class="l-sort__create-btn" title="<?=str_replace(' ', ' ', __('Add Cron Job'))?>"></a>
|
||||
<ul class="context-menu sort-order" style="display:none;">
|
||||
<li entity="sort-date" sort_as_int="1"><span class="name active"><?=__('Date')?></span><span class="up"> </span></li>
|
||||
<li entity="sort-name"><span class="name"><?=__('Command')?></span><span class="up"> </span></li>
|
||||
</ul>
|
||||
<div class="l-sort-toolbar clearfix">
|
||||
<table>
|
||||
<tr>
|
||||
|
@ -26,7 +30,7 @@
|
|||
<label for="toggle-all" class="check-label toggle-all"><?=__('toggle all')?></label>
|
||||
</td>
|
||||
<td class="sort-by">
|
||||
<?=__('sort by');?>: <span><b><?=__('DATE')?></b></span> <i class="l-icon-down-arrow media-top"></i>
|
||||
<?=__('sort by');?>: <span><b><?=__('Date')?></b></span> <i class="l-icon-down-arrow media-top"></i>
|
||||
</td>
|
||||
<td class="step-right">
|
||||
<form action="/bulk/cron/" method="post" id="objects">
|
||||
|
@ -59,7 +63,7 @@
|
|||
|
||||
|
||||
|
||||
<div class="l-center">
|
||||
<div class="l-center units">
|
||||
<?
|
||||
foreach ($data as $key => $value) {
|
||||
++$i;
|
||||
|
@ -75,7 +79,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['cron-'.sha1($key)] == 1) echo ' l-unit--starred'; ?>" uniq-id="cron-<?=sha1($key)?>" sort-date="<?=strtotime($data[$key]['DATE'].' '.$data[$key]['TIME'])?>" sort-name="<?=htmlspecialchars($data[$key]['CMD'], ENT_NOQUOTES)?>">
|
||||
<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="job[]" value="<?php echo $key ?>">
|
||||
|
@ -117,6 +121,9 @@
|
|||
<?=translate_date($data[$key]['DATE'])?>
|
||||
</div>
|
||||
<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">
|
||||
|
@ -140,7 +147,7 @@
|
|||
<!-- /.l-unit__col -->
|
||||
</div>
|
||||
<!-- /.l-unit -->
|
||||
<div class="l-separator"></div>
|
||||
<!--div class="l-separator"></div-->
|
||||
<!-- /.l-separator -->
|
||||
<?}?>
|
||||
|
||||
|
@ -151,6 +158,7 @@
|
|||
<div class="l-separator"></div>
|
||||
<div class="l-center">
|
||||
<div class="l-unit-ft">
|
||||
<table class='data'></table>
|
||||
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
||||
<div class="data-count l-unit__col l-unit__col--right clearfix">
|
||||
<?php
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue