⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 news_more.jsp

📁 网龙仿阿里巴巴程序源码(java版) v2.5.rar
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.util.*,
                 com.bean.NewsInfo,
                 com.bean.CommparaInfo,
                 com.base.db.DBConnectorBase,
                 com.base.db.DBConnectionManager,
                 com.base.config.ProjectConfig,
                 tools.util.PageTools"%>
<%
    DBConnectorBase conn = DBConnectionManager.getInstance().getConnection(ProjectConfig.DBTITLE);
    String news_type = "";
    String news_type_name = "";
    if(request.getParameter("news_type")!=null && !request.getParameter("news_type").equals("")){
        news_type = request.getParameter("news_type");
    }
    CommparaInfo cpinfo = new CommparaInfo().getOneCommparaInfo(conn,"news_type",news_type);
    if(cpinfo!=null){
        news_type_name = cpinfo.para_code2;
    }
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=news_type_name%>----环球制造网</title>
<link href="/style/tj.css" type="text/css" rel="stylesheet" />
<link href="/style/commonality.css" rel="stylesheet" type="text/css" />
<link href="/style/list.css" rel="stylesheet" type="text/css" />
<link href="/css/layout.css" rel="stylesheet" type="text/css">
<link href="/css/daohang.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="top">
  <a  onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://b2b.xsaas.com');"  style="CURSOR: hand">将本站设置为首页</a>
  | 
  <a href="javascript:window.external.AddFavorite('http://b2b.xsaas.com', '安徽农业信息网-安徽省最专业的农业网上贸易市场,农产品展示平台')">加入收藏</a> 
  | 
  <a href="Newcregister.jsp">免费用户注册</a>
  |
  <a href="/crm">登录后台</a>
  <!--|
    帮助 --></div>
<!--头部容器----->
<div class="container">
  <div class="header">
    <div class="logo"><a href="http://www.madeinglobal.com" target="_top"><img src="/images/logo.gif" width="225" height="66" border="0"></a></div>
    <!--div class="shop">
      <div class="shop1"><img src="images/07.gif" width="45" height="19"> <img src="images/010.gif" width="71" height="19"> <img src="images/011.gif" width="71" height="19"> <img src="images/012.gif" width="71" height="19"><br>
        赢在中国 网商大会 </div>
    </div-->
<div>
<%@ include file="/inc/top.jsp" %>
</div>
<%--<iframe frameBorder="0" scrolling=no src="advListTemp.jsp" width="768" height="89"></iframe>--%>

<div class="tjad"></div>
<div class="tjBody">
	<div class="tjlbLeft">
		<div class="leftlbTop2">资讯--><%=news_type_name%>-->信息列表</div>
		<div class="leftlbBody1">
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <%
                Vector nvec = new NewsInfo().getNewsInfoVectorByType(conn,news_type);
                int curPage = 1;
                int pageSize = 20;
                int pageRoll = 10;
                int pagecount = (int) Math.ceil((double) nvec.size() / pageSize);

                try{
                    curPage = Integer.parseInt(request.getParameter("curPage"));
                    if (curPage>=pagecount) curPage = pagecount;
                    if (curPage<=1) curPage = 1;
                }catch(Exception err){
                    curPage = 1;
                }

                PageTools pagetools = new PageTools(nvec,curPage,pageSize,pageRoll);
                Vector nvobject = (Vector)pagetools.getData();

                for(int i=0;i<nvobject.size();i++){
                    NewsInfo ninfo = (NewsInfo)nvobject.get(i);
                    String date = ninfo.publish_date;
                    if(date!=null){
                        date = date.substring(0,10);
                    }
            %>
            <tr>
              <td height="25" align="center" width="3%"><img src="/images/zsku.gif" width="8" height="8" /></td>
              <td align="left" class="list_td" width="97%"><a href="/news/<%=date%>/news_<%=ninfo.news_id%>.html" target="_blank"><%=ninfo.title%></a></td>
        	</tr>
            <%}%>
		    <tr bgcolor="#EFEFEF">
			  <td align="left" colspan="2"><%out.println(pagetools.getToolBar("news_more.jsp?news_type="+news_type+"","","#efefef","#cccccc"));%></td>
			</tr>
          </table>
		</div>
  </div>
</div>
<script src="/inc/bottom.js"></script>
  </div>
</div>
</body>
</html>
<% DBConnectionManager.getInstance().freeConnection(ProjectConfig.DBTITLE, conn);%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -