jquery的导航页面九(nodeDocPage.jsp续)
// 显示文档区内容
function showDocs(node, data, pageIndexReset) {
var curLevel=parseInt($(node).attr("level"));
var doc_total = data.doc_total;
if ((curLevel > 1 || (curLevel >= 1 && $("#itemId0").val() == "29-44"))
&& doc_total > 0) {
docRow = doc_total;
var curPageDocs = data.curPageDocs;
// var viewsingledocUrl="/support/pages/kbcenter/view/product.do?actionFlag=detailProductSimple&web_doc_id=";
var viewsingledocUrl="";
var downloadUrl = "/support/pages/kbcenter/view/product.do?actionFlag=downloadDocument&web_doc_id=";
var viewUrl = "/support/pages/kbcenter/view/product.do?actionFlag=readHedexUrl&web_doc_id=";
$("#navi_corn_middle_div").text($(node).text());
pageListFun(node, doc_total, pageIndexReset);
$("#allcheck").click(allCheck);
$("#allcheck").attr("checked", false);
$("#product_doc_table_body").html("");
var viewImg = "<img src='/support/images/NavigationBar/view.gif'/>";
var downloadImg = "<img src='/support/images/NavigationBar/download_doc.gif'/>";
if (curPageDocs == null || curPageDocs.length == 0) {
return false;
}
for(var i=0;i<curPageDocs.length;i++) {
var lastUpdate = " ";
if (curPageDocs[i].LAST_UPDATE_TIME != null && curPageDocs[i].LAST_UPDATE_TIME.length >= 10) {
lastUpdate = (curPageDocs[i].LAST_UPDATE_TIME).substring(0,10);
}
var docType = curPageDocs[i].MATERIAL_TYPE;
var needUnzip = curPageDocs[i].NEED_UNZIP;
//文档类型为:产品文档,且是解包状态
if(docType=="ProductManual" && needUnzip=="0"){
viewsingledocUrl = "/support/pages/kbcenter/view/product.do?actionFlag=searchManualTableOf