'; } $("#imgPer").html(htmlPer); $("#imgDiv").html(html); }else{ alert(data.resultInfo); } } }); } var setting = { data: { simpleData: { enable: true } } }; var zNodes = [{ id:'1', pId:'0', name:'課程設(shè)計數(shù)控xy工作臺設(shè)計含cad圖紙.rar', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001', pId:'1', name:'課程設(shè)計--數(shù)控X-Y工作臺設(shè)計(含CAD圖紙) (包含12個文件)', },{ id:'0000100001', pId:'00001', name:'數(shù)控X-Y工作臺設(shè)計(含CAD圖紙) (包含10個文件)', },{ id:'000010000100001', pId:'0000100001', name:'acad.fas (2KB)', },{ id:'000010000100002', pId:'0000100001', name:'acad.lsp (109KB)', },{ id:'000010000100003', pId:'0000100001', name:'Drawing1.bak (39KB)', },{ id:'000010000100004', pId:'0000100001', name:'Drawing1.dwg (39KB)', click:'getBookinfo(8800647)', icon:'/Images/filetype/DOC16.PNG'},{ id:'000010000100005', pId:'0000100001', name:'xy裝配圖.dwg (746KB)', click:'getBookinfo(8800648)', icon:'/Images/filetype/DOC16.PNG'},{ id:'000010000100006', pId:'0000100001', name:'電路圖.dwg (53KB)', click:'getBookinfo(8800649)', icon:'/Images/filetype/DOC16.PNG'},{ id:'000010000100007', pId:'0000100001', name:'硬件接線圖.dwg (99KB)', click:'getBookinfo(8800650)', icon:'/Images/filetype/DOC16.PNG'},{ id:'000010000100008', pId:'0000100001', name:'程序框圖.dwg (56KB)', click:'getBookinfo(8800651)', icon:'/Images/filetype/DOC16.PNG'},{ id:'000010000100009', pId:'0000100001', name:'說明書封面.doc (80KB)', click:'getBookinfo(8800652)', icon:'/Images/filetype/DOC16.PNG'},{ id:'000010000100010', pId:'0000100001', name:'課程設(shè)計--數(shù)控X-Y工作臺設(shè)計(含CAD圖紙).doc (1021KB)', click:'getBookinfo(8800653)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100002', pId:'00001', name:'專業(yè)課課程設(shè)計任務(wù)書(數(shù)控).doc (32KB)', click:'getBookinfo(8800654)', icon:'/Images/filetype/DOC16.PNG'}]; var zNodes2 = [{ id:'1', pId:'0', name:'課程設(shè)計數(shù)控xy工作臺設(shè)計含cad圖紙.rar', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'000010000100004', pId:'0000100001', name:'Drawing1.dwg',url:'http://facezit.com/p-8800647.html', target:'_blank' },{ id:'000010000100005', pId:'0000100001', name:'xy裝配圖.dwg',url:'http://facezit.com/p-8800648.html', target:'_blank' },{ id:'000010000100006', pId:'0000100001', name:'電路圖.dwg',url:'http://facezit.com/p-8800649.html', target:'_blank' },{ id:'000010000100007', pId:'0000100001', name:'硬件接線圖.dwg',url:'http://facezit.com/p-8800650.html', target:'_blank' },{ id:'000010000100008', pId:'0000100001', name:'程序框圖.dwg',url:'http://facezit.com/p-8800651.html', target:'_blank' },{ id:'000010000100009', pId:'0000100001', name:'說明書封面.doc',url:'http://facezit.com/p-8800652.html', target:'_blank' },{ id:'000010000100010', pId:'0000100001', name:'課程設(shè)計--數(shù)控X-Y工作臺設(shè)計(含CAD圖紙).doc',url:'http://facezit.com/p-8800653.html', target:'_blank' },{ id:'0000100002', pId:'00001', name:'專業(yè)課課程設(shè)計任務(wù)書(數(shù)控).doc',url:'http://facezit.com/p-8800654.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 = '3429622'; 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; }); });