Bonjour � tous,
apr�s une br�ve recherche je n'ai pas trouv� de r�ponse � ma question.

Les onclick du code suivant ne fonctionnent pas, d'apr�s mon debug � cause du foreach.


Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9
10
11
		{foreach from=$tab key=k item=v}
			<tr>
			{if !isset($projetlist)}
			<th><a href="{$page}&action=del&pid={$v.id}&sid=0" onclick="confirm(\'Etes-vous sûr de vouloir supprimer le projet {$v.nom} ?\');return false;"><img src="images/delete.png"></a></th>
			<td><a href="{$page}&action=aff&pid={$v.id}&sid=0">{$v.nom}</a></td><td>{$v.desc}</td><td>{$v.cdate}</td><td>{$v.cdate}</td>
			{else}
			<th><a href="{$page}&action=del&pid={$v.id_projet}&sid={$v.id}" onclick="confirm(\'Etes-vous sûr de vouloir supprimer {$v.nom} ?\');return false;"><img src="images/delete.png"></a></th>
			<td><a href="{$page}&action=aff&pid={$v.id_projet}&sid={$v.id}">{$v.nom}</a></td><td>{$v.desc}</td><td>{$v.cdate}</td><td>{$v.cdate}</td>
			{/if}
			</tr>
		{/foreach}
Comment remplacer ce foreach pour permettre au JS de faire son oeuvre? ^^

Merci.