function openrpt(id,cate){ var contentstr = "
"; if(cate == "zh"){ layer.open({ type: 1, title: '中文报告', shade: 0, maxmin: false, area: ['600px', '750px'], resize: false, btn: ['关闭'], btnalign: 'c', content: contentstr }); var filename = id + ".pdf.swf"; $('#documentviewer').flexpaperviewer( { config : { swffile : escape('/service/docs/'+ filename), scale : 1.0, zoomtransition : 'easeout', zoomtime : 0.5, zoominterval : 0.2, fitpageonload : true, fitwidthonload : true, fullscreenasmaxwindow : false, progressiveloading : false, minzoomsize : 0.2, maxzoomsize : 5, searchmatchall : false, initviewmode : 'portrait', renderingorder : 'flash', startatpage : '', viewmodetoolsvisible : true, zoomtoolsvisible : true, navtoolsvisible : true, cursortoolsvisible : true, searchtoolsvisible : true, wmode : 'window', localechain: 'en_us' } }); } else{ layer.open({ type: 1, title: 'report detail', shade: 0, maxmin: false, area: ['600px', '750px'], resize: false, btn: ['close'], btnalign: 'c', content: contentstr }); var filename = id + "-en.pdf.swf"; $('#documentviewer').flexpaperviewer( { config : { swffile : escape('/service/docs/'+ filename), scale : 1.0, zoomtransition : 'easeout', zoomtime : 0.5, zoominterval : 0.2, fitpageonload : true, fitwidthonload : true, fullscreenasmaxwindow : false, progressiveloading : false, minzoomsize : 0.2, maxzoomsize : 5, searchmatchall : false, initviewmode : 'portrait', renderingorder : 'flash', startatpage : '', viewmodetoolsvisible : true, zoomtoolsvisible : true, navtoolsvisible : true, cursortoolsvisible : true, searchtoolsvisible : true, wmode : 'window', localechain: 'en_us' }} ); } } function opencert(rptid){ var contentstr = ""; layer.open({ type: 1, title: '型号备案证书', maxmin: false, area: ['800px', '610px'], content: contentstr }); } function openpasscert(rptid){ var contentstr = ""; layer.open({ type: 1, title: '试验合格证书', maxmin: false, area: ['500px', '680px'], content: contentstr }); }