基本信息
源码名称:jsp 商城 入门级源码(含数据库)
源码大小:2.11M
文件格式:.rar
开发语言:Java
更新时间:2016-12-06
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.zuxia.dao.BulletinDao"%>
<%@page import="com.zuxia.model.BulletinInfo"%>
<%@page import="com.zuxia.util.PageModel"%>
<%@page import="com.zuxia.util.DateTimeUtil"%>
<%
BulletinDao dao = new BulletinDao();
int pageSize=25,pageNo=1;
try{
pageNo = Integer.parseInt(request.getParameter("pageNo"));
}catch(Exception ex){}
PageModel<BulletinInfo> pm =  dao.getAllBulletinInfo(pageSize,pageNo);
ArrayList<BulletinInfo> bulletinList = pm.getData();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
<%
String path = request.getContextPath();
String basePath = request.getScheme() "://" request.getServerName() ":" request.getServerPort() path "/";
out.println("<base href=\"" basePath "\">");
%>
    <title>公告列表-千里之行-在线销售旅游用品 登山攀岩器材、户外服装、户外桌椅、睡袋垫子、野营用品、野营帐篷、运动手表...</title>
<link rel="stylesheet" href="common/css/common.css" type="text/css"></link>
<style type="text/css">
#bulletinList{padding:10px 3px 3px 3px;}
#bulletinList span{font-size:11pt;color:#727171;margin-left:30px;border:0px;}
#bulletinList a{display:block;text-indent:1em;font-size:11pt;color:#4B8ECE;text-decoration:none;height:35px;line-height:35px;border-bottom:1px dashed #727171;}
#bulletinList a:hover{color:#FE8802;}

.pager{text-align:right;height:25px;line-height:25px;border-bottom:0px;font-size:10pt;}
</style>
  </head>
  <body>
  <iframe src="top_index.jsp" name="topFrame" width="100%" height="150px" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
    <div id="middle_div">
   <div class="sitemap">
您现在所在的位置:<a target="_top" href="index.jsp">网站首页</a>&nbsp;&gt;&nbsp;网站公告
</div>
<div id="bulletinList">
<%
BulletinInfo bulletin = null;
for(int i=0;i<bulletinList.size();i ){
bulletin = bulletinList.get(i);
%>
<a href="bulletin.jsp?id=<%=bulletin.getId()%>">
<%=bulletin.getTitle()%>
<span><%=DateTimeUtil.convertDate(bulletin.getCreateTime())%></span>
</a>
<%}%>
</div>
<div class="pager">
共有<%=pm.getTotalRecords()%>条公告&nbsp;&nbsp;
第<%=pm.getPageNo()%>/<%=pm.getTotalPages()%>页&nbsp;&nbsp;
<a href="showBulletinList.jsp?pageNo=<%=pm.getIndexPageNo()%>">首页</a>
<a href="showBulletinList.jsp?pageNo=<%=pm.getPreviousPageNo()%>">上一页</a>
<a href="showBulletinList.jsp?pageNo=<%=pm.getNextPageNo()%>">下一页</a>
<a href="showBulletinList.jsp?pageNo=<%=pm.getLastPageNo()%>">尾页</a>
</div>
</div>
<iframe src="bottom_index.jsp" name="bottomFrame" width="100%" height="180px" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
  </body>
</html>