Fork me on GitHub

Rapport de message :*
 

module myalbum

Titre du sujet : module myalbum
par mistertiti sur 16/03/2011 21:35:51

bonjour,
je viens demander de l'aide car je n'arrive pas a afficher "les bannières" dans les sous catégories du module. Dans mon cas j'ai mis des drapeaux en catégories qui s'affichent bien, mais les bannière des sous catégories rien à faire.

voilà mon code de myalbum_categorie.html

<table width="100%" border='0' cellspacing='5' cellpadding='0' align="center">
<tr>
<{foreach from=$subcategories item=cat key=count}>
<td valign="top" align="right">
<{if $cat.imgurl != ""}>
<a href="<{$mod_url}>/viewcat.php?cid=<{$cat.cid}>">
<img src="<{$cat.imgurl}>" width="48" height="32" border="0" alt="" />
</a>
<{else}>
<a href="<{$mod_url}>/viewcat.php?cid=<{$cat.cid}>">
<img src="<{$mod_url}>/images/folder32.gif" width="32" height="32" border="0" alt="" />
</a>
<{/if}>
</td>
<td valign="top" align="left" width="33%">
<a href="<{$mod_url}>/viewcat.php?cid=<{$cat.cid}>"><span style="font:bold 150%;"><{$cat.title}></span></a>&nbsp;<{$lang_total}><{$cat.photo_total_sum}>&nbsp;(<{$cat.photo_small_sum}>)
<br />
<{foreach from=$cat.subcategories item=subcat}>
<{if $subcat.number_of_subcat}>
<a href="<{$mod_url}>/viewcat.php?cid=<{$subcat.cid}>"><img src="<{$subcat.imgurl}>" width="24" height="16" alt="" /><{$subcat.title}><img src='<{$mod_url}>/images/subcat.gif' width='15' height='15' /></a><br />
<{else}>
<a href="<{$mod_url}>/viewcat.php?cid=<{$subcat.cid}>"><img src="<{$mod_url}>/images/folder16.gif" width="24" height="16" alt="" /><{$subcat.title}></a>&nbsp;(<{$subcat.photo_small_sum}>)<br />
<{/if}>
<{/foreach}>
</td>
<{if ($count+1) is div by 3}>
</tr><tr>
<{/if}>
<{/foreach}>
</tr>
</table>

j'ai changé volontairement les tailles des images..

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

29 Personne(s) en ligne (27 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 29 | Plus ...