'; } $("#imgPer").html(htmlPer); $("#imgDiv").html(html); }else{ alert(data.resultInfo); } } }); } var setting = { data: { simpleData: { enable: true } } }; var zNodes = [{ id:'1', pId:'0', name:'ca6140車床法蘭盤831004工藝及鉆4ф9孔夾具設計【版本6】【4張cad圖紙、工藝卡片和說明書】.rar', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001', pId:'1', name:'工藝工序綜合卡[5張] (包含5個文件)', },{ id:'0000100001', pId:'00001', name:'工藝卡1.dwg (65KB)', click:'getBookinfo(8384017)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100002', pId:'00001', name:'工藝卡2.dwg (67KB)', click:'getBookinfo(8384018)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100003', pId:'00001', name:'工藝卡3.dwg (76KB)', click:'getBookinfo(8384019)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100004', pId:'00001', name:'工藝卡4.dwg (103KB)', click:'getBookinfo(8384020)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100005', pId:'00001', name:'工藝卡5.dwg (71KB)', click:'getBookinfo(8384021)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00002', pId:'1', name:'A1-夾具體.dwg (74KB)', click:'getBookinfo(8384022)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00003', pId:'1', name:'A1-夾具裝配圖.dwg (108KB)', click:'getBookinfo(8384023)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00004', pId:'1', name:'A3-法蘭盤工件圖.dwg (92KB)', click:'getBookinfo(8384024)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00005', pId:'1', name:'A4-毛坯圖.dwg (301KB)', click:'getBookinfo(8384025)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00006', pId:'1', name:'說明書.doc (352KB)', click:'getBookinfo(8384026)', icon:'/Images/filetype/DOC16.PNG'}]; var zNodes2 = [{ id:'1', pId:'0', name:'ca6140車床法蘭盤831004工藝及鉆4ф9孔夾具設計【版本6】【4張cad圖紙、工藝卡片和說明書】.rar', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'0000100001', pId:'00001', name:'工藝卡1.dwg',url:'http://m.facezit.com/p-8384017.html', target:'_blank' },{ id:'0000100002', pId:'00001', name:'工藝卡2.dwg',url:'http://m.facezit.com/p-8384018.html', target:'_blank' },{ id:'0000100003', pId:'00001', name:'工藝卡3.dwg',url:'http://m.facezit.com/p-8384019.html', target:'_blank' },{ id:'0000100004', pId:'00001', name:'工藝卡4.dwg',url:'http://m.facezit.com/p-8384020.html', target:'_blank' },{ id:'0000100005', pId:'00001', name:'工藝卡5.dwg',url:'http://m.facezit.com/p-8384021.html', target:'_blank' },{ id:'00002', pId:'1', name:'A1-夾具體.dwg',url:'http://m.facezit.com/p-8384022.html', target:'_blank' },{ id:'00003', pId:'1', name:'A1-夾具裝配圖.dwg',url:'http://m.facezit.com/p-8384023.html', target:'_blank' },{ id:'00004', pId:'1', name:'A3-法蘭盤工件圖.dwg',url:'http://m.facezit.com/p-8384024.html', target:'_blank' },{ id:'00005', pId:'1', name:'A4-毛坯圖.dwg',url:'http://m.facezit.com/p-8384025.html', target:'_blank' },{ id:'00006', pId:'1', name:'說明書.doc',url:'http://m.facezit.com/p-8384026.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 = '7146652'; 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; }); });