'; } $("#imgPer").html(htmlPer); $("#imgDiv").html(html); }else{ alert(data.resultInfo); } } }); } var setting = { data: { simpleData: { enable: true } } }; var zNodes = [{ id:'1', pId:'0', name:'地下室模板.rar', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001', pId:'1', name:'地下室模板 (包含10個文件)', },{ id:'0000100001', pId:'00001', name:'地下一層施工縫.DOC (19KB)', click:'getBookinfo(8285192)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100002', pId:'00001', name:'地下室模板施工方案.DOC (467KB)', click:'getBookinfo(8285193)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100003', pId:'00001', name:'柱模.DWG (80KB)', click:'getBookinfo(8285194)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100004', pId:'00001', name:'樓梯.DWG (121KB)', click:'getBookinfo(8285195)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100005', pId:'00001', name:'樓梯節(jié)點.DWG (260KB)', click:'getBookinfo(8285196)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100006', pId:'00001', name:'流水段-住宅樓14.DWG (104KB)', click:'getBookinfo(8285197)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100007', pId:'00001', name:'流水段-住宅樓SLH.DWG (94KB)', click:'getBookinfo(8285198)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100008', pId:'00001', name:'流水段-塔臺底板14.DWG (156KB)', click:'getBookinfo(8285199)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100009', pId:'00001', name:'穿墻桿.DWG (56KB)', click:'getBookinfo(8285200)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100010', pId:'00001', name:'頂板支模.DWG (114KB)', click:'getBookinfo(8285201)', icon:'/Images/filetype/DOC16.PNG'}]; var zNodes2 = [{ id:'1', pId:'0', name:'地下室模板.rar', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'0000100001', pId:'00001', name:'地下一層施工縫.DOC',url:'http://www.nydnatest.com/p-8285192.html', target:'_blank' },{ id:'0000100002', pId:'00001', name:'地下室模板施工方案.DOC',url:'http://www.nydnatest.com/p-8285193.html', target:'_blank' },{ id:'0000100003', pId:'00001', name:'柱模.DWG',url:'http://www.nydnatest.com/p-8285194.html', target:'_blank' },{ id:'0000100004', pId:'00001', name:'樓梯.DWG',url:'http://www.nydnatest.com/p-8285195.html', target:'_blank' },{ id:'0000100005', pId:'00001', name:'樓梯節(jié)點.DWG',url:'http://www.nydnatest.com/p-8285196.html', target:'_blank' },{ id:'0000100006', pId:'00001', name:'流水段-住宅樓14.DWG',url:'http://www.nydnatest.com/p-8285197.html', target:'_blank' },{ id:'0000100007', pId:'00001', name:'流水段-住宅樓SLH.DWG',url:'http://www.nydnatest.com/p-8285198.html', target:'_blank' },{ id:'0000100008', pId:'00001', name:'流水段-塔臺底板14.DWG',url:'http://www.nydnatest.com/p-8285199.html', target:'_blank' },{ id:'0000100009', pId:'00001', name:'穿墻桿.DWG',url:'http://www.nydnatest.com/p-8285200.html', target:'_blank' },{ id:'0000100010', pId:'00001', name:'頂板支模.DWG',url:'http://www.nydnatest.com/p-8285201.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 = '6672590'; 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; }); });