[ 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 include ("inc.php"); 20 21 require_once (dirname(__FILE__). "/include/bd/inc_newsletter_factory.php"); 22 23 $newsletterMetier = &recuperer_instance_newsletter(); 24 25 if (isset($supprimerSqueletteHTML)) { 26 $newsletterMetier->setId($id_newsletter); 27 $newsletterMetier->setTextSkeleton(''); 28 $newsletterMetier->update(); 29 //$requete_delete_squel_html = "UPDATE spip_cm_lists SET lst_html_skeleton = '' WHERE lst_id = $id_newsletter"; 30 31 } 32 33 if (isset($supprimerSqueletteTexte)) { 34 $newsletterMetier->setId($id_newsletter); 35 $newsletterMetier->setTextSkeleton(''); 36 $newsletterMetier->update(); 37 //$requete_delete_squel_text = "UPDATE spip_cm_lists SET lst_text_skeleton = '' WHERE lst_id = $id_newsletter"; 38 39 } 40 41 debut_page("« $titre »", "administration", "newsletter"); 42 43 debut_gauche(); 44 45 debut_boite_info(); 46 echo "<div align='center'>\n"; 47 echo "<font face='Verdana,Arial,Helvetica,sans-serif' size='1'><b>LETTRE D'INFORMATION NUMÉRO :</b></font>\n"; 48 echo "<br><font face='Verdana,Arial,Helvetica,sans-serif' size='6'><b>$id_newsletter</b></font>\n"; 49 icone_horizontale("Retour à l'édition", "newsletter_admin_edit.php?id_newsletter=$id_newsletter", "newsletter-24.gif", "rien.gif"); 50 echo "</div>"; 51 fin_boite_info(); 52 53 debut_droite(); 54 debut_cadre_formulaire(); 55 56 echo "\n<table cellpadding=0 cellspacing=0 border=0>"; 57 echo "<tr width='100%'><td width='100%' valign='top' colspan=2>"; 58 gros_titre ('UPLOAD DE SQUELETTE'); 59 echo "</td></tr>"; 60 61 echo "<form enctype='multipart/form-data' action='newsletter_admin_edit.php' method='post'>"; 62 //echo '<table border=0>'; 63 echo '<tr>'; 64 echo '<td>'; 65 echo "<b>Type de squelette : </b>"; 66 echo '</td>'; 67 echo '<td>'; 68 echo "<select name='squel_type'>"; 69 echo "<option name='html' value='html'" . (($squel_type == "html") ? " selected" : ""). ">HTML</option>"; 70 echo "<option name='texte' value='texte'" . (($squel_type == "texte") ? " selected" : ""). ">TEXTE</option>"; 71 echo "</select><br>"; 72 echo '</td>'; 73 echo '</tr>'; 74 echo '<tr>'; 75 echo '<td>'; 76 echo "<input type='hidden' name='id_newsletter' value='$id_newsletter'>"; 77 echo '<b>Fichier à uploader: </b>'; 78 echo '</td>'; 79 echo '<td>'; 80 echo '<INPUT TYPE="FILE" NAME="uploadFile" SIZE=20>'; 81 echo '</td>'; 82 echo '</tr>'; 83 echo '<tr>'; 84 echo '<td>'; 85 echo '<b>Nom du fichier sur le serveur: </b>'; 86 echo '</td>'; 87 echo '<td>'; 88 echo '<INPUT TYPE="TEXT" NAME="saveAsFilename" SIZE=20>'; 89 echo '</td>'; 90 echo '</tr>'; 91 echo '<tr>'; 92 echo '<td colspan=2 align=center>'; 93 echo "<input type='submit' class='fondo' name='valider' value='Upload'>"; 94 echo '</td>'; 95 echo '</tr>'; 96 echo '</table>'; 97 echo '</form>'; 98 99 echo "</form>"; 100 101 fin_page(); 102 ?>
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 |