Changeset 59713 in spip-zone
- Timestamp:
- Mar 25, 2012, 2:08:50 PM (9 years ago)
- Location:
- _plugins_/spip-lettres/branches/spip-lettres-4
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/spip-lettres/branches/spip-lettres-4/action/validation_abonnements.php
r53453 r59713 42 42 } 43 43 44 if ($id_theme = intval($_REQUEST['id_theme']) AND sql_countsel ("spip_themes", "id_theme=$id_theme") == 1) 45 $redirection .= "&id_theme=$id_theme"; 46 44 47 header('Location: ' . $redirection); 45 48 exit(); -
_plugins_/spip-lettres/branches/spip-lettres-4/action/validation_changement_format.php
r53453 r59713 42 42 } 43 43 44 if ($id_theme = intval($_REQUEST['id_theme']) AND sql_countsel ("spip_themes", "id_theme=$id_theme") == 1) 45 $redirection .= "&id_theme=$id_theme"; 46 44 47 header('Location: ' . $redirection); 45 48 exit(); -
_plugins_/spip-lettres/branches/spip-lettres-4/action/validation_desabonnements.php
r53453 r59713 47 47 } 48 48 49 if ($id_theme = intval($_REQUEST['id_theme']) AND sql_countsel ("spip_themes", "id_theme=$id_theme") == 1) 50 $redirection .= "&id_theme=$id_theme"; 51 49 52 header('Location: ' . $redirection); 50 53 exit(); -
_plugins_/spip-lettres/branches/spip-lettres-4/classes/abonne.php
r53453 r59713 251 251 } 252 252 $parametres = 'lang='.$arguments['lang'].$chaine_rubriques.'&code='.$this->code.'&email='.$this->email.$chaine_format; 253 if (isset($arguments['id_theme'])) 254 $parametres .= '&id_theme='.$arguments['id_theme']; 253 255 254 256 $objet = recuperer_fond("emails/lettres_".$action."_titre", $arguments); -
_plugins_/spip-lettres/branches/spip-lettres-4/formulaires/inc_themes.html
r48782 r59713 1 <BOUCLE_themes(THEMES) {par num titre} >1 <BOUCLE_themes(THEMES) {par num titre}{id_theme ?}> 2 2 <div class="choix"> 3 3 <input type="checkbox" class="checkbox" name="rubriques[]" value="#ID_RUBRIQUE" id="theme_#ID_THEME"[ (#ID_RUBRIQUE|in_any{#ENV**{rubriques}}|?{'checked="checked"'})] /> -
_plugins_/spip-lettres/branches/spip-lettres-4/formulaires/lettres.html
r54289 r59713 5 5 [<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>] 6 6 7 <BOUCLE_rt(THEMES){id_theme = #ENV{id_theme}}>#SET{titre_theme, #TITRE} #SET{rubrique_theme, #ID_RUBRIQUE}</BOUCLE_rt> 8 7 9 [(#ENV{editable}) 8 10 <form method="post" action="#ENV{action}#formulaire_lettres"> … … 10 12 #ACTION_FORMULAIRE{#ENV{action}} 11 13 14 [(#GET{titre_theme}|oui)[<input type="hidden" name="id_theme" value="(#ENV{id_theme})"/>]] 15 12 16 <fieldset> 13 17 14 [<legend> 15 (#NOOP|lettres_un_seul_theme|?{ 16 <:lettres:lettre_information:> : [(#NOOP|lettres_titre_theme_par_defaut)], 17 <:lettres:lettres_information:>}) 18 <legend> 19 [(#GET{titre_theme}|?{ 20 [<:lettres:lettre_information:> : (#GET{titre_theme})] 21 [<input type="hidden" name="rubriques[]" value="(#GET{rubrique_theme})"/>] 22 , 23 [(#NOOP|lettres_un_seul_theme|?{ 24 <:lettres:lettre_information:> : [(#NOOP|lettres_titre_theme_par_defaut)] 25 <input type="hidden" name="rubriques[]" value="[(#NOOP|lettres_rubrique_theme_par_defaut)]"/> 26 , 27 <:lettres:lettres_information:>}) 28 ] 29 })] 18 30 </legend> 19 ]20 31 21 32 <ul> 22 [(#NOOP|lettres_un_seul_theme|oui)<li><input type="hidden" name="rubriques[]" value="[(#NOOP|lettres_rubrique_theme_par_defaut)]"/></li>] 23 [(#NOOP|lettres_un_seul_theme|non) 33 [(#GET{titre_theme}|non) [(#NOOP|lettres_un_seul_theme|non) 24 34 <li class="editer_themes obligatoire[ (#ENV*{erreurs}|table_valeur{rubriques}|oui)erreur]"> 25 35 <label><:lettres:themes:></label> … … 27 37 [<span class="erreur_message">(#ENV*{erreurs}|table_valeur{rubriques})</span>] 28 38 </li> 29 ] 39 ]] 30 40 <li class="editer_nom"> 31 41 <label for="nom"><:lettres:nom:></label> -
_plugins_/spip-lettres/branches/spip-lettres-4/formulaires/lettres.php
r53453 r59713 50 50 'choix' => 'abonnements' 51 51 ); 52 if ($id_theme = intval(_request('id_theme')) AND sql_countsel ("spip_themes", "id_theme=$id_theme") == 1) 53 $valeurs['id_theme'] = $id_theme; 54 52 55 return $valeurs; 53 56 } … … 60 63 $format = _request('format'); 61 64 $choix = _request('choix'); 62 65 if (intval(_request('id_theme')) == _request('id_theme') 66 AND sql_countsel ("spip_themes", "id_theme="._request(id_theme)) == 1) 67 $id_theme = _request('id_theme'); 68 63 69 $erreurs = array(); 64 70 … … 104 110 $choix = _request('choix'); 105 111 $lang = $GLOBALS['spip_lang']; 112 if (intval(_request('id_theme')) == _request('id_theme') 113 AND sql_countsel ("spip_themes", "id_theme="._request(id_theme)) == 1) 114 $id_theme = _request('id_theme'); 115 else $id_theme = null; 106 116 107 117 switch($choix) { … … 118 128 'lang' => $lang, 119 129 'rubriques' => $rubriques, 120 'themes' => $themes 130 'themes' => $themes, 131 'id_theme' => $id_theme 121 132 ) 122 133 ); … … 132 143 'lang' => $lang, 133 144 'rubriques' => $rubriques, 134 'themes' => $themes 145 'themes' => $themes, 146 'id_theme' => $id_theme 135 147 ) 136 148 ); … … 144 156 array( 145 157 'lang' => $lang, 146 'format' => $format 158 'format' => $format, 159 'id_theme' => $id_theme 147 160 ) 148 161 );
Note: See TracChangeset
for help on using the changeset viewer.