");
gotopagebar.bind("click",function()
{
var topagenum = jQuery("#u9_gotopage").val();
if(topagenum<=0)
{
topagenum=1;
}else if(topagenum>totlepage)
{
topagenum = totlepage;
}
_this._getData(topagenum);
}
);
pagebar_td.append(pagebar_pre).append(pagebar_indexpage).append(pagebar_prepage).append(pagebar_nextpage).append(pagebar_lastpage).append(gotopagebar).append(gotopageinput).append(topageval);
pagebar_td.attr("align",'center');
pagebar_tr.append(pagebar_td);
return pagebar_tr;
}
//具体查询数据的方法
_this._getData = function(cp)
{
_this.curpage = cp;
jQuery("#a_u9_table").empty();
_this._getResult();
}
//具体的查询和构建查询结果,中间要显示内容的地方
_this._getResult = function()
{
var ajaxurl = "/system/resource/js/tagnews/dynpullnews1.jsp";
jQuery.post(ajaxurl,
{tid:'1191',owner:'1726036883',treeid:'1494',viewid:'1089504',mode:'10',
orderField:'wbdate',orderby:'desc',locale:'zh_CN',
showorder:'',pageUrl:'/info/contenttag/1191.htm',uniqueId:'u9',
PAGENUM:_this.curpage,actionmethod:'getnewslist',screenCode:'pc'},
function(data){
_this.dataloadComplete(data);
},
"json"
);
}
//数据加载
_this.dataloadComplete = function(data)
{
if(data&&data.length>0)
{
var totlecount = 0;
var totlepage = 0;
var img = '';
var video = '';
var attach = '';
var isshowimg = false;
var showimgalign = 'left';
var isshowvideo = false;
var showvideoalign = 'left';
var isshowattach = false;
var showattachalign = 'left';
var duannum = parseInt('5');
var duanimg = '';
for(var i=0;i
");
var titile_td = jQuery("");
var leadertd =jQuery("");
leadertd.addClass("leaderfont1089504");
var columnstr = jQuery(notice_val.columnstr);
notice_tr.append(leadertd);
notice_tr.append(titile_td);
titile_td.append(columnstr);
if(isshowimg&&showimgalign=="left"&&(wbishaveimg==1))
{
var imgspan = jQuery(""+img+"");
titile_td.append(imgspan);
}
if(isshowvideo&&showvideoalign=="left"&&(wbishavevideo==1))
{
var videospan = jQuery(""+video+"");
titile_td.append(videospan);
}
if(isshowattach&&showattachalign=="left"&&(wbhasattach==1))
{
var attachspan = jQuery(""+attach+"");
titile_td.append(attachspan);
}
var link_c = jQuery("");
titile_td.append(link_c);
var link_d = jQuery("");
titile_td.append(link_d);
var link_a = jQuery("");
link_a.attr("href",notice_val.linkurl);
titile_td.append(link_a);
if(_this.clickshow)
{
var clicktimespan = jQuery("");
clicktimespan.html("("+_this.clickname+" "+notice_val.clickTimes+")");
clicktimespan.addClass(_this.clickstyle);
link_a.append(clicktimespan);
}
// notice_val.wbname
if(isshowimg&&showimgalign=="right"&&(wbishaveimg==1))
{
var imgspan = jQuery("");
titile_td.append(imgspan);
}
var link_e = jQuery("");
titile_td.append(link_e);
if(isshowvideo&&showvideoalign=="right"&&(wbishavevideo==1))
{
var videospan = jQuery(""+video+"");
titile_td.append(videospan);
}
if(isshowattach&&showattachalign=="right"&&(wbhasattach==1))
{
var attachspan = jQuery(""+attach+"");
titile_td.append(attachspan);
}
var link_b = jQuery(""+notice_val.wbname+"
");
titile_td.append(link_b);
var time_td = jQuery("");
var time_span = jQuery("")
time_span.html(notice_val.timestr);
time_span.addClass("timestyle1089504");
time_td.append(time_span);
notice_tr.append(time_td);
var endimg_td = jQuery("");
notice_tr.append(endimg_td);
_this.t_body.append(notice_tr);
var lineimg = '';
if(lineimg!=null&&lineimg!='')
{
var lineimgheight = 1;
var line_tr = jQuery("")
_this.t_body.append(line_tr);
}
if(duannum!=0&&(i+1)%duannum==0&&(data.length-1)>1&&(i+1)!=data.length)
{
var duantr = jQuery("");
var duantd = jQuery("");
if(duanimg!=null&&duanimg!="")
{
var duan_img = jQuery("
");
duantd.append(duan_img);
}else
{
var duan_hr = jQuery("
");
duantd.append(duan_hr);
}
duantr.append(duantd);
_this.t_body.append(duantr);
}
}
//if(parseInt(totlecount)%pagenum==0)
//{
//totlepage = (parseInt(totlecount)/pagenum);
//}else
//{
//totlepage = parseInt((parseInt(totlecount)/pagenum))+1;
//}
var page_bar = _this._getListHead(totlecount,totlepage,_this.pagenum);
_this.t_body.append(page_bar);
}else
{
_this.t_body.append("
没有记录
")
}
}
}
jQuery(document).ready(function(){
//系统加载完毕默认取第一页的数据
var pagelist = new u9pagelist();
pagelist._getData(1);
});