09/05/2012, 15:56:14
Effectivement c'est mieux. Par contre maintenant il ne m'affiche plus rien, même quand un fichier est présent...
Pourtant je test si "mon fichier existe" alors j'affiche, ça devrait fonctionner non ?
Code :
[== HTML ==]
{* Affiche les fichiers a telecharger *}
{page_attr key="extra3" assign="ex3"}
{capture assign='fichier'}
{telechargements name= $ex3}
{/capture}
{if $ex3 != "" && $ex2 !=""}
{if (file_exists($fichier))}
<div align="center" style="background-image: url(./uploads/telechargements/icones/download.png); background-position: 15px -10px; background-repeat: no-repeat; font-size: smaller; width:270px ; margin-left: 0px; padding:2px ; border-left:1px; border-right:1px; border-bottom:1px; border-top:1px; height:72px; margin-top:-78px;">
{$fichier}
</div>
{/if}
{else}
{if (file_exists($fichier))}
<div align="center" style="background-image: url(./uploads/telechargements/icones/download.png); background-position: 15px -10px; background-repeat: no-repeat; font-size: smaller; width:270px ; margin-left: 160px; padding:2px ; border-left:1px; border-right:1px; border-bottom:1px; border-top:1px; height:72px; margin-top:-10px;">
{$fichier}
</div>
{/if}
{/if}
{*Fin telechargement*}
Pourtant je test si "mon fichier existe" alors j'affiche, ça devrait fonctionner non ?
![Cool Cool](https://forum.cmsmadesimple.fr/images/smilies/cool.png)