4
@ ghia how do I use this code? where in this code do I need to put my ad code?
my list code looks like this:
<{foreach item=item from=$items}>
<tr class=<{cycle values="odd,even"}>>
<{if $isauthor}>
<td>
<{$item.status}>
td>
<{elseif $xoops_isadmin}>
<td>
<a href="admin/adsmod.php?op=edit&ads_id=<{$item.id}>">
<img src="images/modif.gif" border="0" alt="<{$smarty.const._MD_CATADS_EDITADS}>" />a>
td>
<{/if}>
<td align="left"><b>
<{$item.type}>
: b><a href="<{$xoops_url}>/modules/catads/adsitem.php?ads_id=<{$item.id}>">
<{$item.title}>
a>td>
<td align="left"><{$item.price}>td>
<td align="center"><{$item.date}>td>
<td><{$item.local|capitalize}>td>
<td ><{$item.photo}>td>
<td align="center"><{$item.views}>td>
tr>
<{/foreach}>