1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
/*
* Ext JS Library 2.3.0
*
* http://extjs.com/license
* Beug version 6,7 et8 !!
*/
function generer_rapport_validation(){
//création du TabPanel
// Definition du Tabpanel qui contient des onglets
var monTabPanel = new Ext.TabPanel({
renderTo: document.body,
id: 'TAB',
cls: 'custom-TabPanel',
margins: '3 3 3 0',
//defaults:{autoScroll:'vertical'},
deferredRender : true,
title:'Election 2012',
activeTab: 0,
autotabs: true,
resizeTabs:true,
enableTabScroll:true,
defaults: {autoScroll: true},
fullscreen: true,
items:[{
// Onglet 1 pour le rapport Enjeux_bodiversité
title : 'Synthèse',
autoscroll: true,
html: '<iframe width= "1010" height="768" scrolling="auto" src="http://10.1.0.106:8080/Birt-viewer/frameset?__report= D:/BIRT/EclipseEDI/eclipse-reporting-indigo-SR2-win32/eclipse/workspace/Rapport_BIRT/synthese.rptdesign&Code_insee='+ document.Commune +'"></iframe>',
text :'Loading...',
scripts: true
},{
// Onglet 2 pour le rapport Menace
title : 'contributeurs',
autoscroll: true,
html: '<iframe width= "1010" height="768" scrolling="auto" src="http://10.1.0.106:8080/Birt-viewer/frameset?__report= D:/BIRT/EclipseEDI/eclipse-reporting-indigo-SR2-win32/eclipse/workspace/Rapport_BIRT/contributeurs.rptdesign&Code_insee='+ document.Commune +'"></iframe>',
text :'Loading...',
scripts: true
},{
// Onglet 3 pour le rapport Contributeur
title : 'anciennetè',
autoscroll: true,
html: '<iframe width= "1010" height="768" scrolling="auto" src="http://10.1.0.106:8080/Birt-viewer/frameset?__report= D:/BIRT/EclipseEDI/eclipse-reporting-indigo-SR2-win32/eclipse/workspace/Rapport_BIRT/anciennete.rptdesign&Code_insee='+ document.Commune +'"></iframe>',
text: 'Loading ...',
scripts : true
}]
});
// Affichage du TabPanel dans un viewport
var monViewport = new Ext.Viewport({
title:'viewport',
width : 800,
height: 600,
constrainHeader :true,
collapsible :true,
layout:'fit',
items:monTabPanel,
text : 'Loading...',
});
monViewport.render(Ext.getBody());
monViewport.show(this);
}
if (typeof (document.Commune) !== 'undefined'){
Ext.onReady(generer_rapport_validation);
} |
Partager