File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
package egovframework.com.cmm;
import javax.servlet.ServletContext;
import org.springframework.web.context.ServletContextAware;
import egovframework.rte.ptl.mvc.tags.ui.pagination.AbstractPaginationRenderer;
/**
* ImagePaginationRenderer.java 클래스
*
* @author 서준식
* @since 2011. 9. 16.
* @version 1.0
* @see
*
* <pre>
* << 개정이력(Modification Information) >>
*
* 수정일 수정자 수정내용
* ------- ------------- ----------------------
* 2011. 9. 16. 서준식 이미지 경로에 ContextPath추가
* </pre>
*/
public class ImagePaginationRenderer extends AbstractPaginationRenderer implements ServletContextAware{
private ServletContext servletContext;
public ImagePaginationRenderer() {
// no-op
}
public void initVariables(){
/*firstPageLabel = "<li><button onclick=\"{0}({1});return false;\"><img src=\"/img/post/board_btn1.jpg\"></button></li>";
previousPageLabel = "<li><button onclick=\"{0}({1});return false;\"><img src=\"/img/post/board_btn2.jpg\"></button></li>";
currentPageLabel = "<li><button id=\"page_btn\" disabled ><strong>{0}</strong></button></li>";
otherPageLabel = "<li><button id=\"page_btn\" onclick=\"{0}({1});return false;\">{2}</button>";
nextPageLabel = "<li><button onclick=\"{0}({1});return false;\"><img src=\"/img/post/board_btn3.jpg\"></button></li>";
lastPageLabel = "<li><button onclick=\"{0}({1});return false;\"><img src=\"/img/post/board_btn4.jpg\"></button></li>";*/
firstPageLabel = "<li><input type=\"button\" onclick=\"{0}({1});return false;\" class=\"page_first\"></li>";
previousPageLabel = "<li><input type=\"button\" onclick=\"{0}({1});return false;\" class=\"page_before\"></li>";
currentPageLabel = "<li style=\"font-weight:bold;color:#0388d2;\"><strong>{0}</strong></li>";
otherPageLabel = "<li onclick=\"{0}({1});return false;\" style=\"cursor:pointer;\" >{2}";
nextPageLabel = "<li><input type=\"button\" onclick=\"{0}({1});return false;\" class=\"page_next\" ></li>";
lastPageLabel = "<li><input type=\"button\" onclick=\"{0}({1});return false;\" class=\"page_last\" ></li>";
}
@Override
public void setServletContext(ServletContext servletContext) {
this.servletContext = servletContext;
initVariables();
}
}