Subversion Repositories Applications.papyrus

Rev

Rev 231 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 231 Rev 234
Line 17... Line 17...
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
19
// | License along with this library; if not, write to the Free Software                                  |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: inscription.fonct.php,v 1.1 2004-12-15 13:32:25 alex Exp $
22
// CVS : $Id: inscription.fonct.php,v 1.2 2004-12-17 17:41:51 alex Exp $
23
// CVS : $Id: inscription.fonct.php,v 1.1 2004-12-15 13:32:25 alex Exp $
23
// CVS : $Id: inscription.fonct.php,v 1.2 2004-12-17 17:41:51 alex Exp $
24
/**
24
/**
25
* Fonctions du module inscription
25
* Fonctions du module inscription
26
*
26
*
27
* Fonctions du module inscription
27
* Fonctions du module inscription
28
*
28
*
Line 30... Line 30...
30
//Auteur original :
30
//Auteur original :
31
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
*@author        Alexandre Granier <alexandre@tela-botanica.org>
32
//Autres auteurs :
32
//Autres auteurs :
33
*@author        Aucun
33
*@author        Aucun
34
*@copyright     Tela-Botanica 2000-2004
34
*@copyright     Tela-Botanica 2000-2004
35
*@version       $Revision: 1.1 $ $Date: 2004-12-15 13:32:25 $
35
*@version       $Revision: 1.2 $ $Date: 2004-12-17 17:41:51 $
36
*@version       $Revision: 1.1 $ $Date: 2004-12-15 13:32:25 $
36
*@version       $Revision: 1.2 $ $Date: 2004-12-17 17:41:51 $
37
// +------------------------------------------------------------------------------------------------------+
37
// +------------------------------------------------------------------------------------------------------+
38
*/
38
*/
Line 39... Line 39...
39
 
39
 
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
Line 217... Line 217...
217
        } else {
217
        } else {
218
            $n_dpt = substr($valeur['cp'], 0, 2) ;
218
            $n_dpt = substr($valeur['cp'], 0, 2) ;
219
        }
219
        }
220
        $req .= ",".INS_CHAMPS_DEPARTEMENT."='$n_dpt'";
220
        $req .= ",".INS_CHAMPS_DEPARTEMENT."='$n_dpt'";
221
    }
221
    }
-
 
222
    // Le téléphone et le fax
-
 
223
    if (INS_CHAMPS_TELEPHONE) {
-
 
224
        $req .= ",".INS_CHAMPS_TELEPHONE.'="'.$valeur['telephone'].'"' ;
-
 
225
    }
-
 
226
    if (INS_CHAMPS_FAX) {
-
 
227
        $req .= ",".INS_CHAMPS_FAX.'="'.$valeur['fax'].'"' ;
-
 
228
    }
-
 
229
    if (INS_CHAMPS_STRUCTURE) {
-
 
230
        $req .= ",".INS_CHAMPS_STRUCTURE.'="'.$valeur['structure'].'"' ;
-
 
231
    }
222
    return $req ;
232
    return $req ;
223
}
233
}
Line 245... Line 255...
245
    $valeurs_par_defaut['nomwiki'] = $ligne[INS_CHAMPS_LOGIN] ;
255
    $valeurs_par_defaut['nomwiki'] = $ligne[INS_CHAMPS_LOGIN] ;
246
    $valeurs_par_defaut['cp'] = $ligne[INS_CHAMPS_CODE_POSTAL] ;
256
    $valeurs_par_defaut['cp'] = $ligne[INS_CHAMPS_CODE_POSTAL] ;
247
    $valeurs_par_defaut['ville'] = $ligne[INS_CHAMPS_VILLE] ;
257
    $valeurs_par_defaut['ville'] = $ligne[INS_CHAMPS_VILLE] ;
248
    $valeurs_par_defaut['adresse_1'] = $ligne[INS_CHAMPS_ADRESSE_1] ;
258
    $valeurs_par_defaut['adresse_1'] = $ligne[INS_CHAMPS_ADRESSE_1] ;
249
    $valeurs_par_defaut['adresse_2'] = $ligne[INS_CHAMPS_ADRESSE_2] ;
259
    $valeurs_par_defaut['adresse_2'] = $ligne[INS_CHAMPS_ADRESSE_2] ;
-
 
260
    $valeurs_par_defaut['telephone'] = $ligne[INS_CHAMPS_TELEPHONE] ;
-
 
261
    $valeurs_par_defaut['fax'] = $ligne[INS_CHAMPS_FAX] ;
-
 
262
    $valeurs_par_defaut['structure'] = $ligne[INS_CHAMPS_STRUCTURE] ;
Line 250... Line 263...
250
   
263
   
251
    return $valeurs_par_defaut ;
264
    return $valeurs_par_defaut ;
Line 271... Line 284...
271
    $res .= "<div>".$nom." : ".$ligne[INS_CHAMPS_NOM]."</div>" ;
284
    $res .= "<div>".$nom." : ".$ligne[INS_CHAMPS_NOM]."</div>" ;
272
    if ($ligne[INS_CHAMPS_EST_STRUCTURE] == 0) $res .= "<div>".INS_PRENOM." : ".$ligne[INS_CHAMPS_PRENOM]."</div>\n" ;
285
    if ($ligne[INS_CHAMPS_EST_STRUCTURE] == 0) $res .= "<div>".INS_PRENOM." : ".$ligne[INS_CHAMPS_PRENOM]."</div>\n" ;
273
    if ($ligne[INS_CHAMPS_LOGIN] != "") $res .= "<div>".INS_NOM_WIKI." : ".$ligne[INS_CHAMPS_LOGIN]."</div>\n" ;
286
    if ($ligne[INS_CHAMPS_LOGIN] != "") $res .= "<div>".INS_NOM_WIKI." : ".$ligne[INS_CHAMPS_LOGIN]."</div>\n" ;
274
    if ($ligne[INS_CHAMPS_ADRESSE_1] != "") $res .= "<div>".INS_ADRESSE." : ".$ligne[INS_CHAMPS_ADRESSE_1]."</div>\n" ;
287
    if ($ligne[INS_CHAMPS_ADRESSE_1] != "") $res .= "<div>".INS_ADRESSE." : ".$ligne[INS_CHAMPS_ADRESSE_1]."</div>\n" ;
275
    if ($ligne[INS_CHAMPS_ADRESSE_2] != "") $res .= "<div> : ".$ligne[INS_CHAMPS_ADRESSE_2]."</div>\n" ;
288
    if ($ligne[INS_CHAMPS_ADRESSE_2] != "") $res .= "<div> : ".$ligne[INS_CHAMPS_ADRESSE_2]."</div>\n" ;
-
 
289
    if ($ligne[INS_CHAMPS_TELEPHONE] != "") $res .= "<div> : ".$ligne[INS_CHAMPS_TELEPHONE]."</div>\n" ;
-
 
290
    if ($ligne[INS_CHAMPS_FAX] != "") $res .= "<div> : ".$ligne[INS_CHAMPS_FAX]."</div>\n" ;
-
 
291
    if ($ligne[INS_CHAMPS_STRUCTURE] != "") $res .= "<div> : ".$ligne[INS_CHAMPS_STRUCTURE]."</div>\n" ;
Line 276... Line 292...
276
    
292
    
277
    return $res ;
293
    return $res ;
Line 278... Line 294...
278
}
294
}
Line 463... Line 479...
463
}
479
}
Line 464... Line 480...
464
 
480
 
465
/* +--Fin du code ----------------------------------------------------------------------------------------+
481
/* +--Fin du code ----------------------------------------------------------------------------------------+
466
*
482
*
-
 
483
* $Log: not supported by cvs2svn $
-
 
484
* Revision 1.1  2004/12/15 13:32:25  alex
-
 
485
* version initiale
467
* $Log: not supported by cvs2svn $
486
*
468
* Revision 1.2  2004/09/01 16:37:52  alex
487
* Revision 1.2  2004/09/01 16:37:52  alex
469
* modification du formulaire
488
* modification du formulaire
470
*
489
*
471
* Revision 1.1  2004/07/06 15:42:17  alex
490
* Revision 1.1  2004/07/06 15:42:17  alex