<% int iCountPage = 25; //每页输出的行数 int PageCount = Data.getCount("行业动态",WEB); int iToPage = SysAPI.StrToInt(request.getParameter("iToPage")); if (iToPage<=0) iToPage = 1; /> 贵州航天南海机电有限公司
 
回首页 产品介绍 公司简介 在线支持 客户留言 联系我们
English
    <% SQLTxt = "SELECT * FROM orc_webdata_cy WHERE nodeId='行业动态' AND WEB='" + WEB + "' ORDER BY SortDate DESC"; array = Data.Query(SQLTxt,iToPage,iCountPage); if (array != null) { Iterator iterator = array.iterator(); Wdata wdata = null; try { while (iterator.hasNext()) { wdata = (Wdata)iterator.next(); if (wdata != null) { String dID = wdata.WEB_ID; String dSubject = wdata.WEB_Subject; String dPutDate = wdata.WEB_Putdate; String dContent = wdata.WEB_Content ; String dimg = wdata.WEB_img; int dVisMan = wdata.WEB_VisMan; String dOrigin = wdata.WEB_Origin; String dAuthor = wdata.WEB_Author; dSubject = CHStr.NotHtml(dSubject); //去掉HTML dContent = CHStr.NotHtml(dContent); //去掉HTML if (dSubject.length()>=32) dSubject = dSubject.substring(0,30) + "..."; //限制长度 if (dContent.length()>=102) dContent = dContent.substring(0,100) + "..."; //限制长度 />
  • <%=dSubject />(<%=dPutDate.substring(0,10) />)
  • <% } // if (wdata != null) } //while }catch(Exception e) { //.. } array.clear(); array = null; } />
<% int AllPage = PageCount/iCountPage + 1; int ibpage = iToPage - 4; if (ibpage<=0) ibpage = 1; int iepage = iToPage + 4; if (iepage>AllPage) iepage = AllPage; for (int i=ibpage; i<=iepage; i++) { if (i==iToPage){ /> <%=i /> <% continue; } /> <%=i /> <%} /> 当前共<%=AllPage />
贵州航天南海机电有限公司版权所有