Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
325 florian 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
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: annuaire.php,v 1.1 2005-04-06 13:33:32 florian Exp $
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
35
*@version       $Revision: 1.1 $
36
// +------------------------------------------------------------------------------------------------------+
37
*/
38
 
39
// +------------------------------------------------------------------------------------------------------+
40
// |                                            ENTETE du PROGRAMME                                       |
41
// +------------------------------------------------------------------------------------------------------+
42
include_once 'configuration/ins_annuaire.config.inc.php';
43
include_once INS_CHEMIN_APPLI.'configuration/annuaire.config.inc.php';
44
include_once INS_CHEMIN_APPLI.'bibliotheque/annuaire.fonct.php';
45
 
46
 
47
/**
48
 *  Renvoie le code HTML de l'application
49
 *
50
 * @return  string  HTML
51
 */
52
function afficherContenuCorps () {
53
    $res = '<h1 class="annuaire_titre1">'.ANN_TITRE.'</h1>'."\n" ;
54
    if (!$GLOBALS['AUTH']->getAuth())  {
55
        include_once INS_CHEMIN_APPLI.'configuration/inscription.config.inc.php';
56
        include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.fonct.php';
57
        $res .= AUTH_formulaire_login() ;
58
    } else {
59
        // Le code javascript des cases à cocher
60
        $java =
61
            'function setCheckboxes(the_form) {
62
            	var do_check = document.forms[the_form].elements[\'selecttotal\'].checked;
63
            	var elts = document.forms[the_form].elements[\'select[]\'];
64
            	var elts_cnt = (typeof(elts.length) != \'undefined\')
65
                                ? elts.length
66
                                : 0;
67
            	if (elts_cnt) {
68
			for (var i = 0; i < elts_cnt; i++) {
69
				elts[i].checked = do_check;
70
			} // Fin for
71
		} else {
72
			elts.checked = do_check;
73
		}// Fin if... else
74
		return true;
75
	    } // Fin de la fonction setCheckboxes()';
76
        GEN_stockerCodeScript($java) ;
77
 
78
        $res .= '<h2 class="annuaire_titre2">'.ANN_CLIQUEZ_LETTRE.'</h2>'."\n";
79
 
80
            // S'il y a un mail a envoyé, on l'envoie
81
        if (isset($_POST['select']) && is_array ($_POST['select'])) $res .= envoie_mail() ;
82
        $res .= parcourirAnnu('') ;
83
    }
84
    return $res;
85
}
86
 
87
/**------------------------------------------------------------------------------
88
* $Log: not supported by cvs2svn $
89
*
90
*-- End of source  ------------------------------------------------------------*/
91
?>