﻿
//大首页的图书分类
function GetChannelShouYe() {
    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetChannelShouYe", null, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(result);
        if (EvalText != "") {
            document.getElementById("DivChannelShouYe").innerHTML = EvalText;
        } else {
            document.getElementById("DivChannelShouYe").innerHTML = "";
        }
    });
}

//公用列表页和内容页的图书分类（不涉及到图书的页面）
function GetChannelLieBiao() {
    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetChannelLieBiao", null, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != "") {
            document.getElementById("DivChannelInfoLieBiao").innerHTML = EvalText;
        } else {
            document.getElementById("DivChannelInfoLieBiao").innerHTML = "";
        }
    });
}



//二级栏目首页的图书分类
function GetChannelInfoShouYeByChannelID(id) {
    var obj = new Object();
    obj.channelID = id;

    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetChannelInfoShouYeByChannelID", obj, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != "") {
            document.getElementById("DivChannelInfoShouYeList").innerHTML = EvalText;
        } else {
            document.getElementById("DivChannelInfoShouYeList").innerHTML = "";
        }
    });
}

//二级栏目列表页和内容页的图书分类
function GetChannelInfoLieBiaoByChannelID(id) {
    var obj = new Object();
    obj.channelID = id;

    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetChannelInfoLieBiaoByChannelID", obj, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != "") {
            document.getElementById("DivChannelInfoLieBiaoList").innerHTML = EvalText;
        } else {
            document.getElementById("DivChannelInfoLieBiaoList").innerHTML = "";
        }
    });
}

//二级栏目首页的新书推荐和重点图书的分类名称
function GetFenLeiXinShuById(id, type) {
    var obj = new Object();
    obj.channelID = id;
    obj.type = type;

    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetFenLeiById", obj, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != "") {
            document.getElementById("XinShuUl").innerHTML = EvalText;
        }
    });
}
function GetFenLeiZhongDianById(id, type) {
    var obj = new Object();
    obj.channelID = id;
    obj.type = type;

    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetFenLeiById", obj, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != "") {
            document.getElementById("ZhongDianUl").innerHTML = EvalText;
        }
    });
}

//按月点击量排名
function GetDianJiLiangInfo() {
    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetDianJiLiangInfo", null, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != ""  && EvalText != null) {
            document.getElementById("divDianJiLiang").innerHTML = EvalText;
        } else {
            document.getElementById("divDianJiLiang").innerHTML = "";
        }
    });
}

//按销售排名
function GetXiaoShouLiangInfo() {
    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetSaleInfo", null, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != ""　&& EvalText != null) {
            document.getElementById("divXiaoShouLiang").innerHTML = EvalText;
        } else {
            document.getElementById("divXiaoShouLiang").innerHTML = "";
        }
    });
}

//二级栏目点击排行榜
function GetClickPaiHangInfo(id) {
    var obj = new Object();
    obj.channelID = id;

    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetClickPaiHangInfo", obj, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != "") {
            document.getElementById("divDianJiPaiHang").innerHTML = EvalText;
        } else {
            document.getElementById("divDianJiPaiHang").innerHTML = "";
        }
    });
}

//二级栏目销售排行榜
function GetXiaoShouPaiHangInfo(id) {
    var obj = new Object();
    obj.channelID = id;

    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetXiaoShouPaiHangInfo", obj, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != "") {
            document.getElementById("divXiaoShouPaiHang").innerHTML = EvalText;
        } else {
            document.getElementById("divXiaoShouPaiHang").innerHTML = "";
        }
    });
}

//Zuo主打
function GetBookInfoZuoZhuDa(id) {
    var obj = new Object();
    obj.channelID = id;

    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetBookInfoXinShuById", obj, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != "") {
            document.getElementById("ZuoUl").innerHTML = EvalText;
        } else {
            document.getElementById("ZuoUl").innerHTML = "";
        }
    });
}
//Zuo分类一
function GetBookInfoZuoFenLei1(id) {
    var obj = new Object();
    obj.channelID = id;

    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetBookInfoXinShuById", obj, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != "") {
            document.getElementById("ZuoFenLeiUl1").innerHTML = EvalText;
        } else {
            document.getElementById("ZuoFenLeiUl1").innerHTML = "";
        }
    });
}
//Zuo分类二
function GetBookInfoZuoFenLei2(id) {
    var obj = new Object();
    obj.channelID = id;

    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetBookInfoXinShuById", obj, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != "") {
            document.getElementById("ZuoFenLeiUl2").innerHTML = EvalText;
        } else {
            document.getElementById("ZuoFenLeiUl2").innerHTML = "";
        }
    });
}
//Zuo分类三
function GetBookInfoZuoFenLei3(id) {
    var obj = new Object();
    obj.channelID = id;

    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetBookInfoXinShuById", obj, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != "") {
            document.getElementById("ZuoFenLeiUl3").innerHTML = EvalText;
        } else {
            document.getElementById("ZuoFenLeiUl3").innerHTML = "";
        }
    });
}
//Zuo分类四
function GetBookInfoZuoFenLei4(id) {
    var obj = new Object();
    obj.channelID = id;

    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetBookInfoXinShuById", obj, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != "") {
            document.getElementById("ZuoFenLeiUl4").innerHTML = EvalText;
        } else {
            document.getElementById("ZuoFenLeiUl4").innerHTML = "";
        }
    });
}


//You主打
function GetBookInfoYouZhuDa(id) {
    var obj = new Object();
    obj.channelID = id;

    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetBookInfoZhongDianById", obj, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != "") {
            document.getElementById("YouUl").innerHTML = EvalText;
        } else {
            document.getElementById("YouUl").innerHTML = "";
        }
    });
}


//You分类一
function GetBookInfoYouFenLei1(id) {
    var obj = new Object();
    obj.channelID = id;

    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetBookInfoZhongDianById", obj, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != "") {
            document.getElementById("YouFenLeiUl1").innerHTML = EvalText;
        } else {
            document.getElementById("YouFenLeiUl1").innerHTML = "";
        }
    });
}
//You分类二
function GetBookInfoYouFenLei2(id) {
    var obj = new Object();
    obj.channelID = id;

    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetBookInfoZhongDianById", obj, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != "") {
            document.getElementById("YouFenLeiUl2").innerHTML = EvalText;
        } else {
            document.getElementById("YouFenLeiUl2").innerHTML = "";
        }
    });
}
//You分类三
function GetBookInfoYouFenLei3(id) {
    var obj = new Object();
    obj.channelID = id;

    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetBookInfoZhongDianById", obj, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != "") {
            document.getElementById("YouFenLeiUl3").innerHTML = EvalText;
        } else {
            document.getElementById("YouFenLeiUl3").innerHTML = "";
        }
    });
}
//You分类四
function GetBookInfoYouFenLei4(id) {
    var obj = new Object();
    obj.channelID = id;

    MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetBookInfoZhongDianById", obj, function() {
        var EvalText = MyAjax.decode(this.responseText);
        //var EvalText = this.responseText;
        //alert(EvalText);
        if (EvalText != "") {
            document.getElementById("YouFenLeiUl4").innerHTML = EvalText;
        } else {
            document.getElementById("YouFenLeiUl4").innerHTML = "";
        }
    });
}

/*
//外语学习列表页和内容页
function GetChannelInfoWaiYuXueXiFenLei() {
MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetChannelInfoWaiYuXueXiFenLei", null, function() {
var EvalText = MyAjax.decode(this.responseText);
//var EvalText = this.responseText;
//alert(EvalText);
if (EvalText != "") {
document.getElementById("DivChannelFenLeiLieBiao").innerHTML = EvalText;
} else {
alert("加载失败！");
}
});
}

//社科经管列表页和内容页
function GetChannelInfoSheKeJingGuanFenLei() {
MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetChannelInfoSheKeJingGuanFenLei", null, function() {
var EvalText = MyAjax.decode(this.responseText);
//var EvalText = this.responseText;
//alert(EvalText);
if (EvalText != "") {
document.getElementById("DivChannelFenLeiLieBiao").innerHTML = EvalText;
} else {
alert("加载失败！");
}
});
}


function GetChannelInfoHangTianLieBiao() {
MyAjax.operator("bohua_pts.InfoSend.Yuhang", "GetChannelInfoHangTianLieBiao", null, function() {
var EvalText = MyAjax.decode(this.responseText);
//var EvalText = this.responseText;
//alert(EvalText);
if (EvalText != "") {
document.getElementById("DivChannelInfoHangTianLieBiao").innerHTML = EvalText;
} else {
alert("加载失败！");
}
});
}

function GetChannelInfoLieBiao(id) {
var obj = new Object();
obj.channelID = id;
//alert(id);
MyAjax.operator("bohua_pts.ShopBLL.ShangChengManage", "GetChannelBookList", obj, function() {
//alert(this.responseText);
var EvalText = MyAjax.decode(this.responseText);
if (EvalText != "") {
document.getElementById("DivChannelInfoLieBiao").innerHTML = EvalText;
} else {
alert("加载失败！");
}
});
}
*/
