'; } $("#imgPer").html(htmlPer); $("#imgDiv").html(html); }else{ alert(data.resultInfo); } } }); } var setting = { data: { simpleData: { enable: true } } }; var zNodes = [{ id:'1', pId:'0', name:'6958二級同軸式減速器設(shè)計【課程】.rar', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001', pId:'1', name:'6958-二級同軸式減速器設(shè)計【課程】 (包含11個文件)', },{ id:'0000100001', pId:'00001', name:'1.jpg (176KB)', click:'getBookinfo(8253732)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100002', pId:'00001', name:'2.jpg (193KB)', click:'getBookinfo(8253733)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100003', pId:'00001', name:'3.jpg (352KB)', click:'getBookinfo(8253734)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100004', pId:'00001', name:'4.jpg (195KB)', click:'getBookinfo(8253735)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100005', pId:'00001', name:'5.jpg (308KB)', click:'getBookinfo(8253736)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100006', pId:'00001', name:'6958-二級同軸式減速器設(shè)計【課程】.doc (1630KB)', click:'getBookinfo(8253737)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100007', pId:'00001', name:'F4D0E5AE4A3543B100ABA64D4A40D21D.png (94KB)', click:'getBookinfo(8253738)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100008', pId:'00001', name:'斜齒輪.dwg (85KB)', click:'getBookinfo(8253739)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100009', pId:'00001', name:'裝配圖.dwg (234KB)', click:'getBookinfo(8253740)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100010', pId:'00001', name:'設(shè)計原始參數(shù).txt (0KB)', click:'getBookinfo(8253741)', icon:'/Images/filetype/TXT16.PNG'},{ id:'0000100011', pId:'00001', name:'輸出軸.dwg (81KB)', click:'getBookinfo(8253742)', icon:'/Images/filetype/DOC16.PNG'}]; var zNodes2 = [{ id:'1', pId:'0', name:'6958二級同軸式減速器設(shè)計【課程】.rar', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'0000100001', pId:'00001', name:'1.jpg',url:'http://m.facezit.com/p-8253732.html', target:'_blank' },{ id:'0000100002', pId:'00001', name:'2.jpg',url:'http://m.facezit.com/p-8253733.html', target:'_blank' },{ id:'0000100003', pId:'00001', name:'3.jpg',url:'http://m.facezit.com/p-8253734.html', target:'_blank' },{ id:'0000100004', pId:'00001', name:'4.jpg',url:'http://m.facezit.com/p-8253735.html', target:'_blank' },{ id:'0000100005', pId:'00001', name:'5.jpg',url:'http://m.facezit.com/p-8253736.html', target:'_blank' },{ id:'0000100006', pId:'00001', name:'6958-二級同軸式減速器設(shè)計【課程】.doc',url:'http://m.facezit.com/p-8253737.html', target:'_blank' },{ id:'0000100007', pId:'00001', name:'F4D0E5AE4A3543B100ABA64D4A40D21D.png',url:'http://m.facezit.com/p-8253738.html', target:'_blank' },{ id:'0000100008', pId:'00001', name:'斜齒輪.dwg',url:'http://m.facezit.com/p-8253739.html', target:'_blank' },{ id:'0000100009', pId:'00001', name:'裝配圖.dwg',url:'http://m.facezit.com/p-8253740.html', target:'_blank' },{ id:'0000100010', pId:'00001', name:'設(shè)計原始參數(shù).txt',url:'http://m.facezit.com/p-8253741.html', target:'_blank' },{ id:'0000100011', pId:'00001', name:'輸出軸.dwg',url:'http://m.facezit.com/p-8253742.html', target:'_blank' }]; $(document).ready(function(){ if(JSON.stringify(zNodes)=="{}") { $("#ysyl").hide(); }else { $.fn.zTree.init($("#treeDemo"), setting, zNodes); $.fn.zTree.init($("#treeDemo2"), setting, zNodes2); } }); $(function() { $("#jubao input[type='radio']").click(function() { $("#hidTypeID").val($(this).val()); }); }); function jubao() { var userid = '0'; if (userid != "" && userid != undefined && userid != "0") { $("#jubao").show(); } else { alert("請登錄!");window.location.href='login.aspx'; } } function saveJuBao() { var bookid = '6332851'; var type = $("#hidTypeID").val(); if (type != "" && type != undefined && bookid != "" && bookid != undefined) { $.ajax({ type: "post", url: "View.aspx/JuBao", data: "{bookid: '" + bookid + "', type: '" + type + "' }", contentType: "application/json; charset=utf-8", dataType: "json", success: function(data) { $("#jubao").hide(); $("#jubaoResponse").show(); if (data.d != "0") { $("#jubaoResponse h4").html("您的舉報提交成功"); } else { $("#jubaoResponse h4").html("您的舉報提交失敗"); } } }); } else { alert("請選擇投訴類型或者數(shù)據(jù)錯誤請刷新重試!"); } } $(function(){ $(document).bind("contextmenu",function(e){ return false; }); });