<%@ page language="java" contentType="text/html; charset=utf-8" import="java.util.*,com.jitv.tv.util.*,com.jitv.tv.action.ui.*,java.net.*"%> 标签页 <% String tag = (String)request.getParameter("tag"); String pageIndex = (String)request.getParameter("pageIndex"); Integer curPage = Integer.parseInt(pageIndex); WebAction.addClickTag(tag); // 标签点击 //List fList = WebAction.getFriendlyLink(); // 底部友情链接 List> tenList = OfficialArticleContentAction.getArticletop10(); // 全网前十热文 Map androidMap = WebAction.getTopWebsiteTmp("website","2"); // 安卓二维码 String androidCodeImg =""; String androidVersionName = ""; String androidDownloadUrl = ""; if(androidMap !=null){ androidCodeImg = (String) androidMap.get("codeImg"); androidVersionName = (String) androidMap.get("versionName"); androidDownloadUrl = (String) androidMap.get("url")+"?xzName=9iKanDian-website-"+androidVersionName+".apk"; } Map tvMap = WebAction.getTopWebsiteTmp("website","4"); // 电视端二维码 String tvCodeImg = ""; String tvDownloadUrl = ""; String tvVersionName = ""; if(tvMap !=null){ tvCodeImg = (String) tvMap.get("codeImg"); tvVersionName = (String) tvMap.get("versionName"); tvDownloadUrl = (String) tvMap.get("url")+"?xzName=9iKanDian-website-"+tvVersionName+".apk"; } Map result = WebAction.getTagList(tag, pageIndex, "10"); List> tagList = (List>)result.get("list"); Integer count = (Integer)result.get("count"); Integer totalPage = (count + 24 - 1) / 24; // 总页数 int start1 = Math.max(Integer.parseInt(pageIndex) - Math.round(9 / 2), 1); int end1 = Math.min(start1 + 9 - 1, totalPage); int end2 = Math.min(Integer.parseInt(pageIndex) + Math.round(9 / 2) - 1, totalPage); int start2 = Math.max(end2 - 9 + 1, 1); int start = Math.min(start1, start2); int end = Math.max(end1, end2); %>
当前位置:
<%if(count > 0){ %>
<% if("1".equals(pageIndex)){ for(int i = start; i <= end; i++){ if(i == curPage){ %> <%=i%> <%}else{%> <%=i%> <%}%> <%}%> <%if(curPage != totalPage){%> 下一页 <%}%> 末页 <%}else{%> 首页 上一页 <%for(int i = start; i <= end; i++){ if(i == curPage){ %> <%=i%> <%}else{%> <%=i%> <%}%> <%}%> <%if(curPage != totalPage){%> 下一页 <%}%> 末页 <%}%> <%}%>

热门资讯

扫码关注9i看点最新动态

微信公众号
新浪微博