[SPIP] +2.1.12
[velocampus/web/www.git] / www / ecrire / configuration / documents.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 //
19 // Gestion des documents joints
20 //
21
22 function configuration_documents_dist(){
23 global $spip_lang_left, $spip_lang_right;
24
25 $res = "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">";
26 $res .= "<tr><td class='verdana2'>";
27 $res .= _T('texte_documents_joints');
28 $res .= _T('texte_documents_joints_2');
29 $res .= "</td></tr>";
30
31 $res .= "<tr>";
32 $res .= "<td align='$spip_lang_left' class='verdana2'>";
33 $res .= afficher_choix('documents_article',
34 $GLOBALS['meta']["documents_article"],
35 array('oui' => _T('item_autoriser_documents_joints'),
36 'non' => _T('item_non_autoriser_documents_joints')), "<br />\n");
37 $res .= "<br /><br />\n";
38 $res .= afficher_choix('documents_rubrique',
39 $GLOBALS['meta']["documents_rubrique"],
40 array('oui' => _T('item_autoriser_documents_joints_rubriques'),
41 'non' => _T('item_non_autoriser_documents_joints_rubriques')), "<br />\n");
42 $res .= "<br /><br />\n";
43 $res .= afficher_choix('documents_date',
44 $GLOBALS['meta']["documents_date"],
45 array('oui' => _T('item_autoriser_selectionner_date_en_ligne'),
46 'non' => _T('item_non_autoriser_selectionner_date_en_ligne')), "<br />\n");
47 $res .= "</td></tr>";
48 $res .= "</table>\n";
49
50 $res = debut_cadre_trait_couleur("doc-24.gif", true, "", _T('titre_documents_joints'))
51 . ajax_action_post('configurer', 'documents', 'configuration','',$res)
52 . fin_cadre_trait_couleur(true);
53
54 return ajax_action_greffe('configurer-documents', '', $res);
55 }
56
57 ?>