[ Index ] |
|
Code source de SPIP Agora 1.4 |
1 <?php 2 /***************************************************** 3 * This file is part of Agora, web based content management system. 4 * 5 * Agora is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; version 2 of the License. 8 * 9 * Agora is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details (file "COPYING"). 13 * 14 * Copyright © Arnaud Martin, Antoine Pitrou et Philippe Rivière. 15 * List of authors detailed in "copyright_fr.html" file. 16 * E-mail : agora@sig.premier-ministre.gouv.fr 17 * Web site : http://www.agora.gouv.fr 18 *****************************************************/ 19 require_once(dirname(__FILE__). "/include/bd/inc_cm_user_groups_factory.php"); 20 21 include ("inc.php"); 22 23 include_ecrire ("inc_mots.php"); 24 25 $authorization = &recuperer_instance_authorization('creerCMuserGroupe', $GLOBALS['connect_id_auteur']); 26 27 if ($new == 'oui') { 28 if ($authorization->isAuthorizedAction()) { 29 $id_groupe = ''; 30 $titre = filtrer_entites(_T('titre_nouveau_groupe')); 31 } 32 else { 33 echo _T('avis_acces_interdit'); 34 exit; 35 } 36 } 37 else { 38 $authorization = &recuperer_instance_authorization('modifierCMuserGroupe', $GLOBALS['connect_id_auteur']); 39 if ($authorization->isAuthorizedAction()) { 40 $cmUserGroupsMetier = &recuperer_instance_cm_user_groups(); 41 $loadOK = $cmUserGroupsMetier->load($id_groupe); 42 if (PEAR::isError($loadOK)) { 43 die($loadOK->getMessage()); 44 } 45 else { 46 $id_groupe = $cmUserGroupsMetier->getGroupeId(); 47 $titre = entites_html($cmUserGroupsMetier->getTitre()); 48 $ancien_titre = $titre; 49 } 50 } 51 else { 52 echo _T('avis_acces_interdit'); 53 exit; 54 } 55 } 56 57 debut_page("« $titre »", "administration", "newsletter"); 58 debut_gauche(); 59 60 debut_boite_info(); 61 echo "<div align='center'>\n"; 62 echo "<font face='Verdana,Arial,Helvetica,sans-serif' size='1'><b>INFOLETTRE NUMÉRO :</b></font>\n"; 63 echo "<br><font face='Verdana,Arial,Helvetica,sans-serif' size='6'><b>$id_newsletter</b></font>\n"; 64 icone_horizontale(_T('retour_info_gabarit'), "newsletter_admin.php?retour=nav&id_newsletter=$id_newsletter", 65 "newsletter-24.gif", "rien.gif"); 66 67 echo "</div>"; 68 fin_boite_info(); 69 70 debut_droite(); 71 72 debut_cadre_relief("redacteurs-24.gif"); 73 74 echo "\n<table cellpadding=0 cellspacing=0 border=0 width='100%'>"; 75 echo "<tr width='100%'>"; 76 77 echo "<td align='right' valign='top'>"; 78 icone(_T('icone_retour'), "newsletter_admin_groups.php?id_newsletter=$id_newsletter", "redacteurs-24.gif", "rien.gif"); 79 echo "</td>"; 80 echo "<td><img src='img_pack/rien.gif' width=5></td>\n"; 81 82 echo "<td width='100%' valign='top'>"; 83 echo "<font face='Verdana,Arial,Helvetica,sans-serif' size=1><b>" . _T('titre_cm_user_groups'). "</b><br></font>"; 84 gros_titre($titre); 85 echo aide("motscmusergroups"); 86 87 $authorization = &recuperer_instance_authorization('modifierCMuserGroupe', $GLOBALS['connect_id_auteur']); 88 89 if ($authorization->isAuthorizedAction()) { 90 echo "<p><font face='Verdana,Arial,Helvetica,sans-serif'>"; 91 echo "<FORM ACTION='newsletter_admin_groups.php' METHOD='post'>\n"; 92 echo "<INPUT TYPE='Hidden' NAME='modifier_groupe' VALUE=\"oui\">\n"; 93 echo "<INPUT TYPE='Hidden' NAME='id_groupe' VALUE=\"$id_groupe\">\n"; 94 echo "<INPUT TYPE='Hidden' NAME='id_newsletter' VALUE=\"$id_newsletter\">\n"; 95 echo "<INPUT TYPE='Hidden' NAME='ancien_titre' VALUE=\"$ancien_titre\">\n"; 96 debut_cadre_formulaire(); 97 echo "<b>" . _T('info_changer_nom_groupe'). "</b><br>\n"; 98 echo "<INPUT TYPE='Text' SIZE=40 CLASS='formo' NAME='titre' VALUE=\"$titre\">\n"; 99 echo "<p><div align='right'><INPUT TYPE='submit' CLASS='fondo' NAME='Valider' VALUE='" . _T('bouton_valider'). "'></div>"; 100 fin_cadre_formulaire(); 101 //} 102 } 103 else { 104 echo "<H3>" . _T('avis_non_acces_page'). "</H3>"; 105 } 106 107 echo "</td></tr></table>"; 108 109 fin_cadre_relief(); 110 111 fin_page(); 112 113 //formulaire_mots('cm', $id_groupe, $nouv_mot, $supp_mot, $cherche_mot, $flag_editable); 114 115 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |