'; } $("#imgPer").html(htmlPer); $("#imgDiv").html(html); }else{ alert(data.resultInfo); } } }); } var setting = { data: { simpleData: { enable: true } } }; var zNodes = [{ id:'1', pId:'0', name:'電梯制動控制與保護系統(tǒng)【限速器三維模型】.zip', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001', pId:'1', name:'限速器2 (包含18個文件)', },{ id:'0000100001', pId:'00001', name:'asm0002.asm.11 (125KB)', },{ id:'0000100002', pId:'00001', name:'prt0001.prt.7 (386KB)', },{ id:'0000100003', pId:'00001', name:'prt0002.prt.8 (94KB)', },{ id:'0000100004', pId:'00001', name:'prt0003.prt.3 (77KB)', },{ id:'0000100005', pId:'00001', name:'prt0004.prt.7 (148KB)', },{ id:'0000100006', pId:'00001', name:'prt0005.prt.2 (956KB)', },{ id:'0000100007', pId:'00001', name:'prt0006.prt.3 (54KB)', },{ id:'0000100008', pId:'00001', name:'prt0007.prt.4 (123KB)', },{ id:'0000100009', pId:'00001', name:'prt0008.prt.4 (104KB)', },{ id:'0000100010', pId:'00001', name:'prt0009.prt.5 (160KB)', },{ id:'0000100011', pId:'00001', name:'prt0010.prt.1 (138KB)', },{ id:'0000100012', pId:'00001', name:'prt0011.prt.1 (99KB)', },{ id:'0000100013', pId:'00001', name:'prt0012.prt.5 (144KB)', },{ id:'0000100014', pId:'00001', name:'prt0013.prt.5 (671KB)', },{ id:'0000100015', pId:'00001', name:'prt0014.prt.3 (50KB)', },{ id:'0000100016', pId:'00001', name:'prt0015.prt.3 (82KB)', },{ id:'0000100017', pId:'00001', name:'prt0016.prt.2 (101KB)', },{ id:'0000100018', pId:'00001', name:'prt0017.prt.3 (110KB)', }]; var zNodes2 = [{ id:'1', pId:'0', name:'電梯制動控制與保護系統(tǒng)【限速器三維模型】.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 = '7265622'; 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("請選擇投訴類型或者數據錯誤請刷新重試!"); } } $(function(){ $(document).bind("contextmenu",function(e){ return false; }); });