Current path: home/webdevt/cryptoimpot.fr/module/Application/view/application/partial/crypto/
?? Go up: /home/webdevt/cryptoimpot.fr/module/Application/view/application/partial
<?php $query = $queryOption; ?>
<thead>
<tr>
<?php foreach ($colTable as $col => $infos) : ?>
<?php if (isset($infos)) : /* Si les infos de la colonne sont definies */ ?>
<?php /* Le champ peut être trié */ ?>
<?php if ($infos['allowOrder']) : ?>
<?php $queryOption['sort_by'] = $col ?>
<?php if (array_key_exists('sort_by', $query) && $query['sort_by'] == $col) : ?>
<?php $queryOption['sort'] = ($query['sort'] == 'ASC') ? 'DESC' : 'ASC' ?>
<!--<th class="<?php //echo $infos['class']; ?> alt-ordered-col col"><a class="order" href="<?php echo $this->url($this->route, array(), array('query' => $queryOption), true); ?>">-->
<th class="col text-center"><a class="order text-center" href="<?php echo $this->url($this->route, array(), array('query' => $queryOption), true); ?>">
<?php echo $infos['label']; ?>
<?php if ($query['sort'] == 'ASC') : ?>
<i class="fa fa-chevron-up"></i>
<?php else : ?>
<i class="fa fa-chevron-down"></i>
<?php endif ?>
</a>
</th>
<?php else : ?>
<?php $queryOption['sort'] = 'DESC' ?>
<!--<th class="<?php //echo $infos['class']; ?> alt-ordered-col col">-->
<th class="col text-center">
<a class="order-desc text-center" href="<?php echo $this->url($this->route, array(), array('query' => $queryOption), true); ?>">
<?php echo $infos['label']; ?>
<i class="fa fa-chevron-down"></i>
</a>
</th>
<?php endif ?>
<?php /* Le champ ne peut pas être trié */ ?>
<?php else : ?>
<th class="col <?php echo $infos['class']; ?> <?php echo $infos['label'] == 'Actions' ? 'alt-action' : ''; ?>"><?php echo $infos['label']; ?></th>
<?php endif; ?>
<?php endif /* ./ Si les infos de la colonne sont definies */ ?>
<?php endforeach ?>
</tr>
</thead>
<script>
$('.order-desc').children('i')
.css("visibility", "hidden");
$('.order').hover(function() {
$(this).children('i')
.toggleClass('fa-chevron-up')
.toggleClass('fa-chevron-down');
});
$('.order-desc').hover(
function() {
$(this).children('i')
.css("visibility", "visible");
},
function() {
$(this).children('i')
.css("visibility", "hidden");
});
</script>