'; } $("#imgPer").html(htmlPer); $("#imgDiv").html(html); }else{ alert(data.resultInfo); } } }); } var setting = { data: { simpleData: { enable: true } } }; var zNodes = [{ id:'1', pId:'0', name:'134hplaserjet1020打印機(jī)紙盒蓋注塑模具設(shè)計.rar', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001', pId:'1', name:'134-HPLaserjet1020打印機(jī)紙盒蓋注塑模具設(shè)計 (包含26個文件)', },{ id:'0000100001', pId:'00001', name:'三維 (包含22個文件)', },{ id:'000010000100001', pId:'0000100001', name:'asm0001.asm.11 (332KB)', },{ id:'000010000100002', pId:'0000100001', name:'daotao2.prt.2 (120KB)', },{ id:'000010000100003', pId:'0000100001', name:'diankuai.prt.5 (65KB)', },{ id:'000010000100004', pId:'0000100001', name:'dingmoban.prt.4 (146KB)', },{ id:'000010000100005', pId:'0000100001', name:'dingweihuan.prt.1 (134KB)', },{ id:'000010000100006', pId:'0000100001', name:'dongmodiban.prt.6 (199KB)', },{ id:'000010000100007', pId:'0000100001', name:'fuweigan.prt.2 (57KB)', },{ id:'000010000100008', pId:'0000100001', name:'gb70.prt.4 (250KB)', },{ id:'000010000100009', pId:'0000100001', name:'jiaozui.prt.2 (138KB)', },{ id:'000010000100010', pId:'0000100001', name:'laliaogan.prt.2 (78KB)', },{ id:'000010000100011', pId:'0000100001', name:'mold_guidebush001.prt.2 (249KB)', },{ id:'000010000100012', pId:'0000100001', name:'mold_leaderpin002.prt.1 (315KB)', },{ id:'000010000100013', pId:'0000100001', name:'shangmo.prt.10 (578KB)', },{ id:'000010000100014', pId:'0000100001', name:'shuiguanjietou.prt.1 (125KB)', },{ id:'000010000100015', pId:'0000100001', name:'suojinkuai0.prt.3 (64KB)', },{ id:'000010000100016', pId:'0000100001', name:'tuibandaozhu0.prt.3 (204KB)', },{ id:'000010000100017', pId:'0000100001', name:'tuigan0.prt.5 (55KB)', },{ id:'000010000100018', pId:'0000100001', name:'tuiganban.prt.7 (168KB)', },{ id:'000010000100019', pId:'0000100001', name:'tuigangudingban.prt.6 (251KB)', },{ id:'000010000100020', pId:'0000100001', name:'xiamo.prt.9 (457KB)', },{ id:'000010000100021', pId:'0000100001', name:'xiedaozhu0.prt.3 (67KB)', },{ id:'000010000100022', pId:'0000100001', name:'xiehuakuai.prt.5 (238KB)', },{ id:'0000100002', pId:'00001', name:'HP打印機(jī)托盤注塑模具設(shè)計說明書.doc (1889KB)', click:'getBookinfo(8389907)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100003', pId:'00001', name:'shanggai1.stp (108KB)', },{ id:'0000100004', pId:'00001', name:'模具零件圖匯總.dwg (805KB)', click:'getBookinfo(8389908)', icon:'/Images/filetype/DOC16.PNG'}]; var zNodes2 = [{ id:'1', pId:'0', name:'134hplaserjet1020打印機(jī)紙盒蓋注塑模具設(shè)計.rar', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'0000100002', pId:'00001', name:'HP打印機(jī)托盤注塑模具設(shè)計說明書.doc',url:'http://facezit.com/p-8389907.html', target:'_blank' },{ id:'0000100004', pId:'00001', name:'模具零件圖匯總.dwg',url:'http://facezit.com/p-8389908.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 = '7245730'; 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; }); });