Line 14... |
Line 14... |
14 |
// | annuaire_COTISATION |
|
14 |
// | annuaire_COTISATION |
|
15 |
// +--------------------------------------------------------------------------------+
|
15 |
// +--------------------------------------------------------------------------------+
|
16 |
// | Auteur : Alexandre Granier <alexandre@tela-botanica.org> |
|
16 |
// | Auteur : Alexandre Granier <alexandre@tela-botanica.org> |
|
17 |
// +--------------------------------------------------------------------------------+
|
17 |
// +--------------------------------------------------------------------------------+
|
18 |
//
|
18 |
//
|
19 |
// $Id: edition_fiche.php,v 1.4 2007-04-06 08:35:46 neiluj Exp $
|
19 |
// $Id: edition_fiche.php,v 1.5 2007-04-11 08:30:12 neiluj Exp $
|
Line 20... |
Line 20... |
20 |
|
20 |
|
Line 21... |
Line 21... |
21 |
|
21 |
|
Line 147... |
Line 147... |
147 |
if ($field_ == INS_CHAMPS_PAYS) {
|
147 |
if ($field_ == INS_CHAMPS_PAYS) {
|
148 |
$field_ = INS_CHAMPS_PAYS ;
|
148 |
$field_ = INS_CHAMPS_PAYS ;
|
149 |
$_REQUEST[$field_] = $_REQUEST[INS_TABLE_PAYS] ;
|
149 |
$_REQUEST[$field_] = $_REQUEST[INS_TABLE_PAYS] ;
|
150 |
}
|
150 |
}
|
151 |
$query = 'update '.INS_ANNUAIRE.' set '.$field_.'="'.$_REQUEST[$field_].'" where '.INS_CHAMPS_ID.'='.$_REQUEST[INS_CHAMPS_ID] ;
|
151 |
$query = 'update '.INS_ANNUAIRE.' set '.$field_.'="'.$_REQUEST[$field_].'" where '.INS_CHAMPS_ID.'='.$_REQUEST[INS_CHAMPS_ID] ;
|
152 |
$GLOBALS['ins_db']->query($query) ;echo $query;
|
152 |
$GLOBALS['ins_db']->query($query) ;
|
153 |
|
- |
|
154 |
// Traitement du département
|
153 |
// Traitement du département
|
155 |
if ($field_ == INS_CHAMPS_CODE_POSTAL) {
|
154 |
if ($field_ == INS_CHAMPS_CODE_POSTAL) {
|
156 |
if (preg_match("/^97|98[0-9]*/", $HTTP_POST_VARS[INS_CHAMPS_CODE_POSTAL])) {
|
155 |
if (preg_match("/^97|98[0-9]*/", $HTTP_POST_VARS[INS_CHAMPS_CODE_POSTAL])) {
|
157 |
$n_dpt = substr($HTTP_POST_VARS[INS_CHAMPS_CODE_POSTAL], 0, 3) ;
|
156 |
$n_dpt = substr($HTTP_POST_VARS[INS_CHAMPS_CODE_POSTAL], 0, 3) ;
|
158 |
} else {
|
157 |
} else {
|