1 |
<?php |
2 |
//$Id: contrainte.import.inc.php 4598 2015-04-19 20:48:30Z tbenita $ |
3 |
//gen openMairie le 19/04/2015 22:33 |
4 |
|
5 |
$import= "Insertion dans la table contrainte voir rec/import_utilisateur.inc"; |
6 |
$table= DB_PREFIXE."contrainte"; |
7 |
$id='contrainte'; // numerotation automatique |
8 |
$verrou=1;// =0 pas de mise a jour de la base / =1 mise a jour |
9 |
$fic_rejet=1; // =0 pas de fichier pour relance / =1 fichier relance traitement |
10 |
$ligne1=1;// = 1 : 1ere ligne contient nom des champs / o sinon |
11 |
/** |
12 |
* |
13 |
*/ |
14 |
$fields = array( |
15 |
"contrainte" => array( |
16 |
"notnull" => "1", |
17 |
"type" => "int", |
18 |
"len" => "11", |
19 |
), |
20 |
"numero" => array( |
21 |
"notnull" => "", |
22 |
"type" => "string", |
23 |
"len" => "250", |
24 |
), |
25 |
"nature" => array( |
26 |
"notnull" => "1", |
27 |
"type" => "string", |
28 |
"len" => "10", |
29 |
), |
30 |
"groupe" => array( |
31 |
"notnull" => "", |
32 |
"type" => "string", |
33 |
"len" => "250", |
34 |
), |
35 |
"sousgroupe" => array( |
36 |
"notnull" => "", |
37 |
"type" => "string", |
38 |
"len" => "250", |
39 |
), |
40 |
"libelle" => array( |
41 |
"notnull" => "1", |
42 |
"type" => "string", |
43 |
"len" => "250", |
44 |
), |
45 |
"texte" => array( |
46 |
"notnull" => "", |
47 |
"type" => "blob", |
48 |
"len" => "-5", |
49 |
), |
50 |
"no_ordre" => array( |
51 |
"notnull" => "", |
52 |
"type" => "int", |
53 |
"len" => "11", |
54 |
), |
55 |
"reference" => array( |
56 |
"notnull" => "", |
57 |
"type" => "bool", |
58 |
"len" => "1", |
59 |
), |
60 |
"service_consulte" => array( |
61 |
"notnull" => "", |
62 |
"type" => "bool", |
63 |
"len" => "1", |
64 |
), |
65 |
"om_validite_debut" => array( |
66 |
"notnull" => "", |
67 |
"type" => "date", |
68 |
"len" => "12", |
69 |
), |
70 |
"om_validite_fin" => array( |
71 |
"notnull" => "", |
72 |
"type" => "date", |
73 |
"len" => "12", |
74 |
), |
75 |
"om_collectivite" => array( |
76 |
"notnull" => "1", |
77 |
"type" => "int", |
78 |
"len" => "11", |
79 |
"fkey" => array( |
80 |
"foreign_table_name" => "om_collectivite", |
81 |
"foreign_column_name" => "om_collectivite", |
82 |
"sql_exist" => "select * from ".DB_PREFIXE."om_collectivite where om_collectivite = '", |
83 |
), |
84 |
), |
85 |
); |
86 |
?> |