Re: module DiffuAds | Titre du sujet : Re: module DiffuAds par beru sur 25/10/2011 23:24:34
ERREUR TEMPLATE 05
Une condition <{if}> semble mal placée par rapport aux cellules de tableau <td>
Code original
<!--- partie gestion par annonceur et admin --->
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td>
<{if $xoops_isadmin}>
<!-- gestion ADMIN -->
<div id="centerCcolumn" class="blockTitle" alt="<{$smarty.const._MD_DIFFUADS_GESTIONADM}>" title="<{$smarty.const._MD_DIFFUADS_GESTIONADM}>"><{$smarty.const._MD_DIFFUADS_GESTIONADM}></div>
<div style="clear: both;"></div>
<!-- gestion ADMIN: toutes les annonces de annonceur modif CPascal - ajout "annonce.submitter_name" -->
<img src="<{$xoops_url}>/modules/DiffuAds/images/icon/annonceur.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_ALLADS}> <{$annonce.submitter_name}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_ALLADS}> <{$annonce.submitter_name}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" /> <a href="<{$xoops_url}>/modules/DiffuAds/adsuserlist.php?uid=<{$annonce.uid}>" alt="<{$smarty.const._MD_DIFFUADS_ALLADS}> <{$annonce.submitter_name}>" title="<{$smarty.const._MD_DIFFUADS_ALLADS}> <{$annonce.submitter_name}>"><{$smarty.const._MD_DIFFUADS_ALLADS}> <{$annonce.submitter_name}></a>
<div style="clear: both;"></div>
<!-- gestion ADMIN: modifier annonce -->
<img src="<{$xoops_url}>/modules/DiffuAds/images/icon/modifier.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_EDITADS}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_EDITADS}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" /> <a href="<{$xoops_url}>/modules/DiffuAds/admin/adsmod.php?op=edit&ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_EDITADS}>" title="<{$smarty.const._MD_DIFFUADS_EDITADS}>"><{$smarty.const._MD_DIFFUADS_EDITADS}></a>
<div style="clear: both;"></div>
<!-- ajout option CPascal - possibilite de suspendre ou de reactiver annonce -->
<{if $annonce.suspendadmin > 0}>
<img src="<{$xoops_url}>/modules/DiffuAds/images/icon/reprendre.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_PUB_GO}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_PUB_GO}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" /> <a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=suspendrereactiver&ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_PUB_GO}>" title="<{$smarty.const._MD_DIFFUADS_PUB_GO}>"><{$smarty.const._MD_DIFFUADS_PUB_GO}></a>
<{else}>
<img src="<{$xoops_url}>/modules/DiffuAds/images/icon/suspendre.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_PUB_STOP}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_PUB_STOP}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" /> <a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=suspendrereactiver&ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_PUB_STOP}>" title="<{$smarty.const._MD_DIFFUADS_PUB_STOP}>"><{$smarty.const._MD_DIFFUADS_PUB_STOP}></a>
<{/if}>
<div style="clear: both;"></div>
<!-- gestion ADMIN: valider annonce METTRE REDIRECT PAGE DE ANNONCE-->
<{if $annonce.date_pub == 0}>
<img src="<{$xoops_url}>/modules/DiffuAds/images/icon/publier.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_VALIDADS}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_VALIDADS}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" /> <a href="<{$xoops_url}>/modules/DiffuAds/admin/adsmod.php?op=approve&ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_VALIDADS}>" title="<{$smarty.const._MD_DIFFUADS_VALIDADS}>"><{$smarty.const._MD_DIFFUADS_VALIDADS}></a>
<{/if}>
<div style="clear: both;"></div>
</td>
<td>
<div id="centerCcolumn" class="blockTitle"> </div>
<div style="clear: both;"></div>
<!-- gestion ADMIN: adresse ip de annonceur -->
<img src="<{$xoops_url}>/modules/DiffuAds/images/icon/IP.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_ADRESS_IP}> <{$annonce.poster_ip}>" title="<{$smarty.const._MD_DIFFUADS_ADRESS_IP}> <{$annonce.poster_ip}>" style="vertical-align: middle; padding: .2em;" /><{$smarty.const._MD_DIFFUADS_ADRESS_IP}> <{$annonce.submitter_name}>: <{$annonce.poster_ip}>
<div style="clear: both;"></div>
<!-- gestion ADMIN: supprimer annonce -->
<img src="<{$xoops_url}>/modules/DiffuAds/images/icon/supprimer.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_DELETEADS}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_DELETEADS}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" /> <a href="<{$xoops_url}>/modules/DiffuAds/admin/adsmod.php?op=delete&ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_DELETEADS}>" title="<{$smarty.const._MD_DIFFUADS_DELETEADS}>"><{$smarty.const._MD_DIFFUADS_DELETEADS}></a>
<div style="clear: both;"></div>
<!-- ajout option CPascal - 5 novembre 2010 - signaler une annonce suspecte -->
<{if $annonce.signalementannonce > 0}>
<img src="<{$xoops_url}>/modules/DiffuAds/images/icon/alerteabus.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" /> <a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=signalementannonce&ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}>" title="<{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}>"><{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}></a>
<{else}>
<img src="<{$xoops_url}>/modules/DiffuAds/images/icon/alerteabus.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" /> <a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=signalementannonce&ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}>" title="<{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}>"><{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}></a>
<{/if}>
<div style="clear: both;"></div>
<{/if}>
</td>
<!-- gestion ANNONCEUR -->
Correction
<!--- partie gestion par annonceur et admin --->
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<!-- ***** DEPLACEMENT SMARTY ***** -->
<{if $xoops_isadmin}>
<td>
<!-- gestion ADMIN -->
<div id="centerCcolumn" class="blockTitle" alt="<{$smarty.const._MD_DIFFUADS_GESTIONADM}>" title="<{$smarty.const._MD_DIFFUADS_GESTIONADM}>"><{$smarty.const._MD_DIFFUADS_GESTIONADM}></div>
<div style="clear: both;"></div>
<!-- gestion ADMIN: toutes les annonces de annonceur modif CPascal - ajout "annonce.submitter_name" -->
<img src="<{$xoops_url}>/modules/DiffuAds/images/icon/annonceur.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_ALLADS}> <{$annonce.submitter_name}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_ALLADS}> <{$annonce.submitter_name}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" /> <a href="<{$xoops_url}>/modules/DiffuAds/adsuserlist.php?uid=<{$annonce.uid}>" alt="<{$smarty.const._MD_DIFFUADS_ALLADS}> <{$annonce.submitter_name}>" title="<{$smarty.const._MD_DIFFUADS_ALLADS}> <{$annonce.submitter_name}>"><{$smarty.const._MD_DIFFUADS_ALLADS}> <{$annonce.submitter_name}></a>
<div style="clear: both;"></div>
<!-- gestion ADMIN: modifier annonce -->
<img src="<{$xoops_url}>/modules/DiffuAds/images/icon/modifier.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_EDITADS}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_EDITADS}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" /> <a href="<{$xoops_url}>/modules/DiffuAds/admin/adsmod.php?op=edit&ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_EDITADS}>" title="<{$smarty.const._MD_DIFFUADS_EDITADS}>"><{$smarty.const._MD_DIFFUADS_EDITADS}></a>
<div style="clear: both;"></div>
<!-- ajout option CPascal - possibilite de suspendre ou de reactiver annonce -->
<{if $annonce.suspendadmin > 0}>
<img src="<{$xoops_url}>/modules/DiffuAds/images/icon/reprendre.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_PUB_GO}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_PUB_GO}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" /> <a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=suspendrereactiver&ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_PUB_GO}>" title="<{$smarty.const._MD_DIFFUADS_PUB_GO}>"><{$smarty.const._MD_DIFFUADS_PUB_GO}></a>
<{else}>
<img src="<{$xoops_url}>/modules/DiffuAds/images/icon/suspendre.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_PUB_STOP}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_PUB_STOP}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" /> <a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=suspendrereactiver&ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_PUB_STOP}>" title="<{$smarty.const._MD_DIFFUADS_PUB_STOP}>"><{$smarty.const._MD_DIFFUADS_PUB_STOP}></a>
<{/if}>
<div style="clear: both;"></div>
<!-- gestion ADMIN: valider annonce METTRE REDIRECT PAGE DE ANNONCE-->
<{if $annonce.date_pub == 0}>
<img src="<{$xoops_url}>/modules/DiffuAds/images/icon/publier.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_VALIDADS}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_VALIDADS}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" /> <a href="<{$xoops_url}>/modules/DiffuAds/admin/adsmod.php?op=approve&ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_VALIDADS}>" title="<{$smarty.const._MD_DIFFUADS_VALIDADS}>"><{$smarty.const._MD_DIFFUADS_VALIDADS}></a>
<{/if}>
<div style="clear: both;"></div>
</td>
<td>
<div id="centerCcolumn" class="blockTitle"> </div>
<div style="clear: both;"></div>
<!-- gestion ADMIN: adresse ip de annonceur -->
<img src="<{$xoops_url}>/modules/DiffuAds/images/icon/IP.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_ADRESS_IP}> <{$annonce.poster_ip}>" title="<{$smarty.const._MD_DIFFUADS_ADRESS_IP}> <{$annonce.poster_ip}>" style="vertical-align: middle; padding: .2em;" /><{$smarty.const._MD_DIFFUADS_ADRESS_IP}> <{$annonce.submitter_name}>: <{$annonce.poster_ip}>
<div style="clear: both;"></div>
<!-- gestion ADMIN: supprimer annonce -->
<img src="<{$xoops_url}>/modules/DiffuAds/images/icon/supprimer.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_DELETEADS}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_DELETEADS}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" /> <a href="<{$xoops_url}>/modules/DiffuAds/admin/adsmod.php?op=delete&ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_DELETEADS}>" title="<{$smarty.const._MD_DIFFUADS_DELETEADS}>"><{$smarty.const._MD_DIFFUADS_DELETEADS}></a>
<div style="clear: both;"></div>
<!-- ajout option CPascal - 5 novembre 2010 - signaler une annonce suspecte -->
<{if $annonce.signalementannonce > 0}>
<img src="<{$xoops_url}>/modules/DiffuAds/images/icon/alerteabus.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" /> <a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=signalementannonce&ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}>" title="<{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}>"><{$smarty.const._MD_DIFFUADS_SIGNALNOFRAUDE}></a>
<{else}>
<img src="<{$xoops_url}>/modules/DiffuAds/images/icon/alerteabus.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" /> <a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=signalementannonce&ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}>" title="<{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}>"><{$smarty.const._MD_DIFFUADS_SIGNALFRAUDEADM}></a>
<{/if}>
<div style="clear: both;"></div>
</td>
<!-- ***** DEPLACEMENT SMARTY ***** -->
<{/if}>
<!-- gestion ANNONCEUR -->
|
|