[SPIP] ~2.1.12 -->2.1.25
[velocampus/web/www.git] / www / ecrire / configuration / breves.php
1 <?php
2
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
5 * *
6 * Copyright (c) 2001-2014 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
8 * *
9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
11 \***************************************************************************/
12
13 if (!defined('_ECRIRE_INC_VERSION')) return;
14
15 include_spip('inc/presentation');
16 include_spip('inc/config');
17
18 //
19 // Actives/desactiver les breves
20 //
21
22 function configuration_breves_dist(){
23
24 $activer_breves = $GLOBALS['meta']["activer_breves"];
25
26 $res = "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">"
27 . "<tr><td class='verdana2'>"
28 . _T('texte_breves')."<br />\n"
29 . _T('info_breves')
30 . "</td></tr>"
31 . "<tr><td align='center' class='verdana2'>"
32 . afficher_choix('activer_breves', $activer_breves,
33 array('oui' => _T('item_utiliser_breves'),
34 'non' => _T('item_non_utiliser_breves')), " &nbsp; ")
35 . "</td></tr>\n"
36 . "</table>\n";
37
38 $res = debut_cadre_trait_couleur("breve-24.gif", true, "", _T('titre_breves').aide ("confbreves"))
39 . ajax_action_post('configurer', 'breves', 'configuration','',$res)
40 . fin_cadre_trait_couleur(true);
41
42 return ajax_action_greffe('configurer-breves', '', $res);
43
44 }
45
46 ?>