It's Repository

blog.selpa.co.kr

포토로그



전자정부프레임워크 2.7 페이징 디자인 전자정부프레임워크

<소스>
------------------------------------
package egovframework.com.cmm;

public class ImagePaginationRenderer extends AbstractPaginationRenderer implements ServletContextAware{

private ServletContext servletContext;
public ImagePaginationRenderer() {
}
public void initVariables(){
firstPageLabel    = "<div class=\"box-footer clearfix text-center\"><div class=\"row\"><div class=\"col-md-4\"></div><div class=\"col-md-4\">\n<ul class=\"pagination pagination-sm no-margin\">\n";
        previousPageLabel = "<li><a href=\"?pageIndex={1}\" onclick=\"{0}({1});return false; \">&laquo;</a></li>\n";
        currentPageLabel  = "<li class=\"active\"><a>{0}</a></li>\n";
        otherPageLabel    = "<li><a href=\"?pageIndex={1}\" onclick=\"{0}({1});return false; \">{2}</a></li>\n";
        nextPageLabel     = "<li><a href=\"?pageIndex={1}\" onclick=\"{0}({1});return false; \">&raquo;</a></li>\n";
        lastPageLabel     = "</ul>\n</div></div></div></div>\n";
}


public void setServletContext(ServletContext servletContext) {
this.servletContext = servletContext;
initVariables();
}

}



------------------------------------
<적용페이지>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>

<ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="fn_selectList" />

덧글

댓글 입력 영역