'; } $("#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:'某十字軸零件機械加工工藝及其夾具設計 (包含4個文件)', },{ id:'0000100001', pId:'00001', name:'中期報告.doc (43KB)', click:'getBookinfo(8162155)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100002', pId:'00001', name:'工序卡.doc (276KB)', click:'getBookinfo(8162156)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100003', pId:'00001', name:'開題報告.doc (91KB)', click:'getBookinfo(8162157)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100004', pId:'00001', name:'畢業(yè)論文.doc (479KB)', click:'getBookinfo(8162158)', icon:'/Images/filetype/DOC16.PNG'}]; var zNodes2 = [{ id:'1', pId:'0', name:'某十字軸零件機械加工工藝及其夾具設計.zip', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'0000100001', pId:'00001', name:'中期報告.doc',url:'http://m.facezit.com/p-8162155.html', target:'_blank' },{ id:'0000100002', pId:'00001', name:'工序卡.doc',url:'http://m.facezit.com/p-8162156.html', target:'_blank' },{ id:'0000100003', pId:'00001', name:'開題報告.doc',url:'http://m.facezit.com/p-8162157.html', target:'_blank' },{ id:'0000100004', pId:'00001', name:'畢業(yè)論文.doc',url:'http://m.facezit.com/p-8162158.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 = '3527218'; 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; }); });