X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Finc%2Fregler_moderation.php;fp=www%2Fecrire%2Finc%2Fregler_moderation.php;h=59d30c5bc21309bd1a2e6049643ec8bd1b04b6aa;hp=0000000000000000000000000000000000000000;hb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed;hpb=aaf970bf4cdaf76689ecc10609048e18d073820c diff --git a/www/ecrire/inc/regler_moderation.php b/www/ecrire/inc/regler_moderation.php new file mode 100644 index 0000000..59d30c5 --- /dev/null +++ b/www/ecrire/inc/regler_moderation.php @@ -0,0 +1,76 @@ + $val) { + $opt .= "\n\t"; + } + + + $nb_forums = sql_countsel("spip_forum", "id_article=$id_article AND statut IN ('publie', 'off', 'prop', 'spam')"); + + if ($nb_forums) { + $res = '' // message pour l'appelant + . icone_horizontale( + _T('icone_suivi_forum', array('nb_forums' => $nb_forums)), + generer_url_ecrire("articles_forum","id_article=$id_article"), + "suivi-forum-24.gif", + "", + false + ); + } else + $res = ''; + + $res .= "\n\t" + . "\n\t
\n"; + + $atts = " style='float: $spip_lang_right' id='valider_regler_moderation_$id_article' class='visible_au_chargement'"; + + $res = ajax_action_post('regler_moderation', $id_article, $script, $args, $res,_T('bouton_changer'), $atts); + + return ajax_action_greffe("regler_moderation", $id_article, $res); +} +?>