'; } $("#imgPer").html(htmlPer); $("#imgDiv").html(html); }else{ alert(data.resultInfo); } } }); } var setting = { data: { simpleData: { enable: true } } }; var zNodes = [{ id:'1', pId:'0', name:'大海睡了第二課時(shí)課件含教案.rar', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001', pId:'1', name:'1.mp3 (3266KB)', },{ id:'00002', pId:'1', name:'dream.mp3 (1782KB)', },{ id:'00003', pId:'1', name:'古箏-漁舟唱晚.wma (2824KB)', },{ id:'00004', pId:'1', name:'大海睡了.ppt (1169KB)', click:'getBookinfo(8339827)', icon:'/Images/filetype/PPT16.PNG'},{ id:'00005', pId:'1', name:'大海睡了教案.doc (33KB)', click:'getBookinfo(8339828)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00006', pId:'1', name:'大海睡了課件.ppt (932KB)', click:'getBookinfo(8339829)', icon:'/Images/filetype/PPT16.PNG'},{ id:'00007', pId:'1', name:'大海睡了(新).ppt (1179KB)', click:'getBookinfo(8339830)', icon:'/Images/filetype/PPT16.PNG'},{ id:'00008', pId:'1', name:'純音樂-搖籃曲(勃拉姆斯版).wma (2149KB)', },{ id:'00009', pId:'1', name:'純音樂-搖籃曲.wma (2995KB)', },{ id:'00010', pId:'1', name:'背景音樂-搖籃曲(舒伯特版).wma (1538KB)', },{ id:'00011', pId:'1', name:'背景音樂-雪的夢(mèng)幻.wma (3574KB)', },{ id:'00012', pId:'1', name:'董文華-大海啊故鄉(xiāng)(伴奏).wma (2084KB)', }]; var zNodes2 = [{ id:'1', pId:'0', name:'大海睡了第二課時(shí)課件含教案.rar', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00004', pId:'1', name:'大海睡了.ppt',url:'http://www.nydnatest.com/p-8339827.html', target:'_blank' },{ id:'00005', pId:'1', name:'大海睡了教案.doc',url:'http://www.nydnatest.com/p-8339828.html', target:'_blank' },{ id:'00006', pId:'1', name:'大海睡了課件.ppt',url:'http://www.nydnatest.com/p-8339829.html', target:'_blank' },{ id:'00007', pId:'1', name:'大海睡了(新).ppt',url:'http://www.nydnatest.com/p-8339830.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 = '6841998'; 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; }); });