if (!empty($_GET['search'])) { echo ' / <a href="?route=banned.php&action=list">' . $LANG['reset_view'] . '</a>'; } echo '</div>'; if ($p['results']) { echo '<form action="?route=banned.php&action=list" method="POST"> <ul class="elements-list"> <li class="head"><input type="checkbox" checkall /> ' . $LANG['name'] . '</li> <div class="bulk_options"> <button class="btn" name="delete" data-delete-msg="' . $LANG['delete_msg'] . '">' . $LANG['delete_all'] . '</button> </div>'; foreach (admin_query::while_banned(array_merge(array('orderby' => isset($_GET['orderby']) ? urldecode($_GET['orderby']) : 'date desc'), $options)) as $item) { echo '<li><input type="checkbox" name="id[' . $item->ID . ']" /> <div class="info-div"><h2>' . $item->IP . '</h2></div> <div class="options"> <a href="?route=banned.php&action=edit&id=' . $item->ID . '">' . $LANG['edit'] . '</a> <a href="?route=banned.php&action=delete&id=' . $item->ID . '&token=' . $csrf . '" data-delete-msg="' . $LANG['delete_msg'] . '">' . $LANG['delete'] . '</a> </div> </li>'; } echo '</ul> <input type="hidden" name="csrf" value="' . $csrf . '" /> </form>'; if (isset($p['prev_page']) || isset($p['next_page'])) { echo '<div class="pagination">';