<!--
|
功能描述:新闻动态列表
|
-->
|
<!DOCTYPE html>
|
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:layout="http://www.w3.org/1999/xhtml"
|
xmlns:th="http://www.w3.org/1999/xhtml" layout:decorator="MasterPage/New/Layout">
|
<head>
|
<meta charset="utf-8" />
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<title th:text="'新闻动态 - ' + ${systemName}"></title>
|
<link th:href="@{${pubzyWebRoot} + 'media/css/bootstrap-tree.css'}" rel="stylesheet" type="text/css" />
|
<link rel="stylesheet" th:href="@{${pubzyWebRoot} + 'BootStrap4/expand/plugins/portlet/css/portlet.css'}" />
|
<link th:href="@{${pubzyWebRoot} + 'media/css/select2_metro.css'}" type="text/css" rel="stylesheet" />
|
<link th:href="@{${pubzyWebRoot} + 'media/css/pagination.css'}" type="text/css" rel="stylesheet" />
|
<link rel="stylesheet" th:href="@{${pubzyWebRoot} + 'BootStrap4/assets/plugins/bootstrap-datepicker/old_datepaker/datepicker.css'}" />
|
<link th:href="@{${pubzyWebRoot} + 'zTree/css/metroStyle/metroStyle.css'}" rel="stylesheet" type="text/css" />
|
<script th:src="@{${pubzyWebRoot} + 'jqPaginator/jqpaginator.min.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'media/js/tabPages.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'media/js/winPro.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'echarts/echarts.min-3.0.js'}" type="text/javascript"></script>
|
<script th:src="@{${pubzyWebRoot} + 'media/js/select2.min.js'}" type="text/javascript"></script>
|
<script th:src="@{${pubzyWebRoot} + 'zTree/js/jquery.ztree.all.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'zTree/js/jquery.ztree.core.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'zTree/js/jquery.ztree.exedit.js'}"></script>
|
<script th:src="@{${pubzyWebRoot} + 'zTree/js/jquery.ztree.excheck.js'}"></script>
|
<script src="/js/openresource.js"></script>
|
<style type="text/css">
|
.div_left{
|
position: absolute;
|
width:350px;
|
height: 780px;
|
}
|
|
.div_right{
|
margin-left: 360px;
|
height: 100%;
|
}
|
|
.div_catalog{
|
float: left;
|
width:100%;
|
height: 100%;
|
color: #000;
|
border-radius: 6px;
|
padding: 2px;
|
background-color: #fff;
|
}
|
|
/*边框公共样式*/
|
.div_border {
|
box-shadow: 0px 0px 1px 1px #bfbfbf;
|
}
|
|
.div_catalog div{
|
/*width: 100%;*/
|
height: 55px;
|
border-bottom: 1px solid #CFD3D6;
|
cursor:pointer;
|
}
|
|
.div_catalog div:not(:first-child):hover {
|
background-color: #F5F6FA;
|
}
|
|
.div_catalog div:first-child{
|
background-color: #2B85FF;
|
cursor: pointer;
|
border-top-left-radius: 6px;
|
border-top-right-radius: 6px;
|
color: white;
|
}
|
|
.div_catalog div:first-child img {
|
margin-left: 25px;
|
margin-bottom: 5px;
|
}
|
|
.div_catalog div:not(:first-child){
|
margin: 0 3px;
|
}
|
|
.div_catalog div:not(:first-child) img{
|
margin-left: 20px;
|
margin-bottom: 5px;
|
}
|
|
.span_left{
|
/*float: left;*/
|
font-size:17px;
|
line-height:55px;
|
margin-left: 5px;
|
}
|
.span_right{
|
float: right;
|
font-size:14px;
|
line-height: 55px;
|
margin-right: 10px;
|
color: #737373;
|
}
|
.div_search{
|
background-color:white;
|
height: 60px;
|
/*height: 60px;*/
|
/*width: 100%;*/
|
padding: 5px 5px;
|
-webkit-border-radius: 10px;
|
-moz-border-radius: 10px;
|
border-radius: 10px;
|
font-size: 16px !important;
|
/*padding: 18px 0px 0px 27px;*/
|
}
|
.div_main{
|
color:grey;
|
height: 500px;
|
font-size: 16px;
|
}
|
.div_zy{
|
height: 150px;
|
background-color: white;
|
border-radius: 10px;
|
/*box-shadow: 0px 0px 1px 1px #bfbfbf;*/
|
margin-top: 12px;
|
padding: 15px 20px;
|
}
|
|
.sort
|
.shtype{
|
cursor: pointer;
|
padding: 5px 13px;
|
-webkit-border-radius: 5px;
|
-moz-border-radius: 5px;
|
border-radius: 5px;
|
}
|
|
.clickCss {
|
/*color: #EEE683;*/
|
background-color: #F5F6FA !important;
|
}
|
|
.search_title {
|
color: #2B56BF;
|
margin-right: 5px;
|
/*font-size: 17px;*/
|
}
|
|
.search_right {
|
display: inline-block;
|
width: 350px;
|
float: right;
|
border: 1px solid #8DB3E0;
|
border-radius: 6px;
|
margin-top: 0.5px;
|
}
|
|
.search_left {
|
/*display: inline-block;*/
|
float: left;
|
/*width: 582px;*/
|
height: 50px;
|
line-height: 50px;
|
color: grey;
|
margin-left: 15px;
|
}
|
|
.search_left_div {
|
float: left;
|
border: 1px solid #EBEDF9;
|
height: 100%;
|
-webkit-border-radius: 6px;
|
-moz-border-radius: 6px;
|
border-radius: 6px;
|
margin-right: 5px;
|
line-height: 50px;
|
padding: 0 10px;
|
}
|
|
.isactive {
|
color: #fff;
|
background-color: #2B85FF;
|
}
|
|
.isanormal {
|
color: #000;
|
background-color: ;
|
}
|
</style>
|
<script type="text/javascript" th:inline="javascript">
|
var formdata = {};
|
$(function () {
|
typeListJson = [[${TypeListJson}]];
|
$(".div_right").css("width",$("#bts_pagebody").width()-360+"px");
|
$("#div_search").css("width",$(".div_right").width() - 3 +'px');
|
showType();
|
});
|
function showType(){
|
var list = eval(typeListJson);
|
var html = "<div onclick=\"leftChange(this)\" key=\"all\"><img src='/image/Systeminfo/First_icon.png' /><span class=\"span_left\">新闻动态</span></div>";
|
for(var i =0;i<list.length;i++){
|
html+="<div onclick=\"leftChange(this)\" key='"+list[i].key+"'>"
|
+"<img src='/image/PubNews/"+list[i].key+".png' />"
|
+"<span class='span_left'>"+list[i].value
|
+"</span><span class='span_right'>条</span><span style='font-size: 17px;float: right;line-height: 55px;'>" + list[i].zycount + "</span></div>";
|
}
|
$(".div_catalog").html(html);
|
}
|
function changepage(num) {
|
var url = 'newZiXunDataList?page=' + num;
|
$("#block").load(url, formdata, function () { //加载图文列表
|
var Page = Number(document.getElementById("curren").value);
|
var Count = Number(document.getElementById("total").value);
|
if (Count != 0) {
|
$('#Paginator').jqPaginator({
|
totalCounts: Count,
|
pageSize: 8,
|
currentPage: Page,
|
first: '<li class="first"><a href="javascript:void(0);">首页</a></li>',
|
prev: '<li class="prev"><a href="javascript:void(0);">上一页</a></li>',
|
next: '<li class="next"><a href="javascript:void(0);">下一页</a></li>',
|
last: '<li class="last"><a href="javascript:void(0);">末页</a></li>',
|
page: '<li class="page"><a href="javascript:void(0);">{{page}}</a></li>',
|
onPageChange: function (num) {
|
if (num != Page) {
|
changepage(num);
|
}
|
}
|
});
|
}
|
});
|
}
|
//左边类型切换
|
function leftChange(obj){
|
$(".div_catalog div:not(:first-child)").each(function () {
|
if($(this).attr("key") == $(obj).attr("key")){
|
$(this).attr("isselect",true);
|
$(this).addClass("clickCss");
|
}else {
|
$(this).attr("isselect",false);
|
$(this).removeClass("clickCss");
|
}
|
})
|
Search();
|
}
|
</script>
|
<script>
|
//查询事件
|
function Search() {
|
var thissystype = "";
|
$(".div_catalog div").each(function () {
|
if($(this).attr("isselect") == "true" || $(this).attr("isselect") == true){
|
thissystype = $(this).attr("key");
|
}
|
})
|
formdata = {
|
title:$("#title").val(),
|
type:thissystype
|
};
|
$("#block").load('newZiXunDataList', formdata, function () {
|
var Page =Number(document.getElementById("curren").value);
|
var Count =Number(document.getElementById("total").value);
|
if(Count != 0) {
|
$('#Paginator').jqPaginator({
|
totalCounts: Count,
|
pageSize: 8,
|
currentPage: Page,
|
first: '<li class="first"><a href="javascript:void(0);">首页</a></li>',
|
prev: '<li class="prev"><a href="javascript:void(0);">上一页</a></li>',
|
next: '<li class="next"><a href="javascript:void(0);">下一页</a></li>',
|
last: '<li class="last"><a href="javascript:void(0);">末页</a></li>',
|
page: '<li class="page"><a href="javascript:void(0);">{{page}}</a></li>',
|
onPageChange: function (num) {
|
if(num!=Page){
|
changepage(num);
|
}
|
}
|
});
|
}
|
});
|
}
|
$(function(){
|
var url ='newZiXunDataList?page='+1;
|
formdata = {
|
sort:'pubdate'
|
};
|
$("#block").load(url, formdata, function () { //加载图文列表
|
var Page =Number(document.getElementById("curren").value);
|
var Count =Number(document.getElementById("total").value);
|
if(Count != 0) {
|
$('#Paginator').jqPaginator({
|
totalCounts: Count,
|
pageSize: 8,
|
currentPage: Page,
|
first: '<li class="first"><a href="javascript:void(0);">首页</a></li>',
|
prev: '<li class="prev"><a href="javascript:void(0);">上一页</a></li>',
|
next: '<li class="next"><a href="javascript:void(0);">下一页</a></li>',
|
last: '<li class="last"><a href="javascript:void(0);">末页</a></li>',
|
page: '<li class="page"><a href="javascript:void(0);">{{page}}</a></li>',
|
onPageChange: function (num) {
|
if(num!=Page){
|
changepage(num);
|
}
|
}
|
});
|
}
|
});
|
})
|
function changepage(num) {
|
var url ='newZiXunDataList?page='+num;
|
$("#block").load(url, formdata, function () { //加载图文列表
|
var Page =Number(document.getElementById("curren").value);
|
var Count =Number(document.getElementById("total").value);
|
if(Count != 0) {
|
$('#Paginator').jqPaginator({
|
totalCounts: Count,
|
pageSize: 8,
|
currentPage: Page,
|
first: '<li class="first"><a href="javascript:void(0);">首页</a></li>',
|
prev: '<li class="prev"><a href="javascript:void(0);">上一页</a></li>',
|
next: '<li class="next"><a href="javascript:void(0);">下一页</a></li>',
|
last: '<li class="last"><a href="javascript:void(0);">末页</a></li>',
|
page: '<li class="page"><a href="javascript:void(0);">{{page}}</a></li>',
|
onPageChange: function (num) {
|
if(num!=Page){
|
changepage(num);
|
}
|
}
|
});
|
}
|
});
|
}
|
</script>
|
</head>
|
<body>
|
<div layout:fragment="content">
|
<input type="hidden" id="resourceclass" />
|
<div class="content-page" style="min-height: 0px !important;margin-left: 0px !important;padding: 5px 0;min-height: 800px !important;">
|
<div class="div_left">
|
<div class="div_catalog div_border">
|
</div>
|
</div>
|
<div class="div_right">
|
<div id="div_search" class="div_search div_border">
|
<div class="search_left">
|
<span>资讯数量:<span id="countNum"></span>条</span>
|
</div>
|
<div class="search_right">
|
<input type="text" id="title" name="title" value="" style="height: 46px;border: none; font-size: 15px;color: #000;font-weight: 600;width: 81%;display: inline-block;" class="form-control col-sm-12" placeholder="请输入关键字" />
|
<img style="float: right;cursor: pointer;" onclick="Search()" src="/image/Systeminfo/search.png" />
|
</div>
|
|
</div>
|
|
<!--<div class="row" style="float: left;width: 100%;">-->
|
<!--<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 col-xl-12 DivHeight" style="height:40px;padding-right: 20px;">-->
|
<!--<div class="control-group control-group col-xl-8 DivHeight">-->
|
<!--<div class="controls input-icon">-->
|
<!--<div style="float: left;width: 70%;">-->
|
<!--<input type="text" id="title" name="title" value="" style="height: 36px;" class="form-control col-sm-12" placeholder="请输入关键字" />-->
|
<!--</div>-->
|
<!--<div onclick="Search()" class="col-sm-1" style="cursor: pointer;height: 36px; text-align: center;border-radius: 4px; font-size: 20px; border-left:1px solid rgb(221, 221, 221); float: left;margin-left: 5px; background-color: #0B92D4;">-->
|
<!--<i class="fa fa-search" style="color: #fff;"></i>-->
|
<!--</div>-->
|
<!--</div>-->
|
<!--</div>-->
|
<!--<div style="text-align: right; line-height: 35px;">-->
|
<!--<span style="font-weight: bold;">资讯数量: <span id="countNum" style="color: red; font-size: 16px;"></span> 条</span>-->
|
<!--</div>-->
|
<!--</div>-->
|
<!--</div>-->
|
|
<div class="div_main" id="block">
|
</div>
|
</div>
|
<div id="grid" style="display: none"></div>
|
</div>
|
</div>
|
</div>
|
</body>
|
</html>
|