Changeset 43936 in spip-zone


Ignore:
Timestamp:
Jan 28, 2011, 7:18:24 PM (9 years ago)
Author:
booz@…
Message:

tenir compte des messages de l'espace privé quand on modere par lot

Location:
_plugins_/forum/formulaires
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/forum/formulaires/gestion_forum.html

    r43841 r43936  
    2626<input type="hidden" name="ip" id="ip" value="#ENV{ip}" />
    2727<input type="hidden" name="recherche" id="recherche" value="#ENV{recherche}" />
     28<input type="hidden" name="type_message" id="type_message" value="#ENV{type_message}" />
     29
    2830
    2931<input type="hidden" name="debut_forum" id="debut_forum" value="#ENV{debut_forum}" />
  • _plugins_/forum/formulaires/gestion_forum.php

    r43840 r43936  
    9595        foreach ($forum_ids as $id) {
    9696                $row = sql_fetsel("*", "spip_forum", "id_forum=$id");
     97                if($statut == "publie" and $row['statut'] == "privoff")
     98                        $statut = "prive";
     99                if($statut == "off" and $row['statut'] == "prive")
     100                        $statut = "privoff";   
     101                if($statut == "off" and $row['statut'] == "privrac")
     102                        $statut = "privoff";           
    97103                instituer_un_forum($statut,$row);
    98104        }
  • _plugins_/forum/formulaires/inc-gestion_forum_liste.html

    r42563 r43936  
    2626        <li class="item forum statut_#STATUT[ (#COMPTEUR_BOUCLE|alterner{'','odd'})]" id='forum#ID_FORUM'>
    2727               
    28                 <input type="checkbox" class="checkbox select_forum" name="forum_ids[]" value="#ID_FORUM"[(#ENV{id_forum}|oui) checked="checked"] />
     28                [(#STATUT|in_array{[(#ARRAY{0,'privoff',1,'privadm'})]}|non)
     29                <input type="checkbox" class="checkbox select_forum" name="forum_ids&#91;&#93;" value="[(#ID_FORUM)]"[(#ENV{id_forum}|oui) checked="checked"] />
     30                ]
    2931               
    3032                [(#REM) etrange mais en collant le code de cet inclure
Note: See TracChangeset for help on using the changeset viewer.