'; } $("#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:'manual grinder made in 2014 (包含26個文件)', },{ id:'0000100001', pId:'00001', name:'assembly (包含5個文件)', },{ id:'000010000100001', pId:'0000100001', name:'OldVersions (包含2個文件)', },{ id:'00001000010000100001', pId:'000010000100001', name:'grinder manual assembly.0030.iam (113KB)', },{ id:'00001000010000100002', pId:'000010000100001', name:'hand-pulled grinder.0004.ipn (53KB)', },{ id:'000010000100002', pId:'0000100001', name:'grinder manual assembly.iam (113KB)', },{ id:'000010000100003', pId:'0000100001', name:'hand-pulled grinder.ipn (55KB)', },{ id:'0000100002', pId:'00001', name:'details (包含15個文件)', },{ id:'000010000200001', pId:'0000100002', name:'OldVersions (包含1個文件)', },{ id:'00001000020000100001', pId:'000010000200001', name:'fixing the housing.0018.ipt (3902KB)', },{ id:'000010000200002', pId:'0000100002', name:'auger.ipt (17864KB)', },{ id:'000010000200003', pId:'0000100002', name:'corps.ipt (7057KB)', },{ id:'000010000200004', pId:'0000100002', name:'cutting element.ipt (2044KB)', },{ id:'000010000200005', pId:'0000100002', name:'element handles.ipt (292KB)', },{ id:'000010000200006', pId:'0000100002', name:'fixing detail 1.ipt (1324KB)', },{ id:'000010000200007', pId:'0000100002', name:'fixing detail 2.ipt (476KB)', },{ id:'000010000200008', pId:'0000100002', name:'fixing detail 3.ipt (183KB)', },{ id:'000010000200009', pId:'0000100002', name:'fixing the housing.ipt (3900KB)', },{ id:'000010000200010', pId:'0000100002', name:'fixing to screw.ipt (86KB)', },{ id:'000010000200011', pId:'0000100002', name:'grate with holes.ipt (347KB)', },{ id:'000010000200012', pId:'0000100002', name:'pen 1.ipt (164KB)', },{ id:'000010000200013', pId:'0000100002', name:'pen 2.ipt (193KB)', },{ id:'000010000200014', pId:'0000100002', name:'rivet.ipt (125KB)', },{ id:'0000100003', pId:'00001', name:'0043.jpg (40KB)', click:'getBookinfo(8232176)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100004', pId:'00001', name:'mjasorubka_motor_sich_002.jpg (19KB)', click:'getBookinfo(8232177)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100005', pId:'00001', name:'myasorubka-ruchnaya.jpg (67KB)', click:'getBookinfo(8232178)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100006', pId:'00001', name:'_________________4d0a7088cadb1.jpg (49KB)', click:'getBookinfo(8232179)', icon:'/Images/filetype/DOC16.PNG'}]; var zNodes2 = [{ id:'1', pId:'0', name:'手動絞肉機.zip', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'0000100003', pId:'00001', name:'0043.jpg',url:'http://m.facezit.com/p-8232176.html', target:'_blank' },{ id:'0000100004', pId:'00001', name:'mjasorubka_motor_sich_002.jpg',url:'http://m.facezit.com/p-8232177.html', target:'_blank' },{ id:'0000100005', pId:'00001', name:'myasorubka-ruchnaya.jpg',url:'http://m.facezit.com/p-8232178.html', target:'_blank' },{ id:'0000100006', pId:'00001', name:'_________________4d0a7088cadb1.jpg',url:'http://m.facezit.com/p-8232179.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 = '3729506'; 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; }); });