'; } $("#imgPer").html(htmlPer); $("#imgDiv").html(html); }else{ alert(data.resultInfo); } } }); } var setting = { data: { simpleData: { enable: true } } }; var zNodes = [{ id:'1', pId:'0', name:'挖掘裝載機(jī).rar', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001', pId:'1', name:'挖掘裝載機(jī) (包含14個(gè)文件)', },{ id:'0000100001', pId:'00001', name:'挖掘裝載機(jī) (包含13個(gè)文件)', },{ id:'000010000100001', pId:'0000100001', name:'圖 (包含8個(gè)文件)', },{ id:'00001000010000100001', pId:'000010000100001', name:'chandou.dwg (76KB)', click:'getBookinfo(8874222)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00001000010000100002', pId:'000010000100001', name:'dongbi.dwg (68KB)', click:'getBookinfo(8874223)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00001000010000100003', pId:'000010000100001', name:'yaobi.dwg (44KB)', click:'getBookinfo(8874224)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00001000010000100004', pId:'000010000100001', name:'yaobi2.dwg (39KB)', click:'getBookinfo(8874225)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00001000010000100005', pId:'000010000100001', name:'yaobi3.dwg (30KB)', click:'getBookinfo(8874226)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00001000010000100006', pId:'000010000100001', name:'yaobi4.dwg (30KB)', click:'getBookinfo(8874227)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00001000010000100007', pId:'000010000100001', name:'youxiangti.dwg (70KB)', click:'getBookinfo(8874228)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00001000010000100008', pId:'000010000100001', name:'zhuangpeitu.dwg (857KB)', click:'getBookinfo(8874229)', icon:'/Images/filetype/DOC16.PNG'},{ id:'000010000100002', pId:'0000100001', name:'diansuan.doc (28KB)', click:'getBookinfo(8874230)', icon:'/Images/filetype/DOC16.PNG'},{ id:'000010000100003', pId:'0000100001', name:'漢.doc (37KB)', click:'getBookinfo(8874231)', icon:'/Images/filetype/DOC16.PNG'},{ id:'000010000100004', pId:'0000100001', name:'英.doc (43KB)', click:'getBookinfo(8874232)', icon:'/Images/filetype/DOC16.PNG'},{ id:'000010000100005', pId:'0000100001', name:'論文.doc (3076KB)', click:'getBookinfo(8874233)', icon:'/Images/filetype/DOC16.PNG'}]; var zNodes2 = [{ id:'1', pId:'0', name:'挖掘裝載機(jī).rar', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001000010000100001', pId:'000010000100001', name:'chandou.dwg',url:'http://www.nydnatest.com/p-8874222.html', target:'_blank' },{ id:'00001000010000100002', pId:'000010000100001', name:'dongbi.dwg',url:'http://www.nydnatest.com/p-8874223.html', target:'_blank' },{ id:'00001000010000100003', pId:'000010000100001', name:'yaobi.dwg',url:'http://www.nydnatest.com/p-8874224.html', target:'_blank' },{ id:'00001000010000100004', pId:'000010000100001', name:'yaobi2.dwg',url:'http://www.nydnatest.com/p-8874225.html', target:'_blank' },{ id:'00001000010000100005', pId:'000010000100001', name:'yaobi3.dwg',url:'http://www.nydnatest.com/p-8874226.html', target:'_blank' },{ id:'00001000010000100006', pId:'000010000100001', name:'yaobi4.dwg',url:'http://www.nydnatest.com/p-8874227.html', target:'_blank' },{ id:'00001000010000100007', pId:'000010000100001', name:'youxiangti.dwg',url:'http://www.nydnatest.com/p-8874228.html', target:'_blank' },{ id:'00001000010000100008', pId:'000010000100001', name:'zhuangpeitu.dwg',url:'http://www.nydnatest.com/p-8874229.html', target:'_blank' },{ id:'000010000100002', pId:'0000100001', name:'diansuan.doc',url:'http://www.nydnatest.com/p-8874230.html', target:'_blank' },{ id:'000010000100003', pId:'0000100001', name:'漢.doc',url:'http://www.nydnatest.com/p-8874231.html', target:'_blank' },{ id:'000010000100004', pId:'0000100001', name:'英.doc',url:'http://www.nydnatest.com/p-8874232.html', target:'_blank' },{ id:'000010000100005', pId:'0000100001', name:'論文.doc',url:'http://www.nydnatest.com/p-8874233.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 = '3634228'; 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("您的舉報(bào)提交成功"); } else { $("#jubaoResponse h4").html("您的舉報(bào)提交失敗"); } } }); } else { alert("請選擇投訴類型或者數(shù)據(jù)錯誤請刷新重試!"); } } $(function(){ $(document).bind("contextmenu",function(e){ return false; }); });