You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

655 lines
36 KiB

2 years ago
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ page import="com.xxx.model.huodong" %>
<%@ page import="com.xxx.model.XinWen" %>
<%@ page import="com.xxx.model.Page" %>
<%@ page import="com.xxx.dao.huodongDao" %>
<%@ page import="com.xxx.dao.XinWenDao" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
Integer currentPage = request.getParameter("page") == null ? 1 : Integer.parseInt(request.getParameter("page"));
Integer pageSize = request.getParameter("rows") == null ? 999 : Integer.parseInt(request.getParameter("rows"));
huodong _huodong = new huodong();
_huodong.setstrwhere("");
huodongDao _huodongDao = new huodongDao();
List<huodong> huodongList = _huodongDao.gethuodongList(_huodong, new Page(currentPage, pageSize));
XinWen XinWen = new XinWen();
XinWen.setstrwhere("");
XinWenDao XinWenDao = new XinWenDao();
List<XinWen> xinwenlist = XinWenDao.getXinWenList(" 5 ",XinWen, new Page(currentPage, pageSize));
System.out.print("huodongList个数 :::"+huodongList.size()+" ");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>社团网</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--Template style -->
<link rel="stylesheet" type="text/css" href="<%=basePath%>home/css/animate.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>home/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>home/css/fonts.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>home/css/font-awesome.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>home/css/owl.carousel.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>home/css/owl.theme.default.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>home/css/dl-menu.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>home/css/weather.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>home/css/flaticon.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>home/css/venobox.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>home/css/magnific-popup.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>home/css/style.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>home/css/responsive.css" />
<!-- favicon links -->
<link rel="shortcut icon" type="image/png" href="<%=basePath%>home/images/header/favicon.ico" />
<script src="<%=basePath%>admin/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(function(){
loadone();
})
var page=1,rows=9;
function loadone()
{
var where=" ";
$.ajax({
type: "post",
url: "HomeServlet?method=shetuanlist",
dataType:'json',
data:{
page:page,
rows:rows,
where:where
},
success: function(data){
var totalhtml='';
for(var i=0;i<data.rows.length;i++)
{
var neirong=data.rows[i]["neirong"];
if(data.rows[i]["neirong"].length>560)
{
neirong=neirong.substring(0,300)
}
totalhtml+=' <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">'+
'<div class="ne_gt_left_top_main_wrapper ne_gt_left_top_main_wrapper1">'+
'<div class="ne_gt_left_img_main_wrapper">'+
'<img style="width:270px;height:233px;" src="pic/'+data.rows[i]["tupian"]+'" alt="img">'+
'<h2>Technology</h2>'+
'</div>'+
'<div class="ne_gt_left_img_cont_main_wrapper">'+
'<h3><a href="home/shetuandetails.jsp?id='+data.rows[i]["id"]+'">'+data.rows[i]["title"]+'</a></h3>'+
'<ul class="ne_re_social1_wrapper">'+
' <li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-calendar"></i> &nbsp;25 OCT, 2017</a>'+
' </li>'+
' <li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-clock-o"></i> &nbsp;07 : 00 am</a>'+
' </li>'+
'</ul>'+
'<p>'+neirong+'...</p>'+
'<ul class="ne_re_social2_wrapper">'+
'<!-- <li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-thumbs-up"></i> &nbsp;5124 Like</a>'+
'</li>'+
'<li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-comments"></i> &nbsp;645 Comments</a>'+
'</li>-->'+
'</ul>'+
'</div>'+
'</div>'+
'</div>';
}
$('#onelist').html(totalhtml);
}
});
}
</script>
</head>
<body>
<jsp:include page="${basePath}/home/head.jsp" flush="true"/>
<div class="ne_ts_main_section_wrapper hidden-xs">
<div class="container">
<div class="ne_ts_inner_wrapper">
<div class="ne_tran_label_wrapper">
<h3>Trending</h3>
</div>
<div class="ne_tranding_slider_wrapper">
<div class="owl-carousel owl-theme">
<div class="item">
<div class="ne_ts_inner_content">
<p>微笑是我们的语言,文明是我们的信念。</p>
<h3 class="hidden-sm"><i class="fa fa-calendar"></i> 26,DEC,2022</h3>
</div>
</div>
<div class="item">
<div class="ne_ts_inner_content">
<p>鸟儿因翅膀而自由翱翔,鲜花因芬芳而美丽,校园因文明而将更加进步。</p>
<h3 class="hidden-sm"><i class="fa fa-calendar"></i> &nbsp;26,DEC,2022</h3>
</div>
</div>
<div class="item">
<div class="ne_ts_inner_content">
<p>关心学校,我们的职责;爱护学校,我们的义务;热爱学校,我们的心声。</p>
<h3 class="hidden-sm"><i class="fa fa-calendar"></i> 26,DEC,2022</h3>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- ne tranding slider End -->
<div class="ss_addver_slider_wrapper">
<div class="container">
<div class="slider-area">
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<div class="carousel-inner" role="listbox">
<div class="item active">
<div class="carousel-captions caption-1">
<div class="container" >
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 hot_slider_custom_col_img_cont">
<div class="content lr_banner_content_inner_wrapper">
<h2 data-animation="animated bounceInLeft">Top news</h2>
<h3 data-animation="animated fadeInLeft">事无巨细,人各迥异,咱们等的就是你!</h3>
<ul>
<li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-calendar"></i> &nbsp;26,DEC,2022</a>
</li>
<li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-clock-o"></i> &nbsp;08:00 am</a>
</li>
<li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-thumbs-up"></i> &nbsp;5124 Like</a>
</li>
<li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-comments"></i> &nbsp;645 Comments</a>
</li>
</ul>
<div class="divider" data-animation="animated fadeInLeft"></div>
<p data-animation="animated fadeInLeft">如果你热爱青春,期望展示自我,那就加入我们</p>
<div class="clear"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class=" carousel-captions caption-2">
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 hot_slider_custom_col_img_cont">
<div class="content lr_banner_content_inner_wrapper">
<h2 data-animation="animated bounceInLeft">Top news</h2>
<h3 data-animation="animated fadeInLeft">只要你有艺压群雄的才艺,只要你有用于创新的思维,只要你有运筹帷幄的才华,只要你坚信自我不平凡,加入文艺部吧!成就一个不平凡的自我。</h3>
<ul>
<li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-calendar"></i> &nbsp;26,DEC,2022</a>
</li>
<li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-clock-o"></i> &nbsp;08 : 00 am</a>
</li>
<li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-thumbs-up"></i> &nbsp;5124 Like</a>
</li>
<li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-comments"></i> &nbsp;645 Comments</a>
</li>
</ul>
<div class="divider" data-animation="animated fadeInLeft"></div>
<p data-animation="animated fadeInLeft">年轻活力是我的资本,张扬个性凸显胆识是我的超越</p>
<div class="clear"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="carousel-captions caption-3">
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 hot_slider_custom_col_img_cont">
<div class="content lr_banner_content_inner_wrapper">
<h2 data-animation="animated bounceInLeft">Top news</h2>
<h3 data-animation="animated fadeInLeft">想做执牛耳的人吗?加入咱们吧!</h3>
<ul>
<li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-calendar"></i> &nbsp;26,DEC,2022</a>
</li>
<li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-clock-o"></i> &nbsp;08 : 00 am</a>
</li>
<li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-thumbs-up"></i> &nbsp;5124 Like</a>
</li>
<li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-comments"></i> &nbsp;645 Comments</a>
</li>
</ul>
<div class="divider" data-animation="animated fadeInLeft"></div>
<p data-animation="animated fadeInLeft">来吧,朋友!让咱们一齐插上文学的翅膀,让咱们一齐挥洒青春的热情,让青春激越的咱们一齐翱游于文学的海洋吧!</p>
<div class="clear"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-nevigation">
<a class="prev" href="#carousel-example-generic" role="button" data-slide="prev"> <i class="fa fa-angle-left"></i>
</a>
<a class="next" href="#carousel-example-generic" role="button" data-slide="next"> <i class="fa fa-angle-right"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!--main js file start-->
<!--resent news Start-->
<div class="ne_recent_news_main_wrapper">
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="ne_recent_left_side_wrapper">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="ne_busness_main_slider_wrapper">
<div class="ne_recent_heading_main_wrapper">
<h2>活动</h2>
</div>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="ne_sport_slider_wrapper">
<div class="owl-carousel owl-theme">
<div class="item">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="ne_re_left_top_main_wrapper">
<div class="ne_re_left_img_main_wrapper ne_re_left_img_main_wrapper2">
<img src="<%=basePath%>home/images/content/sp1.jpg" alt="img">
<h2>Do you like Sport?</h2>
</div>
<div class="ne_re_left_img_cont_main_wrapper">
<h3><a href="#">拳击爱好者交流赛</a></h3>
<ul class="ne_re_social1_wrapper">
<li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-calendar"></i> &nbsp;26,DEC,2022</a>
</li>
<li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-clock-o"></i> &nbsp;07 : 00 am</a>
</li>
</ul>
<p>习练拳击,证明自己.</p>
</div>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="ne_re_left_bottom_main_wrapper ne_re_left_bottom_main_wrapper_top" id="twolist">
<% if(huodongList!=null){
int i =-1;
for(Iterator iterator = huodongList.iterator();iterator.hasNext();){
huodong _hd = (huodong)iterator.next();
i++;
%>
<div class="ne_re_bottom_img">
<img src="pic/<%=_hd.gettupian()%>" alt="rs_img">
</div>
<div class="ne_re_bottom_img_cont">
<h3><a href="home/huodongdetails.jsp?id=<%=_hd.getId()%>"><%=_hd.gettitle()%></a></h3>
<p><a href="home/huodongdetails.jsp?id=<%=_hd.getId()%>"><i class="fa fa-calendar"></i> &nbsp;<%=_hd.getshijian()%></a>
</p>
</div>
<%}} %>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="ne_banner_adver_main_wrapper">
<a href="#">
<img src="<%=basePath%>home/images/content/adverti_img.jpg" alt="img">
</a>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="row" id="onelist">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="ne_busness_main_slider_wrapper">
<div class="ne_recent_heading_main_wrapper">
<h2>Gadgets and Technology</h2>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<div class="ne_indx_sidebar_main_wrapper">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="ne_sidebar_inner_social_wrapper ne_sidebar_second_inner_social_wrapper">
<div class="ne_recent_heading_main_wrapper font_18px">
<h2>推荐资讯</h2>
</div>
<div class="ne_re_left_bottom_main_wrapper ne_pc_main_cont_wrapper">
<!--
<div class="ne_pc_bottom_img">
<img src="<%=basePath%>home/images/content/pc1.jpg" alt="rs_img">
</div>
<div class="ne_pc_bottom_img_cont">
<h3><a href="#">Etiam dignissim aliquet sed.</a></h3>
<p><a href="#"><i class="fa fa-calendar"></i> &nbsp;25 OCT, 2017</a>
</p>
</div>
-->
<% if(xinwenlist!=null){
int i =-1;
for(Iterator iterator = xinwenlist.iterator();iterator.hasNext();){
XinWen _hd = (XinWen)iterator.next();
i++;
%>
<div class="ne_re_bottom_img">
<img style="width:150px;height:100px;" src="pic/<%=_hd.gettupian()%>" alt="rs_img">
</div>
<div class="ne_re_bottom_img_cont">
<h3><a href="home/details.jsp?id=<%=_hd.getId()%>"><%=_hd.gettitle()%></a></h3>
<p><a href="home/details.jsp?id=<%=_hd.getId()%>"><i class="fa fa-calendar"></i> &nbsp;<%=_hd.getshijian()%></a>
</p>
</div>
<%}} %>
</div>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="ne_sidebar_inner_social_wrapper ne_sidebar_second_inner_social_wrapper">
<div class="ne_recent_heading_main_wrapper font_18px">
<h2>Latest Articles</h2>
</div>
<div class="ne_wn_img_main_wrapper ne_ln_inner_img_main_wrapper ne_re_left_img_main_wrapper2 bab">
<div class="ne_wn_img_overlay"></div>
<div class="ne_wn_social_inner_wrapper">
<h3><a href="#">Award of the year</a></h3>
<ul class="ne_wn_social1_wrapper">
<li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-calendar"></i> &nbsp;25 OCT, 2017</a>
</li>
<li data-animation="animated fadeInLeft"><a href="#"><i class="fa fa-clock-o"></i> &nbsp;07 : 00 am</a>
</li>
</ul>
</div>
</div>
<div class="ne_re_left_bottom_main_wrapper ne_pc_main_cont_wrapper3">
<div class="ne_pc_bottom_img">
<img src="<%=basePath%>home/images/content/pc6.jpg" alt="rs_img">
</div>
<div class="ne_pc_bottom_img_cont">
<h3><a href="#">Etiam dignissim aliquet velit sed.</a></h3>
<p><a href="#"><i class="fa fa-calendar"></i> &nbsp;26,DEC,2022</a>
</p>
</div>
</div>
<div class="ne_re_left_bottom_main_wrapper ne_pc_main_cont_wrapper3">
<div class="ne_pc_bottom_img">
<img src="<%=basePath%>home/images/content/pc7.jpg" alt="rs_img">
</div>
<div class="ne_pc_bottom_img_cont">
<h3><a href="#">Beats did some thing today</a></h3>
<p><a href="#"><i class="fa fa-calendar"></i> &nbsp;26,DEC,2022</a>
</p>
</div>
</div>
<div class="ne_re_left_bottom_main_wrapper ne_pc_main_cont_wrapper3">
<div class="ne_pc_bottom_img">
<img src="<%=basePath%>home/images/content/pc8.jpg" alt="rs_img">
</div>
<div class="ne_pc_bottom_img_cont">
<h3><a href="#">Etiam dignissim velit sed.</a></h3>
<p><a href="#"><i class="fa fa-calendar"></i> &nbsp;26,DEC,2022</a>
</p>
</div>
</div>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="ne_sidebar_inner_social_wrapper ne_sidebar_second_inner_social_wrapper">
<div class="ne_recent_heading_main_wrapper font_18px">
<h2>最新资讯</h2>
</div>
<!--
<div class="ne_lr_main_section_wrapper">
<div class="ne_lr_img_wrapper">
<img src="<%=basePath%>home/images/content/lr1.jpg" alt="img">
</div>
<div class="ne_lr_img_cont_wrapper">
<div class="ne_lr_star_dev_wrapper hidden-md"> <i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
</div>
<div class="ne_lr_star_right_section hidden-md">
<h4>5.0</h4>
</div>
<div class="ne_lr_img_cont_heading_wrapper">
<h3><a href="#">Velebrity Fashion</a></h3>
<p>NewsX is a Creative and Unique</p>
</div>
</div>
</div>
-->
<% if(xinwenlist!=null){
int i =-1;
for(Iterator iterator = xinwenlist.iterator();iterator.hasNext();){
XinWen _hd = (XinWen)iterator.next();
i++;
%>
<div class="ne_lr_main_section_wrapper">
<div class="ne_lr_img_wrapper">
<img style="width:97px;height:150px;" src="pic/<%=_hd.gettupian() %>" alt="img">
</div>
<div class="ne_lr_img_cont_wrapper">
<div class="ne_lr_img_cont_heading_wrapper">
<h3><a href="home/details.jsp?id=<%=_hd.getId() %>"><%=_hd.gettitle() %></a></h3>
<p><%=_hd.getshijian() %></p>
</div>
</div>
</div>
<%}} %>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--resent news End-->
<!-- prs patner slider End -->
<jsp:include page="${basePath}/home/foot.jsp" flush="true"/>
<!--footer news End-->
<script src="<%=basePath%>home/js/jquery_min.js"></script>
<script src="<%=basePath%>home/js/modernizr.js"></script>
<script src="<%=basePath%>home/js/bootstrap.js"></script>
<script src="<%=basePath%>home/js/venobox.min.js"></script>
<script src="<%=basePath%>home/js/jquery.magnific-popup.js"></script>
<script src="<%=basePath%>home/js/owl.carousel.js"></script>
<script src="<%=basePath%>home/js/jquery.dlmenu.js"></script>
<script src="<%=basePath%>home/js/jquery.sticky.js"></script>
<script src="<%=basePath%>home/js/bit_timer.js"></script>
<script src="<%=basePath%>home/js/weather.js"></script>
<script src="<%=basePath%>home/js/custom.js"></script>
<!--main js file end-->
</body>
</html>