'; } $("#imgPer").html(htmlPer); $("#imgDiv").html(html); }else{ alert(data.resultInfo); } } }); } var setting = { data: { simpleData: { enable: true } } }; var zNodes = [{ id:'1', pId:'0', name:'車床主軸箱箱體左側8m8螺紋攻絲機設計畢業(yè)設計.zip', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001', pId:'1', name:'車床主軸箱箱體左側8-M8螺紋攻絲機設計畢業(yè)設計 (包含13個文件)', },{ id:'0000100001', pId:'00001', name:'0331204.doc (34KB)', click:'getBookinfo(8257040)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100002', pId:'00001', name:'PLC控制圖.dwg (46KB)', click:'getBookinfo(8257041)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100003', pId:'00001', name:'丁飛.doc (42KB)', click:'getBookinfo(8257042)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100004', pId:'00001', name:'任務書.doc (305KB)', click:'getBookinfo(8257043)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100005', pId:'00001', name:'多軸箱裝配圖.dwg (125KB)', click:'getBookinfo(8257044)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100006', pId:'00001', name:'封面.doc (24KB)', click:'getBookinfo(8257045)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100007', pId:'00001', name:'摘要.doc (47KB)', click:'getBookinfo(8257046)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100008', pId:'00001', name:'攻絲加工示意圖.dwg (100KB)', click:'getBookinfo(8257047)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100009', pId:'00001', name:'機床聯(lián)系尺寸圖.dwg (70KB)', click:'getBookinfo(8257048)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100010', pId:'00001', name:'正文.doc (1432KB)', click:'getBookinfo(8257049)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100011', pId:'00001', name:'液壓系統(tǒng)原理圖.dwg (31KB)', click:'getBookinfo(8257050)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100012', pId:'00001', name:'組合夾具.dwg (61KB)', click:'getBookinfo(8257051)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100013', pId:'00001', name:'被加工零件工序圖.dwg (77KB)', click:'getBookinfo(8257052)', icon:'/Images/filetype/DOC16.PNG'}]; var zNodes2 = [{ id:'1', pId:'0', name:'車床主軸箱箱體左側8m8螺紋攻絲機設計畢業(yè)設計.zip', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'0000100001', pId:'00001', name:'0331204.doc',url:'http://m.facezit.com/p-8257040.html', target:'_blank' },{ id:'0000100002', pId:'00001', name:'PLC控制圖.dwg',url:'http://m.facezit.com/p-8257041.html', target:'_blank' },{ id:'0000100003', pId:'00001', name:'丁飛.doc',url:'http://m.facezit.com/p-8257042.html', target:'_blank' },{ id:'0000100004', pId:'00001', name:'任務書.doc',url:'http://m.facezit.com/p-8257043.html', target:'_blank' },{ id:'0000100005', pId:'00001', name:'多軸箱裝配圖.dwg',url:'http://m.facezit.com/p-8257044.html', target:'_blank' },{ id:'0000100006', pId:'00001', name:'封面.doc',url:'http://m.facezit.com/p-8257045.html', target:'_blank' },{ id:'0000100007', pId:'00001', name:'摘要.doc',url:'http://m.facezit.com/p-8257046.html', target:'_blank' },{ id:'0000100008', pId:'00001', name:'攻絲加工示意圖.dwg',url:'http://m.facezit.com/p-8257047.html', target:'_blank' },{ id:'0000100009', pId:'00001', name:'機床聯(lián)系尺寸圖.dwg',url:'http://m.facezit.com/p-8257048.html', target:'_blank' },{ id:'0000100010', pId:'00001', name:'正文.doc',url:'http://m.facezit.com/p-8257049.html', target:'_blank' },{ id:'0000100011', pId:'00001', name:'液壓系統(tǒng)原理圖.dwg',url:'http://m.facezit.com/p-8257050.html', target:'_blank' },{ id:'0000100012', pId:'00001', name:'組合夾具.dwg',url:'http://m.facezit.com/p-8257051.html', target:'_blank' },{ id:'0000100013', pId:'00001', name:'被加工零件工序圖.dwg',url:'http://m.facezit.com/p-8257052.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 = '6335614'; 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; }); });