'; } $("#imgPer").html(htmlPer); $("#imgDiv").html(html); }else{ alert(data.resultInfo); } } }); } var setting = { data: { simpleData: { enable: true } } }; var zNodes = [{ id:'1', pId:'0', name:'閘閥球閥dn125.zip', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001', pId:'1', name:'閘閥 球閥 DN125 (包含25個文件)', },{ id:'0000100001', pId:'00001', name:'11.png (244KB)', click:'getBookinfo(8579006)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100002', pId:'00001', name:'12.bip (6750KB)', },{ id:'0000100003', pId:'00001', name:'22.png (193KB)', click:'getBookinfo(8579007)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100004', pId:'00001', name:'bridge.SLDPRT (306KB)', },{ id:'0000100005', pId:'00001', name:'bush.SLDPRT (86KB)', },{ id:'0000100006', pId:'00001', name:'coller.SLDPRT (76KB)', },{ id:'0000100007', pId:'00001', name:'cover.SLDPRT (126KB)', },{ id:'0000100008', pId:'00001', name:'gland.SLDPRT (81KB)', },{ id:'0000100009', pId:'00001', name:'handel wheel.SLDPRT (332KB)', },{ id:'0000100010', pId:'00001', name:'pin.SLDPRT (86KB)', },{ id:'0000100011', pId:'00001', name:'spindie.SLDPRT (332KB)', },{ id:'0000100012', pId:'00001', name:'stud.SLDPRT (65KB)', },{ id:'0000100013', pId:'00001', name:'stud12.SLDPRT (52KB)', },{ id:'0000100014', pId:'00001', name:'stude 20.SLDPRT (95KB)', },{ id:'0000100015', pId:'00001', name:'untitled.14.jpg (146KB)', click:'getBookinfo(8579008)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100016', pId:'00001', name:'untitled.16.jpg (137KB)', click:'getBookinfo(8579009)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100017', pId:'00001', name:'v filler.SLDPRT (61KB)', },{ id:'0000100018', pId:'00001', name:'v1.jpg (30KB)', click:'getBookinfo(8579010)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100019', pId:'00001', name:'v2.jpg (29KB)', click:'getBookinfo(8579011)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100020', pId:'00001', name:'v3s.JPG (975KB)', click:'getBookinfo(8579012)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100021', pId:'00001', name:'v4.jpg (24KB)', click:'getBookinfo(8579013)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100022', pId:'00001', name:'v5.JPG (1014KB)', click:'getBookinfo(8579014)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100023', pId:'00001', name:'v6.jpg (23KB)', click:'getBookinfo(8579015)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100024', pId:'00001', name:'vanne.SLDASM (1224KB)', },{ id:'0000100025', pId:'00001', name:'vanne.SLDPRT (558KB)', }]; var zNodes2 = [{ id:'1', pId:'0', name:'閘閥球閥dn125.zip', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'0000100001', pId:'00001', name:'11.png',url:'http://m.facezit.com/p-8579006.html', target:'_blank' },{ id:'0000100003', pId:'00001', name:'22.png',url:'http://m.facezit.com/p-8579007.html', target:'_blank' },{ id:'0000100015', pId:'00001', name:'untitled.14.jpg',url:'http://m.facezit.com/p-8579008.html', target:'_blank' },{ id:'0000100016', pId:'00001', name:'untitled.16.jpg',url:'http://m.facezit.com/p-8579009.html', target:'_blank' },{ id:'0000100018', pId:'00001', name:'v1.jpg',url:'http://m.facezit.com/p-8579010.html', target:'_blank' },{ id:'0000100019', pId:'00001', name:'v2.jpg',url:'http://m.facezit.com/p-8579011.html', target:'_blank' },{ id:'0000100020', pId:'00001', name:'v3s.JPG',url:'http://m.facezit.com/p-8579012.html', target:'_blank' },{ id:'0000100021', pId:'00001', name:'v4.jpg',url:'http://m.facezit.com/p-8579013.html', target:'_blank' },{ id:'0000100022', pId:'00001', name:'v5.JPG',url:'http://m.facezit.com/p-8579014.html', target:'_blank' },{ id:'0000100023', pId:'00001', name:'v6.jpg',url:'http://m.facezit.com/p-8579015.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 = '7268208'; 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; }); });