From 615c67ce7726b6591107e3af5d699dc96c84c6de Mon Sep 17 00:00:00 2001 From: tofulm Date: Sat, 25 Apr 2020 00:07:22 +0200 Subject: [PATCH] ajout de la conf des pdfs pour chaque message --- action/gamuform_add_pdf.php | 27 +++++++++++++++++++++++++++ base/gamumail.php | 13 +++++++------ inclure/gamumail_config.html | 17 ++++++++++++++++- inclure/gamumail_pdfs.html | 27 +++++++++++++++++++++++++++ 4 files changed, 77 insertions(+), 7 deletions(-) create mode 100644 action/gamuform_add_pdf.php create mode 100644 inclure/gamumail_pdfs.html diff --git a/action/gamuform_add_pdf.php b/action/gamuform_add_pdf.php new file mode 100644 index 0000000..536c78b --- /dev/null +++ b/action/gamuform_add_pdf.php @@ -0,0 +1,27 @@ + intval($id_gamumail)]); + } + + // Cache + include_spip('inc/invalideur'); + suivre_invalideur("id='id_gamumail/$id_gamumail'"); + +} diff --git a/base/gamumail.php b/base/gamumail.php index 25bfbb3..0a1cb7a 100644 --- a/base/gamumail.php +++ b/base/gamumail.php @@ -25,7 +25,8 @@ if (!defined('_ECRIRE_INC_VERSION')) { */ function gamumail_declarer_tables_interfaces($interfaces) { - $interfaces['table_des_tables']['gamumails'] = 'gamumails'; + $interfaces['table_des_tables']['gamumails'] = 'gamumails'; + $interfaces['table_des_tables']['gamumail_pdfs'] = 'gamumail_pdfs'; return $interfaces; } @@ -78,11 +79,11 @@ function gamumail_declarer_tables_objets_sql($tables) { 'type' => 'gamumail_pdf', 'principale' => 'oui', 'field'=> array( - 'id_gamumail_pdf' => 'bigint(21) NOT NULL', - 'id_gamumail' => 'bigint(21) NOT NULL', - 'pdf' => 'varchar(255) NOT NULL DEFAULT ""', - 'args' => 'varchar(255) NOT NULL DEFAULT ""', - 'maj' => 'TIMESTAMP' + 'id_gamumail_pdf' => 'bigint(21) NOT NULL', + 'id_gamumail' => 'bigint(21) NOT NULL', + 'pdf' => 'varchar(255) NOT NULL DEFAULT ""', + 'args' => 'varchar(255) NOT NULL DEFAULT ""', + 'maj' => 'TIMESTAMP' ), 'key' => array( 'PRIMARY KEY' => 'id_gamumail_pdf', diff --git a/inclure/gamumail_config.html b/inclure/gamumail_config.html index e8f42be..9ef23b9 100644 --- a/inclure/gamumail_config.html +++ b/inclure/gamumail_config.html @@ -1,4 +1,4 @@ - +

Configuration des mails

@@ -49,6 +58,12 @@
Message :
[(#TEXTE|sinon{cliquez})]
+
+ +
+
+ #FORMULAIRE_BIGFORM{gamumail, #ID_GAMUMAIL} +
diff --git a/inclure/gamumail_pdfs.html b/inclure/gamumail_pdfs.html new file mode 100644 index 0000000..99dcb9c --- /dev/null +++ b/inclure/gamumail_pdfs.html @@ -0,0 +1,27 @@ +
+ [(#AUTORISER{webmestre}|oui) + + + pdf + + ] + + +
+
+

Nom du fichier pdf + [(#PDF|sinon{cliquer})] +

+
+
+

Nom des args + [(#ARGS|sinon{cliquer})] +

+

Si plusieurs arguments, les séparer par une virgule

+
+
+ + + + + +