[SPIP] +2.1.12
[velocampus/web/www.git] / www / ecrire / configuration / referenceur.php
1 <?php
2
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
5 * *
6 * Copyright (c) 2001-2011 *
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 function configuration_referenceur_dist()
19 {
20 global $spip_lang_right;
21
22 $res = "<p>"._T('texte_multilinguisme')."</p>"
23 . "<div>"
24 . _T('info_multi_articles')
25 . "<div style='text-align: $spip_lang_right;'>"
26 . afficher_choix('multi_articles', $GLOBALS['meta']['multi_articles'],
27 array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
28 . "</div>"
29 . "</div>"
30 . "<div>"
31 . _T('info_multi_rubriques')
32 . "<div style='text-align: $spip_lang_right;'>"
33 . afficher_choix('multi_rubriques', $GLOBALS['meta']['multi_rubriques'],
34 array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
35 . "</div>"
36 . "</div>";
37
38 if ($GLOBALS['meta']['multi_rubriques'] == 'oui') {
39 $res .= "\n<div>"
40 . _T('info_multi_secteurs')
41 . "<div style='text-align: $spip_lang_right;'>"
42 . afficher_choix('multi_secteurs', $GLOBALS['meta']['multi_secteurs'],
43 array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
44 . "</div>"
45 . "</div>";
46 } else
47 $res .= "<input type='hidden' name='multi_secteurs' id='multi_secteurs' value='".$GLOBALS['meta']['multi_secteurs']."' />";
48
49 if (($GLOBALS['meta']['multi_rubriques'] == 'oui') OR ($GLOBALS['meta']['multi_articles'] == 'oui')) {
50 $res .= "<hr />"
51 . "<p>"._T('texte_multilinguisme_trad')."</p>";
52
53 $res .= _T('info_gerer_trad')
54 . "<div style='text-align: $spip_lang_right;'>"
55 . afficher_choix('gerer_trad', $GLOBALS['meta']['gerer_trad'],
56 array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
57 . "</div>";
58 } else
59 $res .= "<input type='hidden' name='gerer_trad' id='gerer_trad' value='".$GLOBALS['meta']['gerer_trad']."' />";
60
61 $res = debut_cadre_couleur("traductions-24.gif", true, "", _T('info_multilinguisme'))
62 . ajax_action_post('configurer', 'referenceur', 'config_multilang', '', $res)
63 . fin_cadre_couleur(true);
64
65 return ajax_action_greffe("configurer-referenceur", '', $res);
66 }
67 ?>