X-Git-Url: http://olivier.miskin.fr/git/?a=blobdiff_plain;f=base%2Fsouscription.php;h=4429e1932604f7b6ecc9a5121f267de49bcfec1c;hb=c92914b1bfd980452d3ad30dc60afb9fb65b8f46;hp=d20b75e6118ebf6c501b9881151e75f85c51d9d5;hpb=e4e52b6560b0230c44668bdab9460434a2427df1;p=spip_souscriptions.git diff --git a/base/souscription.php b/base/souscription.php index d20b75e..4429e19 100644 --- a/base/souscription.php +++ b/base/souscription.php @@ -53,8 +53,11 @@ function souscription_declarer_tables_objets_sql($tables) { "code_postal" => "text NOT NULL DEFAULT ''", "adresse" => "text NOT NULL DEFAULT ''", "ville" => "text NOT NULL DEFAULT ''", + "pays" => "text NOT NULL DEFAULT ''", + "telephone" => "text NOT NULL DEFAULT ''", "recu_fiscal" => "varchar(3) NOT NULL DEFAULT ''", "type_souscription" => "varchar(255) NOT NULL DEFAULT ''", + "informer_comite_local" => "varchar(3) NOT NULL DEFAULT ''", "envoyer_info" => "varchar(3) NOT NULL DEFAULT ''", "date_souscription " => "datetime NOT NULL DEFAULT '0000-00-00 00:00:00'", "maj" => "TIMESTAMP" @@ -64,12 +67,10 @@ function souscription_declarer_tables_objets_sql($tables) { "KEY id_souscription_campagne" => "id_souscription_campagne"), 'titre' => "nom AS titre, '' AS lang", 'date' => "date_souscription", - 'champs_editables' => array('courriel', 'nom', 'prenom', 'code_postal', 'adresse', 'ville', 'recu_fiscal', 'envoyer_info'), - 'champs_versionnes' => array('courriel', 'nom', 'prenom', 'code_postal', 'adresse', 'ville', 'recu_fiscal', 'envoyer_info'), + 'champs_editables' => array('courriel', 'nom', 'prenom', 'code_postal', 'adresse', 'ville', 'pays', 'recu_fiscal', 'envoyer_info'), + 'champs_versionnes' => array('courriel', 'nom', 'prenom', 'code_postal', 'adresse', 'ville', 'pays', 'recu_fiscal', 'envoyer_info'), 'rechercher_champs' => array(), 'join' => array("id_transaction" => "id_transaction"), - /* 'join' => array("id_souscription_campagne" => "id_souscription_campagne"), */ - /* 'tables_jointures' => array('souscription_campagnes'), */ 'tables_jointures' => array('spip_transactions'), ); @@ -81,6 +82,7 @@ function souscription_declarer_tables_objets_sql($tables) { "objectif" => "int(11) NOT NULL DEFAULT 0", "objectif_initial" => "int(11) NOT NULL DEFAULT 0", "type_objectif" => "varchar(255) NOT NULL DEFAULT 0", + "objectif_limiter" => "varchar(3) NOT NULL DEFAULT 0", "titre" => "text NOT NULL DEFAULT ''", "texte" => "longtext NOT NULL DEFAULT ''", "statut" => "varchar(255) NOT NULL DEFAULT 0", @@ -92,10 +94,9 @@ function souscription_declarer_tables_objets_sql($tables) { ), 'titre' => "titre AS titre, '' AS lang", 'date' => "date", - 'champs_editables' => array('objectif', 'titre', 'texte', 'objectif_initial', 'type_objectif'), - 'champs_versionnes' => array('objectif', 'titre', 'texte', 'objectif_initial', 'type_objectif'), + 'champs_editables' => array('objectif', 'titre', 'texte', 'objectif_initial', 'type_objectif', 'objectif_limiter'), + 'champs_versionnes' => array('objectif', 'titre', 'texte', 'objectif_initial', 'type_objectif', 'objectif_limiter'), 'rechercher_champs' => array(), - /* 'tables_jointures' => array('spip_souscription_campagnes'), */ ); return $tables;