echo sortOrder('protocol'); echo $filterPassThru; ?> ">Protocol</a></td> <td class="listhdrr" align="right"><a href="?order=packets<?php echo sortOrder('packets'); echo $filterPassThru; ?> ">Packets</a></td> <td class="listhdrr" align="right"><a href="?order=bytes<?php echo sortOrder('bytes'); echo $filterPassThru; ?> ">Bytes</a></td> <td class="listhdr" align="right"><a href="?order=expire<?php echo sortOrder('expire'); echo $filterPassThru; ?> ">Expires</a></td> <td class="list"></td> </tr> <?php $count = 0; if (is_array($data)) { foreach ($data as $entry) { if (!isset($sfilter) && !isset($dfilter) || isset($sfilter) && $entry['srcip'] == $sfilter || isset($dfilter) && $entry['dstip'] == $dfilter) { ?> <tr> <td class="listlr"><?php echo displayIP($entry['srcip'], 'srcip'); ?>
function sortLink($key, $text) { if (userSortActive()) { $sortlink = "<a "; if (sortKey() == $key) { $classorder = str_replace(array('SORT_ASC', 'SORT_DESC'), array('asc', 'desc'), sortOrder()); $sortlink .= 'class="' . $classorder . '" '; $linkorder = sortOrder(true); // adesc } else { $linkorder = "SORT_ASC"; } $sortlink .= ' href="' . scriptPath() . '?sortkey=' . $key . '&sortorder=' . $linkorder . '&directory=' . currentDirectory(); if (searchTag() != '') { $sortlink .= '&search=' . searchTag(); } $sortlink .= '">' . $text . '</a>'; } else { $sortlink = $text; } echo $sortlink; }