18 |
$form->setVal("pays",'France'); |
$form->setVal("pays",'France'); |
19 |
} |
} |
20 |
} |
} |
|
|
|
|
/* |
|
|
* Ajout du fielset |
|
|
* Add fieldset |
|
|
*/ |
|
|
function setLayout(&$form, $maj){ |
|
|
if ( $maj < 2 OR $maj == 3 ) { |
|
|
|
|
|
$form->setBloc('particulier_civilite','D',"", "bloc_demandeur"); |
|
|
$form->setBloc('particulier_civilite','D',"", "particulier_fields"); |
|
|
|
|
|
$form->setBloc('particulier_civilite','D',""); |
|
|
$form->setBloc('particulier_civilite','F'); |
|
|
|
|
|
$form->setBloc('particulier_nom','D',"","group search_particulier_fields"); |
|
|
$form->setBloc('particulier_prenom','F'); |
|
|
|
|
|
$form->setBloc('particulier_date_naissance','D',"","group"); |
|
|
$form->setBloc('particulier_commune_naissance','F'); |
|
|
|
|
|
$form->setBloc('particulier_departement_naissance','D',""); |
|
|
$form->setBloc('particulier_departement_naissance','F'); |
|
|
|
|
|
$form->setBloc('particulier_departement_naissance','F'); |
|
|
|
|
|
$form->setBloc('personne_morale_denomination','D',"", "personne_morale_fields"); |
|
|
|
|
|
$form->setBloc('personne_morale_denomination','D',"","group"); |
|
|
$form->setBloc('personne_morale_denomination','D',"", "search_personne_morale_fields"); |
|
|
$form->setBloc('personne_morale_denomination','F'); |
|
|
$form->setBloc('personne_morale_raison_sociale','F'); |
|
|
|
|
|
$form->setBloc('personne_morale_siret','D',""); |
|
|
$form->setBloc('personne_morale_siret','F'); |
|
|
|
|
|
$form->setBloc('personne_morale_categorie_juridique','D',""); |
|
|
$form->setBloc('personne_morale_categorie_juridique','F'); |
|
|
|
|
|
$form->setBloc('personne_morale_civilite','D',""); |
|
|
$form->setBloc('personne_morale_civilite','F'); |
|
|
|
|
|
$form->setBloc('personne_morale_nom','D',"", "group"); |
|
|
$form->setBloc('personne_morale_nom','D',"", "search_personne_morale_fields"); |
|
|
$form->setBloc('personne_morale_nom','F'); |
|
|
$form->setBloc('personne_morale_prenom','F'); |
|
|
|
|
|
$form->setBloc('personne_morale_prenom','F'); |
|
|
|
|
|
$form->setBloc('numero','D',""); |
|
|
|
|
|
$form->setBloc('numero','D',"","group"); |
|
|
$form->setBloc('voie','F'); |
|
|
|
|
|
$form->setBloc('complement','D',""); |
|
|
$form->setBloc('complement','F'); |
|
|
|
|
|
$form->setBloc('lieu_dit','D',"","group"); |
|
|
$form->setBloc('localite','F'); |
|
|
|
|
|
$form->setBloc('code_postal','D',"","group"); |
|
|
$form->setBloc('cedex','F'); |
|
|
|
|
|
$form->setBloc('pays','D',"", "","group"); |
|
|
$form->setBloc('division_territoriale','F'); |
|
|
|
|
|
$form->setBloc('telephone_fixe','D',"", "group"); |
|
|
$form->setBloc('indicatif','F'); |
|
|
|
|
|
$form->setBloc('frequent','F'); |
|
|
$form->setBloc('frequent','F'); |
|
|
} |
|
|
} |
|
21 |
|
|
22 |
/* |
/* |
23 |
* Select pour les champs qualite et type_demandeur |
* Select pour les champs qualite et type_demandeur |
132 |
// |
// |
133 |
return $datasubmit; |
return $datasubmit; |
134 |
} |
} |
135 |
|
|
136 |
|
/** |
137 |
|
* Synthèse des demandeurs pour le formulaire de la demande |
138 |
|
*/ |
139 |
|
function afficherSynthese($type) { |
140 |
|
echo "<div class=\"".$type."\">"; |
141 |
|
if($this->val[array_search('qualite', $this->champs)] == 'particulier') { |
142 |
|
$sql = "SELECT libelle FROM civilite WHERE civilite=". |
143 |
|
$this->val[array_search('civilite', $this->champs)]; |
144 |
|
$civilite = $this->f->db->getone($sql); |
145 |
|
$this->f->addToLog("db->getone(\"".$sql."\");", VERBOSE_MODE); |
146 |
|
$this->f->isDatabaseError($civilite); |
147 |
|
echo $civilite." ". |
148 |
|
$this->val[array_search('particulier_nom', $this->champs)]." ". |
149 |
|
$this->val[array_search('particulier_prenom', $this->champs)]."<br/>"; |
150 |
|
} else { |
151 |
|
echo $this->val[array_search('personne_morale_raison_sociale', $this->champs)]." ". |
152 |
|
$this->val[array_search('personne_morale_denomination', $this->champs)]."<br/>"; |
153 |
|
$sql = "SELECT libelle FROM civilite WHERE civilite=". |
154 |
|
$this->val[array_search('personne_morale_civilite', $this->champs)]; |
155 |
|
$civilite = $this->f->db->getone($sql); |
156 |
|
$this->f->addToLog("db->getone(\"".$sql."\");", VERBOSE_MODE); |
157 |
|
$this->f->isDatabaseError($civilite); |
158 |
|
echo $civilite." ". |
159 |
|
$this->val[array_search('personne_morale_nom', $this->champs)]." ". |
160 |
|
$this->val[array_search('personne_morale_nom', $this->champs)]."<br/>"; |
161 |
|
} |
162 |
|
echo (($this->val[array_search('numero', $this->champs)] != "")? |
163 |
|
$this->val[array_search('numero', $this->champs)]." " : ""). |
164 |
|
(($this->val[array_search('voie', $this->champs)] != "")? |
165 |
|
$this->val[array_search('voie', $this->champs)]." " : ""). |
166 |
|
(($this->val[array_search('complement', $this->champs)] != "")? |
167 |
|
$this->val[array_search('complement', $this->champs)]." " : "")."<br/>". |
168 |
|
(($this->val[array_search('code_postal', $this->champs)] != "")? |
169 |
|
$this->val[array_search('code_postal', $this->champs)]." " : ""). |
170 |
|
(($this->val[array_search('localite', $this->champs)] != "")? |
171 |
|
$this->val[array_search('localite', $this->champs)]." " : ""). |
172 |
|
(($this->val[array_search('bp', $this->champs)] != "")? |
173 |
|
$this->val[array_search('bp', $this->champs)]." " : ""). |
174 |
|
(($this->val[array_search('cedex', $this->champs)] != "")? |
175 |
|
$this->val[array_search('cedex', $this->champs)]." " : "")."<br/>". |
176 |
|
(($this->val[array_search('telephone_fixe', $this->champs)] != "")? |
177 |
|
$this->val[array_search('telephone_fixe', $this->champs)]." " : ""). |
178 |
|
(($this->val[array_search('telephone_mobile', $this->champs)] != "")? |
179 |
|
$this->val[array_search('telephone_mobile', $this->champs)]." " : ""); |
180 |
|
echo "</div>"; |
181 |
|
} |
182 |
|
|
183 |
}// fin classe |
}// fin classe |
184 |
?> |
?> |