[ 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('creerCMuserGroupeInstance', $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('modifierCMuserGroupeInstance', $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>LETTRE D'INFORMATION NUMÉRO :</b></font>\n"; 63 echo "<br><font face='Verdana,Arial,Helvetica,sans-serif' size='6'><b>$id_post</b></font>\n"; 64 icone_horizontale(_T('retour_info_gabarit'), "postinfo.php?retour=nav&id_newsletter=$id_newsletter&id_post=$id_post", "newsletter-24.gif", "rien.gif"); 65 66 echo "</div>"; 67 fin_boite_info(); 68 69 debut_droite(); 70 71 debut_cadre_relief ("redacteurs-24.gif"); 72 73 echo "\n<table cellpadding=0 cellspacing=0 border=0 width='100%'>"; 74 echo "<tr width='100%'>"; 75 76 echo "<td align='right' valign='top'>"; 77 icone(_T('icone_retour'), "post_admin_groups.php?id_post=$id_post&id_newsletter=$id_newsletter", "redacteurs-24.gif", "rien.gif"); 78 echo "</td>"; 79 echo "<td><img src='img_pack/rien.gif' width=5></td>\n"; 80 81 echo "<td width='100%' valign='top'>"; 82 echo "<font face='Verdana,Arial,Helvetica,sans-serif' size=1><b>" . _T('titre_cm_user_groups'). "</b><br></font>"; 83 gros_titre ($titre); 84 echo aide("motscmusergroups"); 85 86 $authorization = &recuperer_instance_authorization('modifierCMuserGroupeInstance', $GLOBALS['connect_id_auteur']); 87 88 if ($authorization->isAuthorizedAction()) { 89 echo "<p><font face='Verdana,Arial,Helvetica,sans-serif'>"; 90 echo "<FORM ACTION='post_admin_groups.php' METHOD='post'>\n"; 91 echo "<INPUT TYPE='Hidden' NAME='modifier_groupe' VALUE=\"oui\">\n"; 92 echo "<INPUT TYPE='Hidden' NAME='id_groupe' VALUE=\"$id_groupe\">\n"; 93 echo "<INPUT TYPE='Hidden' NAME='id_newsletter' VALUE=\"$id_newsletter\">\n"; 94 echo "<INPUT TYPE='Hidden' NAME='id_post' VALUE=\"$id_post\">\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 ?>
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 |