'; } $("#imgPer").html(htmlPer); $("#imgDiv").html(html); }else{ alert(data.resultInfo); } } }); } var setting = { data: { simpleData: { enable: true } } }; var zNodes = [{ id:'1', pId:'0', name:'單缸空氣壓縮機.zip', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001', pId:'1', name:'1 cyl air compressor 3hp (包含59個文件)', },{ id:'0000100001', pId:'00001', name:'.75 NIPPLE.SLDPRT (123KB)', },{ id:'0000100002', pId:'00001', name:'.75 VLAVE.SLDPRT (1272KB)', },{ id:'0000100003', pId:'00001', name:'075inSchedule40.sldprt (324KB)', },{ id:'0000100004', pId:'00001', name:'1.5-.75 reduser.SLDPRT (454KB)', },{ id:'0000100005', pId:'00001', name:'2 inch nipple.SLDPRT (503KB)', },{ id:'0000100006', pId:'00001', name:'2-1.5 inch nipple.SLDPRT (493KB)', },{ id:'0000100007', pId:'00001', name:'240mm belt.sldprt (119KB)', },{ id:'0000100008', pId:'00001', name:'AIR COMPRESSOR ISO.JPG (366KB)', click:'getBookinfo(8504527)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100009', pId:'00001', name:'air filter.SLDPRT (376KB)', },{ id:'0000100010', pId:'00001', name:'back.JPG (697KB)', click:'getBookinfo(8504528)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100011', pId:'00001', name:'base ass.SLDPRT (428KB)', },{ id:'0000100012', pId:'00001', name:'bearing 3inch.SLDPRT (483KB)', },{ id:'0000100013', pId:'00001', name:'belt guard.SLDPRT (569KB)', },{ id:'0000100014', pId:'00001', name:'body.SLDPRT (497KB)', },{ id:'0000100015', pId:'00001', name:'bolt.SLDPRT (137KB)', },{ id:'0000100016', pId:'00001', name:'Box cover.SLDPRT (1261KB)', },{ id:'0000100017', pId:'00001', name:'case cap.SLDPRT (199KB)', },{ id:'0000100018', pId:'00001', name:'compressor assembly.SLDASM (7402KB)', },{ id:'0000100019', pId:'00001', name:'connecting rod.SLDPRT (342KB)', },{ id:'0000100020', pId:'00001', name:'cover screw.SLDPRT (118KB)', },{ id:'0000100021', pId:'00001', name:'cover.SLDPRT (603KB)', },{ id:'0000100022', pId:'00001', name:'crank case.SLDPRT (751KB)', },{ id:'0000100023', pId:'00001', name:'crank shaft.SLDPRT (286KB)', },{ id:'0000100024', pId:'00001', name:'cylinder.SLDPRT (466KB)', },{ id:'0000100025', pId:'00001', name:'drain bolt.SLDPRT (129KB)', },{ id:'0000100026', pId:'00001', name:'fan cover.SLDPRT (2102KB)', },{ id:'0000100027', pId:'00001', name:'fan key.SLDPRT (91KB)', },{ id:'0000100028', pId:'00001', name:'fan.SLDPRT (259KB)', },{ id:'0000100029', pId:'00001', name:'front.JPG (740KB)', click:'getBookinfo(8504529)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100030', pId:'00001', name:'gauge.SLDPRT (1451KB)', },{ id:'0000100031', pId:'00001', name:'head.SLDPRT (1516KB)', },{ id:'0000100032', pId:'00001', name:'I bolt.SLDPRT (201KB)', },{ id:'0000100033', pId:'00001', name:'level indicator.SLDPRT (178KB)', },{ id:'0000100034', pId:'00001', name:'motor asm.SLDASM (1624KB)', },{ id:'0000100035', pId:'00001', name:'mt cap.SLDPRT (286KB)', },{ id:'0000100036', pId:'00001', name:'NRV.SLDPRT (464KB)', },{ id:'0000100037', pId:'00001', name:'oil inlet.SLDPRT (217KB)', },{ id:'0000100038', pId:'00001', name:'Part1.sldprt (675KB)', },{ id:'0000100039', pId:'00001', name:'piston pin.SLDPRT (148KB)', },{ id:'0000100040', pId:'00001', name:'piston.SLDPRT (212KB)', },{ id:'0000100041', pId:'00001', name:'ps part 1.SLDPRT (448KB)', },{ id:'0000100042', pId:'00001', name:'pully&fan.SLDPRT (907KB)', },{ id:'0000100043', pId:'00001', name:'pully.SLDPRT (197KB)', },{ id:'0000100044', pId:'00001', name:'pump ass.SLDASM (2005KB)', },{ id:'0000100045', pId:'00001', name:'reciver tank.SLDPRT (923KB)', },{ id:'0000100046', pId:'00001', name:'rotor.SLDPRT (296KB)', },{ id:'0000100047', pId:'00001', name:'safety valve.SLDPRT (435KB)', },{ id:'0000100048', pId:'00001', name:'screw 2.SLDPRT (105KB)', },{ id:'0000100049', pId:'00001', name:'starter ass.SLDASM (285KB)', },{ id:'0000100050', pId:'00001', name:'stator.SLDPRT (2931KB)', },{ id:'0000100051', pId:'00001', name:'str cover.SLDPRT (470KB)', },{ id:'0000100052', pId:'00001', name:'switch ass.SLDASM (313KB)', },{ id:'0000100053', pId:'00001', name:'Tube-750X020.sldprt (443KB)', },{ id:'0000100054', pId:'00001', name:'Tube_10-compressor assembly.sldasm (796KB)', },{ id:'0000100055', pId:'00001', name:'Tube_4-compressor assembly.sldasm (249KB)', },{ id:'0000100056', pId:'00001', name:'tubing.sldprt (161KB)', },{ id:'0000100057', pId:'00001', name:'~$2-1.5 inch nipple.SLDPRT (0KB)', },{ id:'0000100058', pId:'00001', name:'~$air hose.SLDPRT (0KB)', },{ id:'0000100059', pId:'00001', name:'~$tubing.sldprt (0KB)', }]; var zNodes2 = [{ id:'1', pId:'0', name:'單缸空氣壓縮機.zip', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'0000100008', pId:'00001', name:'AIR COMPRESSOR ISO.JPG',url:'http://m.facezit.com/p-8504527.html', target:'_blank' },{ id:'0000100010', pId:'00001', name:'back.JPG',url:'http://m.facezit.com/p-8504528.html', target:'_blank' },{ id:'0000100029', pId:'00001', name:'front.JPG',url:'http://m.facezit.com/p-8504529.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 = '7258241'; 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; }); });