'; } $("#imgPer").html(htmlPer); $("#imgDiv").html(html); }else{ alert(data.resultInfo); } } }); } var setting = { data: { simpleData: { enable: true } } }; var zNodes = [{ id:'1', pId:'0', name:'減速機proe模型.zip', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001', pId:'1', name:'jian_su_ji (包含39個文件)', },{ id:'0000100001', pId:'00001', name:'10_tong_qi_sai.prt.1 (180KB)', },{ id:'0000100002', pId:'00001', name:'11_16_luo_mu_gb41.prt.5 (128KB)', },{ id:'0000100003', pId:'00001', name:'12_xiang_gai.prt.3 (863KB)', },{ id:'0000100004', pId:'00001', name:'13_14_gb5780.prt.5 (143KB)', },{ id:'0000100005', pId:'00001', name:'15_dian_quan_gb93.prt.2 (56KB)', },{ id:'0000100006', pId:'00001', name:'17_luo_sai.prt.1 (264KB)', },{ id:'0000100007', pId:'00001', name:'18_dian_quan_gb97_1.prt.3 (57KB)', },{ id:'0000100008', pId:'00001', name:'19_chi_lun.prt.2 (2126KB)', },{ id:'0000100009', pId:'00001', name:'1_xiang_zuo_1.prt.5 (2014KB)', },{ id:'0000100010', pId:'00001', name:'20_tou_tong.prt.1 (55KB)', },{ id:'0000100011', pId:'00001', name:'21_jian.prt.3 (42KB)', },{ id:'0000100012', pId:'00001', name:'23_duang_gai.prt.1 (164KB)', },{ id:'0000100013', pId:'00001', name:'24_zhou.prt.3 (155KB)', },{ id:'0000100014', pId:'00001', name:'25_tiao_zheng_bei.prt.1 (55KB)', },{ id:'0000100015', pId:'00001', name:'26_duan_gai.prt.1 (80KB)', },{ id:'0000100016', pId:'00001', name:'27_chi_lun_zhou.prt.3 (940KB)', },{ id:'0000100017', pId:'00001', name:'28_prt0001.prt.1 (96KB)', },{ id:'0000100018', pId:'00001', name:'28_prt0002.prt.1 (90KB)', },{ id:'0000100019', pId:'00001', name:'28_prt0003.prt.1 (76KB)', },{ id:'0000100020', pId:'00001', name:'28_zhou_chen.asm.4 (71KB)', },{ id:'0000100021', pId:'00001', name:'29_dang_youbei.prt.1 (89KB)', },{ id:'0000100022', pId:'00001', name:'2_fang_guang_pian.prt.1 (105KB)', },{ id:'0000100023', pId:'00001', name:'30_xiao_gb117.prt.2 (81KB)', },{ id:'0000100024', pId:'00001', name:'31_duan_gai.prt.1 (160KB)', },{ id:'0000100025', pId:'00001', name:'33_prt0001.prt.1 (123KB)', },{ id:'0000100026', pId:'00001', name:'33_prt0002.prt.1 (125KB)', },{ id:'0000100027', pId:'00001', name:'33_prt0003.prt.2 (75KB)', },{ id:'0000100028', pId:'00001', name:'33_zhou_chen.asm.2 (54KB)', },{ id:'0000100029', pId:'00001', name:'33_zhou_chen.asm.3 (55KB)', },{ id:'0000100030', pId:'00001', name:'34_duan_gai.prt.1 (79KB)', },{ id:'0000100031', pId:'00001', name:'35_tiao_zheng_huang.prt.1 (55KB)', },{ id:'0000100032', pId:'00001', name:'3_diang_pian.prt.1 (84KB)', },{ id:'0000100033', pId:'00001', name:'4_you_mian_jixiji.prt.1 (78KB)', },{ id:'0000100034', pId:'00001', name:'5_9_luo_ding_gb65.prt.3 (131KB)', },{ id:'0000100035', pId:'00001', name:'6_xiao_gai.prt.1 (146KB)', },{ id:'0000100036', pId:'00001', name:'7_ya_zhi_ban.prt.1 (74KB)', },{ id:'0000100037', pId:'00001', name:'8_xiao_gai.prt.1 (78KB)', },{ id:'0000100038', pId:'00001', name:'jian_su_xiang_zhuangpei.asm.4 (674KB)', },{ id:'0000100039', pId:'00001', name:'trail.txt.1 (7KB)', }]; var zNodes2 = [{ id:'1', pId:'0', name:'減速機proe模型.zip', open:true, icon:'/Images/filetype/RAR16.PNG'}]; $(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 = '7257787'; 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; }); });