Exemplo n.º 1
0
 function sort_link($link_order, $text, $order, $cur_page, $direction, $default_direction)
 {
     /*
      * 
      *<th><a class="sorting" href='<?= $base_url ?><?= $cur_page ?>/name/<?= Listing::reverse_direction($order == 'name' ? $direction : $default_direction) ?>'>Name</a></th>
      */
     return anchor($base_url . $cur_page . "/" . $order . "/" . Listing::reverse_direction($order == $link_order ? $direction : $default_direction), $text);
 }
Exemplo n.º 2
0
        echo strcmp($arrow_icon, 'up_sort') === 0 ? 'block' : 'none';
        ?>
" href="<?php 
        echo $base_url . $cur_page . '/' . $field . '/';
        echo Listing::reverse_direction($direction);
        ?>
">
							<i class="up_sort m_top_15"></i>
						</a>

						<a style="display:<?php 
        echo strcmp($arrow_icon, 'down_sort') === 0 ? 'block' : 'none';
        ?>
" href="<?php 
        echo $base_url . $cur_page . '/' . $field . '/';
        echo Listing::reverse_direction($direction);
        ?>
">
							<i class="down_sort m_top_15"></i>
						</a>
						
					</div>  
				<?php 
    } else {
        ?>
					
				<?php 
    }
    ?>
				</th>
				<?php