Fork me on GitHub

Rapport de message :*
 

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 ADMINtoutes 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}>&nbsp;<{$annonce.submitter_name}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_ALLADS}>&nbsp;<{$annonce.submitter_name}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsuserlist.php?uid=<{$annonce.uid}>" alt="<{$smarty.const._MD_DIFFUADS_ALLADS}>&nbsp;<{$annonce.submitter_name}>" title="<{$smarty.const._MD_DIFFUADS_ALLADS}>&nbsp;<{$annonce.submitter_name}>"><{$smarty.const._MD_DIFFUADS_ALLADS}>&nbsp;<{$annonce.submitter_name}></a
    <
div style="clear: both;"></div>
    <!-- 
gestion ADMINmodifier 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;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/admin/adsmod.php?op=edit&amp;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;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=suspendrereactiver&amp;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;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=suspendrereactiver&amp;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 ADMINvalider 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;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/admin/adsmod.php?op=approve&amp;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">&nbsp;</div>
    <
div style="clear: both;"></div>
    <!-- 
gestion ADMINadresse ip de annonceur -->
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/IP.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_ADRESS_IP}>&nbsp;<{$annonce.poster_ip}>" title="<{$smarty.const._MD_DIFFUADS_ADRESS_IP}>&nbsp;<{$annonce.poster_ip}>" style="vertical-align: middle; padding: .2em;" /><{$smarty.const._MD_DIFFUADS_ADRESS_IP}>&nbsp;<{$annonce.submitter_name}>:&nbsp;<{$annonce.poster_ip}>
    <
div style="clear: both;"></div>            
    <!-- 
gestion ADMINsupprimer 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;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/admin/adsmod.php?op=delete&amp;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;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=signalementannonce&amp;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;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=signalementannonce&amp;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 ADMINtoutes 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}>&nbsp;<{$annonce.submitter_name}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_ALLADS}>&nbsp;<{$annonce.submitter_name}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsuserlist.php?uid=<{$annonce.uid}>" alt="<{$smarty.const._MD_DIFFUADS_ALLADS}>&nbsp;<{$annonce.submitter_name}>" title="<{$smarty.const._MD_DIFFUADS_ALLADS}>&nbsp;<{$annonce.submitter_name}>"><{$smarty.const._MD_DIFFUADS_ALLADS}>&nbsp;<{$annonce.submitter_name}></a
                
                <
div style="clear: both;"></div>
                
                <!-- 
gestion ADMINmodifier 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;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/admin/adsmod.php?op=edit&amp;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;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=suspendrereactiver&amp;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;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=suspendrereactiver&amp;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 ADMINvalider 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;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/admin/adsmod.php?op=approve&amp;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">&nbsp;</div>
                
                <
div style="clear: both;"></div>
                
                <!-- 
gestion ADMINadresse ip de annonceur -->
                <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/IP.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_ADRESS_IP}>&nbsp;<{$annonce.poster_ip}>" title="<{$smarty.const._MD_DIFFUADS_ADRESS_IP}>&nbsp;<{$annonce.poster_ip}>" style="vertical-align: middle; padding: .2em;" /><{$smarty.const._MD_DIFFUADS_ADRESS_IP}>&nbsp;<{$annonce.submitter_name}>:&nbsp;<{$annonce.poster_ip}>
                
                <
div style="clear: both;"></div>
                
                <!-- 
gestion ADMINsupprimer 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;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/admin/adsmod.php?op=delete&amp;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;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=signalementannonce&amp;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;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=signalementannonce&amp;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 -->

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

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