Saluttttt !
Je m'y remet mais je dois d'abord régler un petit détail, sinon je ne saurai pas continuer enfin ça m'embeterais de tout recommencer pour rien !
Bon vous pouvez voir ici :
http://www.biduloo.info/xp/ que a b c d e est en bas au lieu d'être au millieu.
Je ne sais pas pourquoi c'est là mais bon je vous donne les fichiers correspondant.
C'est-à -dire : header.tpl, footer.tpl, index_corps.html & index.php
header.tpl
[html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<title>{NOM_SITE} - {PAGE_TITRE}</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link type="text/css" rel="stylesheet" href="template/style.css" />
</head>
<body>
<table class="total" width="100%" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="100" class="header" align="left">
<a href="{U_INDEX}"><img src="template/images/logo.gif" border="0" alt="{L_INDEX}" title="{L_INDEX}" width="150" height="100" /></a>
</td>
<td height="100" class="headerban" align="right">
<a href="http://www.biduloo.info">Réseau Biduloo</a>
</td>
</tr>
<tr>
<td colspan="2" class="tabmenu" align="center" valign="middle" height="20">
{L_INDEX}
</td>
</tr>
<tr>
<td colspan="2" class="tabnavighaut" align="left" valign="middle" height="20">
</td>
</tr>
<tr>
<td align="center" colspan="2">
<br />[/html]
footer.tpl
[html] <br /><br /><br />
</tr>
<tr>
<td align="center" class="footer" colspan="2" height="100">
<span class="copyright">Biduloo : © 2003-2005 <a href="http://www.biduloo.info">Réseau Biduloo</a> | Toute reproduction est interdite !
<br />R-IceMore : © 2003-2005 <a href="http://www.biduloo.info">Réseau Biduloo</a> | Réalisé par Biduloo<br />{NB_REQUETE}</span>
</td>
</tr>
</table>
</body>
</html>[/html]
index_corps.html
[html]<!-- BEGIN boucle -->
{boucle.VAR}
<!-- END boucle -->[/html]
index.php
[php]<?php
require_once("includes/functions.php");
$tpl = new Tpl("template/");
include( $racine . 'includes/header.php');
$tpl->assign_vars( array(
'L_INDEX' => $langue['index'],
));
$tpl->set_filenames(array('corps' => 'index_corps.html'));
$arr = array('a', 'b', 'c', 'd', 'e');
$var = "Essai";
foreach( $arr as $var )
{ $tpl->assign_block_vars('boucle', array( 'VAR' => $var )); }
include( $racine . 'includes/footer.php');
$tpl->pparse('corps');
?>[/php]
Voilà , je pense que c'est de ça que vous avez besoin mais je pense que c'est au point de vue php que ça doit foirer, fin je suis pas sà»r !
Merci d'avance !
