vtemplate pb

vtemplate pb - PHP - Programmation

Marsh Posté le 25-07-2003 à 20:04:53    

hello
 
j'essaie d'utiliser vtemplate, tous semble bien marcher mais à l'exécution de mon fichier php, l'affichage dissocie les variables et le template (affichage des variables sans mise en page puis affichage du template
 
les sources
 
PHP
$handle= $vtp->Open("templates/categorie.liste.php" );
$r = db_fetch_object($qid);
$vtp->setVar($handle,"nom_cat",$r->nom_categorie);
$vtp->Display($handle);
 
TEMPLATE
<table border=1 cellpadding=3>
<tr> <th>Action</th>
<th>Parent</th>
<th>Description</th></tr>
 
<tr>
<td class=normal>
[ <a title="Ajout d'une sous-categorie à {#nom_cat} "            href="mode=add&id={#id_cat}">+C</a>
| <a title="Ajout d'un produit à {#nom_cat}" href="produits.php?mode=add&id_categorie={#id}?>">+P</a>
| <a title="supprimer {#nom_cat}" href="{#me}?mode=del&id={#id_cat}">X</a>
]</td>
<td class=normal>{#parent1}</td>
<td class=normal>{#desc_cat}</td>
</tr>
</table>
 
A+

Reply

Marsh Posté le 25-07-2003 à 20:04:53   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed