Fork me on GitHub

Rapport de message :*
 

Re: module DiffuAds

Titre du sujet : Re: module DiffuAds
par beru sur 25/10/2011 23:29:05

ERREUR TEMPLATE 06

Juste après, même souci de calage condition if et cellule de tableau. En outre, il y a une condition cumulative avec <{if not $preview}> et <{if $annonce.isauthor}>, la syntaxe est peut être perfectible ?

Code original
<!-- gestion ANNONCEUR -->
<{if 
not $preview}>
<{if 
$annonce.isauthor}>
<
td>
    <
div id="centerCcolumn" class="blockTitle" alt="<{$smarty.const._MD_DIFFUADS_GESTIONAUTEUR}>" title="<{$smarty.const._MD_DIFFUADS_GESTIONAUTEUR}>"><{$smarty.const._MD_DIFFUADS_GESTIONAUTEUR}></div>
    <
div style="clear: both;"></div>
    <!-- 
gestion ANNONCEURmodifier votre annonce -->    
    <{if 
$annonce.canedit}>
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/modifier.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsedit.php?op=edit&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}></a>
    <{/if}>
    <
div style="clear: both;"></div>
    <!-- 
gestion ANNONCEURsuspendre et reactiver -->
    <{if 
$annonce.suspend 0}>
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/reprendre.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=stopandgo&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}></a>
    <{else}>
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/suspendreproprio.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=stopandgo&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}></a
    <{/if}>        
</
td>
<
td>
    <!-- 
mise en forme -->    
    <
div id="centerCcolumn" class="blockTitle">&nbsp;</div>
    <
div style="clear: both;"></div>
    <!-- 
gestion ANNONCEURsupprimer votre annonce -->
    <{if 
$annonce.candelete}>
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/supprimer.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsedit.php?op=delete&ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}>"  title="<{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}></a
    <{/if}>
    <
div style="clear: both;"></div>
    <!-- 
gestion ANNONCEURvoir toutes vos annonces -->
    <{if 
$annonce.uid 0}>
    <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/annonceur.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsuserlist.php?uid=<{$annonce.uid}>" alt="<{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}></a
    <{/if}> 
<{/if}>
<{/if}>
</
td>
</
tr>
</
table>
<!--- 
fin gestion par annonceur et admin --->


Correction
<!-- gestion ANNONCEUR ***** A REVOIR ADDITION CONDITIONS -->
        <{if 
not $preview}>
            
            <{if 
$annonce.isauthor}>
                <
td>
                    <
div id="centerCcolumn" class="blockTitle" alt="<{$smarty.const._MD_DIFFUADS_GESTIONAUTEUR}>" title="<{$smarty.const._MD_DIFFUADS_GESTIONAUTEUR}>"><{$smarty.const._MD_DIFFUADS_GESTIONAUTEUR}></div>
                    
                    <
div style="clear: both;"></div>
                    
                    <!-- 
gestion ANNONCEURmodifier votre annonce -->    
                    <{if 
$annonce.canedit}>
                        <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/modifier.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsedit.php?op=edit&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_MODIFIER_ANNCEUR}></a>
                    <{/if}>
                        
                    <
div style="clear: both;"></div>
                        
                    <!-- 
gestion ANNONCEURsuspendre et reactiver -->
                    <{if 
$annonce.suspend 0}>
                        <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/reprendre.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=stopandgo&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_NOSUSP_ANNCEUR}></a>
                    <{else}>
                        <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/suspendreproprio.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsitem.php?op=stopandgo&amp;ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_SUSP_ANNCEUR}></a
                    <{/if}>    
                        
                </
td>
                
                <
td>
                    <!-- 
mise en forme -->    
                    <
div id="centerCcolumn" class="blockTitle">&nbsp;</div>
                    
                    <
div style="clear: both;"></div>
                    
                    <!-- 
gestion ANNONCEURsupprimer votre annonce -->
                    <{if 
$annonce.candelete}>
                        <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/supprimer.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" title="<{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}>: <{$annonce.type}> <{$annonce.title}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsedit.php?op=delete&ads_id=<{$annonce.id}>" alt="<{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}>"  title="<{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_SUPPRIMER_ANNCEUR}></a
                    <{/if}>
                    
                    <
div style="clear: both;"></div>
                    
                    <!-- 
gestion ANNONCEURvoir toutes vos annonces -->
                    <{if 
$annonce.uid 0}>
                        <
img src="<{$xoops_url}>/modules/DiffuAds/images/icon/annonceur.png" border="0" alt="<{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}>" style="vertical-align: middle; padding: .2em;" />&nbsp;<a href="<{$xoops_url}>/modules/DiffuAds/adsuserlist.php?uid=<{$annonce.uid}>" alt="<{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}>" title="<{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}>"><{$smarty.const._MD_DIFFUADS_VOIRTOUT_ANNCEUR}></a
                    <{/if}> 
                </
td>
            
            <!-- ***** 
DEPLACEMENT CONDITION ***** -->
            <{/if}>
        
        <{/if}>

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

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