Subversion Repositories Applications.papyrus

Rev

Rev 679 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
448 ddelon 1
<?php
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
// +------------------------------------------------------------------------------------------------------+
1081 florian 22
// CVS : $Id: annuaire_backoffice.php,v 1.3 2006-12-01 13:23:17 florian Exp $
448 ddelon 23
/**
24
* programme principal du module annuaire_moteur
25
*
26
* programme principal du module annuaire_moteur
27
*
28
*@package annuaire
29
//Auteur original :
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
//Autres auteurs :
32
*@author        Aucun
33
*@copyright     Tela-Botanica 2000-2004
1081 florian 34
*@version       $Revision: 1.3 $
448 ddelon 35
// +------------------------------------------------------------------------------------------------------+
36
*/
37
 
38
// +------------------------------------------------------------------------------------------------------+
39
// |                                            ENTETE du PROGRAMME                                       |
40
// +------------------------------------------------------------------------------------------------------+
41
 
42
// +------------------------------------------------------------------------------------------------------+
43
// |                                            ENTETE du PROGRAMME                                       |
44
// +------------------------------------------------------------------------------------------------------+
679 alexandre_ 45
include_once 'configuration/bottin.config.inc.php';
46
include_once INS_CHEMIN_APPLI.'bibliotheque/annuaire.fonct.php';
448 ddelon 47
include_once INS_CHEMIN_APPLI.'bibliotheque/annuaire_backoffice.fonct.php';
679 alexandre_ 48
include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.class.php';
49
include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.fonct.php';
1081 florian 50
$lang=INS_LANGUE_DEFAUT;
51
define ("ANN_MAIL_TOUS", 1) ;
52
define ("ANN_MAIL_TOUS_ENVOIE", 2) ;
448 ddelon 53
 
1081 florian 54
// Recherche parametres menu actif : ils ne sont pas present dans le contexte, quel dommage !
55
$requete_menu =  'SELECT gm_application_arguments '.
56
                 'FROM gen_menu '.
57
                 'WHERE gm_id_menu = '.$_GET['menu'];
58
$resultat_menu = $GLOBALS['_GEN_commun']['pear_db']->query($requete_menu);
59
$info_menu = $resultat_menu->fetchRow(DB_FETCHMODE_OBJECT);
60
$resultat_menu->free();
61
if (isset($info_menu->gm_application_arguments)) {
62
	$arguments = explode(' ', $info_menu->gm_application_arguments);
63
   	for ($i = 0; $i < count($arguments); $i++) {
64
   		$attr = explode('=', $arguments[$i]);
65
   		if ($attr[0] != '') {
66
	    	$info_application->$attr[0] = (isset($attr[1]) ? $attr[1] : '');
67
   		}
68
   	}
679 alexandre_ 69
}
1081 florian 70
//cas de l'annuaire admin papyrus, on modifie certaines constantes
71
if ($info_application->type_annuaire==1) {
72
	include_once INS_CHEMIN_APPLI.'configuration/annuaire_backoffice.config.inc.php';
448 ddelon 73
}
74
 
75
function afficherContenuCorps () {
76
    global $statut ;
77
 
78
    if (!$GLOBALS['AUTH']->getAuth())  {
79
        $res = AUTH_formulaire_login() ;
80
    } else {
679 alexandre_ 81
        if (isset($_REQUEST[INS_CHAMPS_ID])) {
82
            include_once (INS_CHEMIN_APPLI.'bibliotheque/edition_fiche.php');
83
            $GLOBALS['ins_url']->addQueryString (INS_CHAMPS_ID, $_REQUEST[INS_CHAMPS_ID]) ;
448 ddelon 84
            return putFrame() ;
85
        }
86
        if (isset ($_GET['action'])) {
679 alexandre_ 87
            include_once (INS_CHEMIN_APPLI.'bibliotheque/mail_tous.php') ;
448 ddelon 88
            return putFrame() ;
89
        }
679 alexandre_ 90
        if (isset($_REQUEST['ajouter'])) {
91
        	return ajouterInscrit() ;
92
        }
448 ddelon 93
        $res = "<div>".mkengine()."</div>\n" ;
94
    }
95
    return $res ;
96
}
97
 
98
?>