'; } $("#imgPer").html(htmlPer); $("#imgDiv").html(html); }else{ alert(data.resultInfo); } } }); } var setting = { data: { simpleData: { enable: true } } }; var zNodes = [{ id:'1', pId:'0', name:'畢業(yè)設(shè)計(jì)手機(jī)外殼設(shè)計(jì).rar', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001', pId:'1', name:'畢業(yè)設(shè)計(jì)---手機(jī)外殼設(shè)計(jì) (包含32個(gè)文件)', },{ id:'0000100001', pId:'00001', name:'proe圖 (包含26個(gè)文件)', },{ id:'000010000100001', pId:'0000100001', name:'asm0001.asm.3 (52KB)', },{ id:'000010000100002', pId:'0000100001', name:'asm0001.asm.4 (61KB)', },{ id:'000010000100003', pId:'0000100001', name:'config.win.1 (1KB)', },{ id:'000010000100004', pId:'0000100001', name:'prt0001.prt.1 (178KB)', },{ id:'000010000100005', pId:'0000100001', name:'prt0001.prt.3 (7148KB)', },{ id:'000010000100006', pId:'0000100001', name:'prt0002.prt.2 (254KB)', },{ id:'000010000100007', pId:'0000100001', name:'prt0002.prt.3 (256KB)', },{ id:'000010000100008', pId:'0000100001', name:'prt0003.prt.1 (213KB)', },{ id:'000010000100009', pId:'0000100001', name:'prt0003.prt.2 (214KB)', },{ id:'000010000100010', pId:'0000100001', name:'prt0004.prt.1 (84KB)', },{ id:'000010000100011', pId:'0000100001', name:'prt0004.prt.2 (86KB)', },{ id:'000010000100012', pId:'0000100001', name:'prt0052.prt.1 (506KB)', },{ id:'000010000100013', pId:'0000100001', name:'prt0052.prt.6 (1217KB)', },{ id:'000010000100014', pId:'0000100001', name:'std.out (46KB)', },{ id:'000010000100015', pId:'0000100001', name:'trail.txt.1 (601KB)', },{ id:'000010000100016', pId:'0000100001', name:'trail.txt.10 (1200KB)', },{ id:'000010000100017', pId:'0000100001', name:'trail.txt.11 (2KB)', },{ id:'000010000100018', pId:'0000100001', name:'trail.txt.12 (1KB)', },{ id:'000010000100019', pId:'0000100001', name:'trail.txt.2 (317KB)', },{ id:'000010000100020', pId:'0000100001', name:'trail.txt.3 (279KB)', },{ id:'000010000100021', pId:'0000100001', name:'trail.txt.4 (1KB)', },{ id:'000010000100022', pId:'0000100001', name:'trail.txt.5 (6852KB)', },{ id:'000010000100023', pId:'0000100001', name:'trail.txt.6 (2273KB)', },{ id:'000010000100024', pId:'0000100001', name:'trail.txt.7 (59KB)', },{ id:'000010000100025', pId:'0000100001', name:'trail.txt.8 (5382KB)', },{ id:'000010000100026', pId:'0000100001', name:'trail.txt.9 (961KB)', },{ id:'0000100002', pId:'00001', name:'說(shuō)明書(shū) (包含4個(gè)文件)', },{ id:'000010000200001', pId:'0000100002', name:'任務(wù)書(shū).doc (32KB)', click:'getBookinfo(8779036)', icon:'/Images/filetype/DOC16.PNG'},{ id:'000010000200002', pId:'0000100002', name:'前言目錄.doc (36KB)', click:'getBookinfo(8779037)', icon:'/Images/filetype/DOC16.PNG'},{ id:'000010000200003', pId:'0000100002', name:'封面.doc (24KB)', click:'getBookinfo(8779038)', icon:'/Images/filetype/DOC16.PNG'},{ id:'000010000200004', pId:'0000100002', name:'畢業(yè)設(shè)計(jì)---手機(jī)外殼設(shè)計(jì).doc (618KB)', click:'getBookinfo(8779039)', icon:'/Images/filetype/DOC16.PNG'}]; var zNodes2 = [{ id:'1', pId:'0', name:'畢業(yè)設(shè)計(jì)手機(jī)外殼設(shè)計(jì).rar', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'000010000200001', pId:'0000100002', name:'任務(wù)書(shū).doc',url:'http://www.nydnatest.com/p-8779036.html', target:'_blank' },{ id:'000010000200002', pId:'0000100002', name:'前言目錄.doc',url:'http://www.nydnatest.com/p-8779037.html', target:'_blank' },{ id:'000010000200003', pId:'0000100002', name:'封面.doc',url:'http://www.nydnatest.com/p-8779038.html', target:'_blank' },{ id:'000010000200004', pId:'0000100002', name:'畢業(yè)設(shè)計(jì)---手機(jī)外殼設(shè)計(jì).doc',url:'http://www.nydnatest.com/p-8779039.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("請(qǐng)登錄!");window.location.href='login.aspx'; } } function saveJuBao() { var bookid = '3428696'; 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("請(qǐng)選擇投訴類型或者數(shù)據(jù)錯(cuò)誤請(qǐng)刷新重試!"); } } $(function(){ $(document).bind("contextmenu",function(e){ return false; }); });