X-Git-Url: http://olivier.miskin.fr/git/?a=blobdiff_plain;f=base%2Fsouscription.php;h=34f3315fbd9fe75a99f834518e138daa328e9072;hb=bd3b9a2e39445352213691f849c6ae63b56bef70;hp=85069dd42ecf3499aff0c89567c2b8c351e2bf20;hpb=512add64063389b466af8f26fb1172abec1d4b6a;p=spip_souscriptions.git diff --git a/base/souscription.php b/base/souscription.php index 85069dd..34f3315 100644 --- a/base/souscription.php +++ b/base/souscription.php @@ -54,6 +54,7 @@ function souscription_declarer_tables_objets_sql($tables) { "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 ''", @@ -68,10 +69,15 @@ function souscription_declarer_tables_objets_sql($tables) { 'date' => "date_souscription", '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(), + 'rechercher_champs' => array("id_souscription" => 1, + "courriel" => 1, + "nom" => 1, + "prenom" => 1, + "adresse" => 1, + "ville" => 1, + "code_postal" => 1 + ), 'join' => array("id_transaction" => "id_transaction"), - /* 'join' => array("id_souscription_campagne" => "id_souscription_campagne"), */ - /* 'tables_jointures' => array('souscription_campagnes'), */ 'tables_jointures' => array('spip_transactions'), ); @@ -83,8 +89,12 @@ 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 ''", "titre" => "text NOT NULL DEFAULT ''", "texte" => "longtext NOT NULL DEFAULT ''", + "configuration_specifique" => "varchar(3) NOT NULL DEFAULT ''", + "type_saisie" => "varchar(255) NOT NULL DEFAULT ''", + "montants" => "text NOT NULL DEFAULT ''", "statut" => "varchar(255) NOT NULL DEFAULT 0", "date" => "datetime NOT NULL DEFAULT '0000-00-00 00:00:00'", "maj" => "TIMESTAMP" @@ -94,10 +104,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', 'configuration_specifique', 'type_saisie', 'montants'), + 'champs_versionnes' => array('objectif', 'titre', 'texte', 'objectif_initial', 'type_objectif', 'objectif_limiter', 'configuration_specifique', 'type_saisie', 'montants'), 'rechercher_champs' => array(), - /* 'tables_jointures' => array('spip_souscription_campagnes'), */ ); return $tables;