'; } $("#imgPer").html(htmlPer); $("#imgDiv").html(html); }else{ alert(data.resultInfo); } } }); } var setting = { data: { simpleData: { enable: true } } }; var zNodes = [{ id:'1', pId:'0', name:'汽車千斤頂1.zip', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001', pId:'1', name:'car jack (包含27個文件)', },{ id:'0000100001', pId:'00001', name:'creo (包含13個文件)', },{ id:'000010000100001', pId:'0000100001', name:'base.prt.1 (12587KB)', },{ id:'000010000100002', pId:'0000100001', name:'car_jack.asm.1 (50KB)', },{ id:'000010000100003', pId:'0000100001', name:'hex_nut_heavy_amb18_2_4_6m_-_he.prt.1 (495KB)', },{ id:'000010000100004', pId:'0000100001', name:'hex_screw_gradeab_fine_isoiso_8.prt.1 (385KB)', },{ id:'000010000100005', pId:'0000100001', name:'mid.prt.1 (1961KB)', },{ id:'000010000100006', pId:'0000100001', name:'rod.prt.1 (6437KB)', },{ id:'000010000100007', pId:'0000100001', name:'rod2.prt.1 (202KB)', },{ id:'000010000100008', pId:'0000100001', name:'socket_head_cap_screw_aihx-shcs.prt.1 (294KB)', },{ id:'000010000100009', pId:'0000100001', name:'socket_head_cap_screw_amb18_3_1.prt.1 (292KB)', },{ id:'000010000100010', pId:'0000100001', name:'support.prt.1 (342KB)', },{ id:'000010000100011', pId:'0000100001', name:'support2.prt.1 (280KB)', },{ id:'000010000100012', pId:'0000100001', name:'torque_nut_08_isoiso_10511-m16-.prt.1 (805KB)', },{ id:'000010000100013', pId:'0000100001', name:'torque_nut_08_isoiso_10511-m20-.prt.1 (821KB)', },{ id:'0000100002', pId:'00001', name:'base.SLDPRT (2990KB)', },{ id:'0000100003', pId:'00001', name:'car jack.cgr (2101KB)', },{ id:'0000100004', pId:'00001', name:'car jack.IGS (35140KB)', },{ id:'0000100005', pId:'00001', name:'car jack.SLDASM (1578KB)', },{ id:'0000100006', pId:'00001', name:'jack.bip (8668KB)', },{ id:'0000100007', pId:'00001', name:'mid.SLDPRT (759KB)', },{ id:'0000100008', pId:'00001', name:'rod.SLDPRT (850KB)', },{ id:'0000100009', pId:'00001', name:'rod2.SLDPRT (102KB)', },{ id:'0000100010', pId:'00001', name:'support.SLDPRT (109KB)', },{ id:'0000100011', pId:'00001', name:'support2.SLDPRT (64KB)', },{ id:'0000100012', pId:'00001', name:'untitled.42.jpg (107KB)', click:'getBookinfo(8584022)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100013', pId:'00001', name:'untitled.43.jpg (331KB)', click:'getBookinfo(8584023)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100014', pId:'00001', name:'untitled.44.jpg (94KB)', click:'getBookinfo(8584024)', icon:'/Images/filetype/DOC16.PNG'}]; var zNodes2 = [{ id:'1', pId:'0', name:'汽車千斤頂1.zip', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'0000100012', pId:'00001', name:'untitled.42.jpg',url:'http://facezit.com/p-8584022.html', target:'_blank' },{ id:'0000100013', pId:'00001', name:'untitled.43.jpg',url:'http://facezit.com/p-8584023.html', target:'_blank' },{ id:'0000100014', pId:'00001', name:'untitled.44.jpg',url:'http://facezit.com/p-8584024.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 = '7268955'; 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; }); });