Bonjour,
j'ai téléchargé le script de MaX3315 (http://www.javascriptfr.com/codes/ONGLET-192-TABULATION-MULTI-BLOC_36203.aspx) qui permet de créer des onglets. C'est un très bon script. Je travail avec EasyPhp 1.7 et IE6 et Opera.
Mon problème est que lorque je fait des includes en php, les accents des mots sont remplacés par des <?> sour opera et des idéogrammes chinois (!oui oui chinois !
) sous IE, alors que le même code recopier entre les balises <table> s'affiche correctement.
J'ai besoin d'aide, car je commence mon projet d'intranet et je ne veux pas avoir à tout refaire
pour des accents.
Merci d'avance.
billmax


Voici un extrait du code source :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Onglet à tabulation de MaX3315</title>
<style type="text/css" media="all">
body,td {
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
}
body {
background-color:#6699CC;
margin:0px;
padding:0px;
}
.tabularButtonTd {
font-weight:bold;
font-size:11px;
text-align:center;
}
</style>
<script language="javascript" type="text/javascript" src="js/tabular.global.js"></script>
<script language="javascript" type="text/javascript" src="js/tabular.class.js"></script>
<script language="javascript">
var myTab3=null;
var myTab2=null;
var myTab=null;
function f_init()
{
myTopTab=new TabularBloc('topTabular');
myTopTab.addButton('Accueil','function',changePage,0);
myTopTab.addButton('Demande d\'intervention','function',changePage,1);
...
myTopTab.addButton('Aide','function',changePage,5);
myTopTab.init(0);
}
//fonction appeler par certain onglet
function changeTabMenu(action)
{
document.title='Last action selected : '+action;
}
function closeWindow()
{
if(confirm('Etes-vous certain de vouloir quitter?\n\nNote : Possible que Firefox et IE bloc cette action selon la façon dont vous avez ouvert cette page.'))
{
window.close();
}
myTab2.selectTab(null);
}
var currentPage=0;
function changePage(num)
{
document.getElementById('page'+currentPage).style.display='none';
currentPage=num;
document.getElementById('page'+currentPage).style.display='block';
}
</script>
</head>
<body onLoad="f_init();">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div id="topTabular" style="background-image:url(images/background_tabular_bar.gif); background-position:bottom; background-repeat:repeat-x;">Loading...</div></td>
</tr>
<tr>
<td style="background-color:#477bb5; color:#FFFFFF; height:30px;"> </td>
</tr>
</table>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" id="page0">
<?php
$pageOK = array(
// Pages gestion systeme
'support' => 'support.php',
);
if ((isset($_GET['page'])) && (isset($pageOK[$_GET['page']]))) {
include($pageOK[$_GET['page']]);
}else{
include('onglet0/index.php');
}
?>
</table>
<table width="800" height="400" border="0" align="center" cellpadding="0" cellspacing="0" id="page1" style="display:none">
<tr>
<td>Météo</td> <= mot accentué
</tr>
</table>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" id="page2" style="display:none">
<tr>
<td>
<?php
include('onglet2/index.php'); <= idem mais Météo est dans un fichier et j'utilise un include
?>
</td>
</tr>
</table>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" id="page3" style="display:none">
</table>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" id="page4" style="display:none">
</table>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" id="page5" style="display:none">
</table>
</body>
</html>
<?php
echo 'Météo';
?>
MERCI !