Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2396 connectés 

  FORUM HardWare.fr
  Programmation
  PHP

  vtemplate pb

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

vtemplate pb

n°468127
stickpla
Posté le 25-07-2003 à 20:04:53  profilanswer
 

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+

mood
Publicité
Posté le 25-07-2003 à 20:04:53  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  PHP

  vtemplate pb

 

Sujets relatifs
[PHP] - Vtemplate ... 
Plus de sujets relatifs à : vtemplate pb


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)