<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<c:if test="${param.total > 0 && param.endPageNo > 1}">
<nav aria-label="Page navigation">
    <ul class="pagination pagination-mb">
        <li class="page-item"><a class="page-link" href="?${param.url}&${param.preFix}=${param.prevPageNo}"><i class="fas fa-angle-left"></i></a></li>
        <c:forEach var="i" begin="${param.startPageNo}" end="${param.endPageNo}" step="1">
            <c:choose>
                <c:when test="${i eq param.pageNo}">
                    <li class="page-item active"><a class="page-link" href="?${param.url}&${param.preFix}=${i}">${i}</a></li>
                </c:when>
                <c:otherwise>
                    <li class="page-item"><a class="page-link" href="?${param.url}&${param.preFix}=${i}">${i}</a></li>
                </c:otherwise>
            </c:choose>
        </c:forEach>
        <li class="page-item"><a class="page-link" href="?${param.url}&${param.preFix}=${param.nextPageNo}"><i class="fas fa-angle-right"></i></a></li>
    </ul>
</nav>
</c:if>