Subversion Repositories Applications.papyrus

Rev

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

Rev 805 Rev 810
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: annuaire.php,v 1.4 2006-04-04 12:23:05 florian Exp $
22
// CVS : $Id: annuaire.php,v 1.5 2006-04-10 14:01:36 florian Exp $
23
/**
23
/**
24
* programme principal du module annuaire
24
* programme principal du module annuaire
25
*
25
*
26
* programme principal du module annuaire
26
* programme principal du module annuaire
27
*
27
*
Line 30... Line 30...
30
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
30
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
31
*@author        Florian SCHMITT <florian@ecole-et-nature.org>
31
*@author        Florian SCHMITT <florian@ecole-et-nature.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.4 $
35
*@version       $Revision: 1.5 $
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
37
*/
37
*/
Line 38... Line 38...
38
 
38
 
39
// +------------------------------------------------------------------------------------------------------+
39
// +------------------------------------------------------------------------------------------------------+
40
// |                                            ENTETE du PROGRAMME                                       |
40
// |                                            ENTETE du PROGRAMME                                       |
41
// +------------------------------------------------------------------------------------------------------+
41
// +------------------------------------------------------------------------------------------------------+
42
include_once 'configuration/bottin.config.inc.php';
42
include_once 'configuration/bottin.config.inc.php';
43
include_once 'configuration/annuaire.config.inc.php';
43
include_once 'configuration/annuaire.config.inc.php';
Line 44... Line 44...
44
include_once INS_CHEMIN_APPLI.'bibliotheque/annuaire.fonct.php';
44
include_once INS_CHEMIN_APPLI.'bibliotheque/bottin.fonct.php';
45
 
45
 
46
if (!isset($GLOBALS['lang'])) {
46
if (!isset($GLOBALS['lang'])) {
47
    $GLOBALS['lang'] = INS_LANGUE_DEFAUT ;
47
    $GLOBALS['lang'] = INS_LANGUE_DEFAUT ;
Line 48... Line 48...
48
}
48
}
49
include_once INS_CHEMIN_APPLI."langues/annuaire.langue.".$GLOBALS['lang'].".inc.php" ;
49
include_once INS_CHEMIN_APPLI."langues/annuaire.langue.".$GLOBALS['lang'].".inc.php" ;
50
 
50
 
51
if (isset($_REQUEST['voir_fiche'])) {
51
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']) ) {
52
	//---------------le menu de l'appli-----------
52
	//---------------le menu de l'appli-----------
53
	function afficherContenuNavigation () {
53
	function afficherContenuNavigation () {
Line 61... Line 61...
61
 *
61
 *
62
 * @return  string  HTML
62
 * @return  string  HTML
63
 */
63
 */
64
function afficherContenuCorps () {
64
function afficherContenuCorps () {
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']) ) {
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');
66
    	$res = affiche_onglet_info();    		     	
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
    	
-
 
81
    } else {
67
    } else {
82
    	$res = '<h1 class="annuaire_titre1">'.INS_ANNUAIRE_MEMBRES.'</h1>'."\n" ;
68
    	$res = '<h1 class="annuaire_titre1">'.INS_ANNUAIRE_MEMBRES.'</h1>'."\n" ;
83
	    if (!$GLOBALS['AUTH']->getAuth()&&INS_NECESSITE_LOGIN)  {
69
	    if (!$GLOBALS['AUTH']->getAuth()&&INS_NECESSITE_LOGIN)  {
84
	        $res .= '<p class="zone_alert">'.INS_VOUS_DEVEZ_ETRE_INSCRIT.'</p>'."\n" ;
70
	        $res .= '<p class="zone_alert">'.INS_VOUS_DEVEZ_ETRE_INSCRIT.'</p>'."\n" ;
85
	    } else {
71
	    } else {
Line 93... Line 79...
93
    return $res;
79
    return $res;
94
}
80
}
Line 95... Line 81...
95
 
81
 
96
/**------------------------------------------------------------------------------
82
/**------------------------------------------------------------------------------
-
 
83
* $Log: not supported by cvs2svn $
-
 
84
* Revision 1.4  2006/04/04 12:23:05  florian
-
 
85
* modifs affichage fiches, généricité de la carto, modification totale de l'appli annuaire
97
* $Log: not supported by cvs2svn $
86
*
98
* Revision 1.3  2005/10/03 09:38:42  alexandre_tb
87
* Revision 1.3  2005/10/03 09:38:42  alexandre_tb
99
* Lorsque non loggué, on renvoie un message et non un formulaire
88
* Lorsque non loggué, on renvoie un message et non un formulaire
100
*
89
*
101
* Revision 1.2  2005/09/29 16:07:51  alexandre_tb
90
* Revision 1.2  2005/09/29 16:07:51  alexandre_tb