日期:2014-05-16 浏览次数:20381 次
$(".page").live('click', function () {
var choose = $("#choose").val();
var glbt = $("#glbt").val();
var fbrq = $("#fbrq").val();
getPagesData($(this).attr("pns"), choose, glbt, fbrq);
});
$("#buts").live('click', function () {
var choose = $("#choose").val();
var glbt = $("#glbt").val();
var fbrq = $("#fbrq").val();
var fenyes = $("#fenyes").val();
getPagesData(fenyes, choose, glbt, fbrq);
});
$(".button5").live('click', function () {
getPagesData(1);
});
function getPagesData(pns, choose, glbt, fbrq) {
$.post("magazineGonglue", {pageNumbers: pns, choose: choose, glbt: glbt, fbrq: fbrq}, function (data) {
var html = $("#tbodys");
// alert(data['pagenumber']);
var currentPageNumber = data['pagenumbers'];
html.empty();
$.each(data.data, function (name, value) {
var glbt;
var glgs;
var mc = "视频";
var gid = value['GID'];
var gs = value['GS'];
var bt = value['BT'];
var spdz = value['SPDZ'];
glbt = bt.substring(0, 13);
glgs = gs.substring(0, 18);
var opt = $("<tr></tr>").appendTo(html);
opt.addClass("even");
if ($.trim(data) == "1") {
opt.append("<td style='display: none'>" + "<a name='gid'>"+ gid +"</a>"+ "</td>" +
"<td style='text