'; } $("#imgPer").html(htmlPer); $("#imgDiv").html(html); }else{ alert(data.resultInfo); } } }); } var setting = { data: { simpleData: { enable: true } } }; var zNodes = [{ id:'1', pId:'0', name:'雙萬向軸連接器.zip', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001', pId:'1', name:'base.sldprt (222KB)', },{ id:'00002', pId:'1', name:'bronze ring.sldprt (64KB)', },{ id:'00003', pId:'1', name:'CoNNeX.SLDPRT (665KB)', },{ id:'00004', pId:'1', name:'Cross assembly.sldasm (392KB)', },{ id:'00005', pId:'1', name:'cross.sldprt (97KB)', },{ id:'00006', pId:'1', name:'Double Cardan Assembly-0000.bmp (4126KB)', click:'getBookinfo(8506948)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00007', pId:'1', name:'Double Cardan Assembly.IGS (3291KB)', },{ id:'00008', pId:'1', name:'Double Cardan Assembly.SLDASM (908KB)', },{ id:'00009', pId:'1', name:'Double Cardan Assembly.STEP (1494KB)', },{ id:'00010', pId:'1', name:'Double Cardan Assembly.x_t (395KB)', },{ id:'00011', pId:'1', name:'grabber assembly.sldasm (350KB)', },{ id:'00012', pId:'1', name:'kefalh.sldprt (42KB)', },{ id:'00013', pId:'1', name:'pin assembly-1.sldasm (280KB)', },{ id:'00014', pId:'1', name:'pin assembly-2.sldasm (74KB)', },{ id:'00015', pId:'1', name:'pin assembly.sldasm (73KB)', },{ id:'00016', pId:'1', name:'pin.sldprt (169KB)', },{ id:'00017', pId:'1', name:'plakaki.sldprt (316KB)', },{ id:'00018', pId:'1', name:'shaft.sldprt (214KB)', },{ id:'00019', pId:'1', name:'socket countersunk head screw_am(B18.3.5M - 8 x 1.25 x 16 Socket FCHS -- 16S).sldprt (52KB)', },{ id:'00020', pId:'1', name:'socket set screw cone point_am(B18.3.6M - M6 x 1.0 x 12 Hex Socket Cone Pt. SS --S).sldprt (62KB)', },{ id:'00021', pId:'1', name:'supporting ring.sldprt (51KB)', },{ id:'00022', pId:'1', name:'vash ring.SLDPRT (131KB)', },{ id:'00023', pId:'1', name:'Vash.SLDPRT (499KB)', },{ id:'00024', pId:'1', name:'vash2.SLDPRT (337KB)', }]; var zNodes2 = [{ id:'1', pId:'0', name:'雙萬向軸連接器.zip', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00006', pId:'1', name:'Double Cardan Assembly-0000.bmp',url:'http://canyonlakefaqs.com/p-8506948.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 = '7258565'; 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; }); });