448 |
ddelon |
1 |
<?
|
|
|
2 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */
|
|
|
3 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
4 |
// | PHP version 4.1 |
|
|
|
5 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
6 |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
|
|
|
7 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
8 |
// | This library is free software; you can redistribute it and/or |
|
|
|
9 |
// | modify it under the terms of the GNU Lesser General Public |
|
|
|
10 |
// | License as published by the Free Software Foundation; either |
|
|
|
11 |
// | version 2.1 of the License, or (at your option) any later version. |
|
|
|
12 |
// | |
|
|
|
13 |
// | This library is distributed in the hope that it will be useful, |
|
|
|
14 |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
15 |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
|
16 |
// | Lesser General Public License for more details. |
|
|
|
17 |
// | |
|
|
|
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 |
|
|
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
|
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
1723 |
alexandre_ |
22 |
// CVS : $Id: annuaire.php,v 1.7.4.1 2007-11-22 10:23:05 alexandre_tb Exp $
|
448 |
ddelon |
23 |
/**
|
|
|
24 |
* programme principal du module annuaire
|
|
|
25 |
*
|
|
|
26 |
* programme principal du module annuaire
|
|
|
27 |
*
|
|
|
28 |
*@package annuaire
|
|
|
29 |
//Auteur original :
|
|
|
30 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
|
|
31 |
*@author Florian SCHMITT <florian@ecole-et-nature.org>
|
|
|
32 |
//Autres auteurs :
|
|
|
33 |
*@author Aucun
|
|
|
34 |
*@copyright Tela-Botanica 2000-2004
|
1723 |
alexandre_ |
35 |
*@version $Revision: 1.7.4.1 $
|
448 |
ddelon |
36 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
37 |
*/
|
|
|
38 |
|
|
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
40 |
// | ENTETE du PROGRAMME |
|
|
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
484 |
alexandre_ |
42 |
include_once 'configuration/bottin.config.inc.php';
|
|
|
43 |
include_once 'configuration/annuaire.config.inc.php';
|
1298 |
neiluj |
44 |
include_once INS_CHEMIN_APPLI.'bibliotheque/bottin.fonct.php';
|
1723 |
alexandre_ |
45 |
include_once INS_CHEMIN_APPLI.'bibliotheque/bottin.class.php';
|
448 |
ddelon |
46 |
|
484 |
alexandre_ |
47 |
if (!isset($GLOBALS['lang'])) {
|
|
|
48 |
$GLOBALS['lang'] = INS_LANGUE_DEFAUT ;
|
|
|
49 |
}
|
|
|
50 |
include_once INS_CHEMIN_APPLI."langues/annuaire.langue.".$GLOBALS['lang'].".inc.php" ;
|
448 |
ddelon |
51 |
|
1298 |
neiluj |
52 |
if ( isset($_GET['voir_fiche']) or isset($_GET['voir_abonnement']) or isset($_GET['voir_actus']) or isset($_GET['voir_ressources']) or isset($_GET['voir_competences']) ) {
|
|
|
53 |
//---------------le menu de l'appli-----------
|
|
|
54 |
function afficherContenuNavigation () {
|
|
|
55 |
$res =inscription_onglets();
|
|
|
56 |
return $res ;
|
|
|
57 |
}
|
|
|
58 |
}
|
|
|
59 |
|
448 |
ddelon |
60 |
/**
|
|
|
61 |
* Renvoie le code HTML de l'application
|
|
|
62 |
*
|
|
|
63 |
* @return string HTML
|
|
|
64 |
*/
|
|
|
65 |
function afficherContenuCorps () {
|
1723 |
alexandre_ |
66 |
// Recuperation de la configuration
|
|
|
67 |
if (isset($_REQUEST['id_inscription'])) {
|
|
|
68 |
$GLOBALS ['ins_config'] = inscription::getConfig($_REQUEST['id_inscription']);
|
|
|
69 |
} else {
|
|
|
70 |
$GLOBALS ['ins_config'] = inscription::getConfig();
|
|
|
71 |
}
|
|
|
72 |
// Template du formulaire
|
|
|
73 |
$GLOBALS['ins_config']['ic_inscription_template'] = inscription::getTemplate(INS_TEMPLATE_FORMULAIRE,
|
|
|
74 |
$GLOBALS['ins_config']['ic_id_inscription']);
|
1298 |
neiluj |
75 |
if ( isset($_GET['voir_fiche']) or isset($_GET['voir_abonnement']) or isset($_GET['voir_actus']) or isset($_GET['voir_ressources']) or isset($_GET['voir_competences']) ) {
|
|
|
76 |
$res = affiche_onglet_info();
|
448 |
ddelon |
77 |
} else {
|
805 |
florian |
78 |
$res = '<h1 class="annuaire_titre1">'.INS_ANNUAIRE_MEMBRES.'</h1>'."\n" ;
|
|
|
79 |
if (!$GLOBALS['AUTH']->getAuth()&&INS_NECESSITE_LOGIN) {
|
|
|
80 |
$res .= '<p class="zone_alert">'.INS_VOUS_DEVEZ_ETRE_INSCRIT.'</p>'."\n" ;
|
|
|
81 |
} else {
|
|
|
82 |
// S'il y a un mail a envoyé, on l'envoie
|
|
|
83 |
if (isset($_POST['select']) && is_array ($_POST['select'])) $res .= envoie_mail_depuis_annuaire() ;
|
|
|
84 |
|
|
|
85 |
//affichage du formulaire de recherche
|
|
|
86 |
$res .= Annuaire_recherche() ;
|
|
|
87 |
}
|
448 |
ddelon |
88 |
}
|
|
|
89 |
return $res;
|
|
|
90 |
}
|
|
|
91 |
|
|
|
92 |
/**------------------------------------------------------------------------------
|
|
|
93 |
* $Log: not supported by cvs2svn $
|
1723 |
alexandre_ |
94 |
* Revision 1.7 2007/04/11 08:30:12 neiluj
|
|
|
95 |
* remise en état du CVS...
|
|
|
96 |
*
|
1298 |
neiluj |
97 |
* Revision 1.5 2006/04/10 14:01:36 florian
|
|
|
98 |
* uniformisation de l'appli bottin: plus qu'un fichier de fonctions
|
|
|
99 |
*
|
|
|
100 |
* Revision 1.4 2006/04/04 12:23:05 florian
|
|
|
101 |
* modifs affichage fiches, généricité de la carto, modification totale de l'appli annuaire
|
|
|
102 |
*
|
805 |
florian |
103 |
* Revision 1.3 2005/10/03 09:38:42 alexandre_tb
|
|
|
104 |
* Lorsque non loggué, on renvoie un message et non un formulaire
|
|
|
105 |
*
|
500 |
alexandre_ |
106 |
* Revision 1.2 2005/09/29 16:07:51 alexandre_tb
|
|
|
107 |
* En cours de production.
|
|
|
108 |
*
|
484 |
alexandre_ |
109 |
* Revision 1.1 2005/09/22 14:02:49 ddelon
|
|
|
110 |
* nettoyage annuaire et php5
|
|
|
111 |
*
|
448 |
ddelon |
112 |
* Revision 1.4 2005/09/22 13:30:49 florian
|
|
|
113 |
* modifs pour compatibilité XHTML Strict + corrections de bugs (mais ya encore du boulot!!)
|
|
|
114 |
*
|
|
|
115 |
*
|
|
|
116 |
*-- End of source ------------------------------------------------------------*/
|
|
|
117 |
?>
|