Subversion Repositories Applications.papyrus

Rev

Rev 938 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 938 Rev 1292
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.3 2006-09-15 12:33:36 alexandre_tb Exp $
19
// $Id: edition_fiche.php,v 1.4 2007-04-06 08:35:46 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) ;
152
    $GLOBALS['ins_db']->query($query) ;echo $query;
-
 
153
 
153
    // Traitement du département
154
    // Traitement du département
154
    if ($field_ == INS_CHAMPS_CODE_POSTAL) {
155
    if ($field_ == INS_CHAMPS_CODE_POSTAL) {
155
        if (preg_match("/^97|98[0-9]*/", $HTTP_POST_VARS[INS_CHAMPS_CODE_POSTAL])) {
156
        if (preg_match("/^97|98[0-9]*/", $HTTP_POST_VARS[INS_CHAMPS_CODE_POSTAL])) {
156
            $n_dpt = substr($HTTP_POST_VARS[INS_CHAMPS_CODE_POSTAL], 0, 3) ;
157
            $n_dpt = substr($HTTP_POST_VARS[INS_CHAMPS_CODE_POSTAL], 0, 3) ;
157
        } else {
158
        } else {