Changeset 20341 in spip-zone


Ignore:
Timestamp:
May 7, 2008, 12:11:10 PM (11 years ago)
Author:
cam.lafit@…
Message:

On enleve du code inutile, c'est une boucle sur mots_partout qui gére cet aspect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_test_/mots_partout/1.9.3/exec/mots_type.php

    r20329 r20341  
    131131        . "<div style='padding: 5px; border: 1px dashed #aaaaaa; background-color: #dddddd;'>"
    132132        . "<b>"._T('info_mots_cles_association')."</b>";
    133 /*             
    134         //les affectations possibles dependent de la liste définie dans la table de mots_partout
    135         . "<br />";
    136         $checked =  ($articles == "oui") ? "checked='checked'" : '';
    137         $res .= "<input type='checkbox' name='articles' value='oui' $checked id='articles' /> <label for='articles'>"._T('item_mots_cles_association_articles')."</label><br />";
    138         $activer_breves = $GLOBALS['meta']["activer_breves"];
    139 
    140         if ($activer_breves != "non"){
    141                 $checked =  ($breves == "oui") ? "checked='checked'" : '';
    142                        
    143                 $res .= "<input type='checkbox' name='breves' value='oui' $checked id='breves' /> <label for='breves'>"._T('item_mots_cles_association_breves')."</label><br />";
    144         } else {
    145                 $res .= "<input type='hidden' name='breves' value='non' />";
    146         }
    147         $checked = ($rubriques == "oui") ? "checked='checked'" : '';   
    148 
    149         $res .= "<input type='checkbox' name='rubriques' value='oui' $checked id='rubriques' /> <label for='rubriques'>"._T('item_mots_cles_association_rubriques')."</label><br />";
    150 
    151         $checked = ($syndic == "oui") ? "checked='checked'" : '';
    152         $res .= "<input type='checkbox' name='syndic' value='oui' $checked id='syndic' /> <label for='syndic'>"._T('item_mots_cles_association_sites')."</label>";
    153 */     
     133
    154134        foreach($tables_installees as $chose => $m) {
    155135                if ($chose!='forum'){
Note: See TracChangeset for help on using the changeset viewer.