Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
// +------------------------------------------------------------------------------------------------------+
805 florian 22
// CVS : $Id: annuaire.php,v 1.4 2006-04-04 12:23:05 florian 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
805 florian 35
*@version       $Revision: 1.4 $
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';
448 ddelon 44
include_once INS_CHEMIN_APPLI.'bibliotheque/annuaire.fonct.php';
45
 
484 alexandre_ 46
if (!isset($GLOBALS['lang'])) {
47
    $GLOBALS['lang'] = INS_LANGUE_DEFAUT ;
48
}
49
include_once INS_CHEMIN_APPLI."langues/annuaire.langue.".$GLOBALS['lang'].".inc.php" ;
448 ddelon 50
 
805 florian 51
if (isset($_REQUEST['voir_fiche'])) {
52
	//---------------le menu de l'appli-----------
53
	function afficherContenuNavigation () {
54
		$res =inscription_onglets();
55
		return $res ;
56
	}
57
}
58
 
448 ddelon 59
/**
60
 *  Renvoie le code HTML de l'application
61
 *
62
 * @return  string  HTML
63
 */
64
function afficherContenuCorps () {
805 florian 65
    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']) ) {
66
    	include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.fonct.php';
67
    	include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.class.php';
68
    	if ( isset($_GET['voir_fiche']) ) {
69
    		$res=info($_GET['voir_fiche'], 'fiche');
70
    	} elseif (isset($_GET['voir_abonnement'])) {
71
 
72
    	} elseif (isset($_GET['voir_actus'])) {
73
 
74
    	} elseif (isset($_GET['voir_ressources'])) {
75
 
76
    	} elseif (isset($_GET['voir_competences'])) {
77
 
78
    	}
79
 
80
 
448 ddelon 81
    } else {
805 florian 82
    	$res = '<h1 class="annuaire_titre1">'.INS_ANNUAIRE_MEMBRES.'</h1>'."\n" ;
83
	    if (!$GLOBALS['AUTH']->getAuth()&&INS_NECESSITE_LOGIN)  {
84
	        $res .= '<p class="zone_alert">'.INS_VOUS_DEVEZ_ETRE_INSCRIT.'</p>'."\n" ;
85
	    } else {
86
	        // S'il y a un mail a envoyé, on l'envoie
87
	        if (isset($_POST['select']) && is_array ($_POST['select'])) $res .= envoie_mail_depuis_annuaire() ;
88
 
89
			//affichage du formulaire de recherche
90
	        $res .= Annuaire_recherche() ;
91
	    }
448 ddelon 92
    }
93
    return $res;
94
}
95
 
96
/**------------------------------------------------------------------------------
97
* $Log: not supported by cvs2svn $
805 florian 98
* Revision 1.3  2005/10/03 09:38:42  alexandre_tb
99
* Lorsque non loggué, on renvoie un message et non un formulaire
100
*
500 alexandre_ 101
* Revision 1.2  2005/09/29 16:07:51  alexandre_tb
102
* En cours de production.
103
*
484 alexandre_ 104
* Revision 1.1  2005/09/22 14:02:49  ddelon
105
* nettoyage annuaire et php5
106
*
448 ddelon 107
* Revision 1.4  2005/09/22 13:30:49  florian
108
* modifs pour compatibilité XHTML Strict + corrections de bugs (mais ya encore du boulot!!)
109
*
110
*
111
*-- End of source  ------------------------------------------------------------*/
112
?>