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: bazar.fonct.php,v 1.11 2005-10-12 17:20:33 ddelon Exp $
|
22 |
// CVS : $Id: bazar.fonct.php,v 1.12 2005-10-14 13:59:23 alexandre_tb Exp $
|
23 |
/**
|
23 |
/**
|
24 |
*
|
24 |
*
|
25 |
* Fonctions du module bazar
|
25 |
* Fonctions du module bazar
|
26 |
*
|
26 |
*
|
27 |
*@package bazar
|
27 |
*@package bazar
|
28 |
//Auteur original :
|
28 |
//Auteur original :
|
29 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
29 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
30 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
30 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
31 |
//Autres auteurs :
|
31 |
//Autres auteurs :
|
32 |
*@copyright Tela-Botanica 2000-2004
|
32 |
*@copyright Tela-Botanica 2000-2004
|
33 |
*@version $Revision: 1.11 $ $Date: 2005-10-12 17:20:33 $
|
33 |
*@version $Revision: 1.12 $ $Date: 2005-10-14 13:59:23 $
|
34 |
// +------------------------------------------------------------------------------------------------------+
|
34 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
*/
|
35 |
*/
|
Line 36... |
Line 36... |
36 |
|
36 |
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
Line 61... |
Line 61... |
61 |
* @param integer Id de la personne (par défaut la personne loguée)
|
61 |
* @param integer Id de la personne (par défaut la personne loguée)
|
62 |
*
|
62 |
*
|
63 |
* @return string Retourne 'redacteur', 'administrateur', 'superadministrateur', ou 'aucun'
|
63 |
* @return string Retourne 'redacteur', 'administrateur', 'superadministrateur', ou 'aucun'
|
64 |
*/
|
64 |
*/
|
65 |
function niveau_droit($id_nature_offre='0', $personne) {
|
65 |
function niveau_droit($id_nature_offre='0', $personne) {
|
66 |
$requete = 'select bd_niveau_droit FROM bazar_droits WHERE bd_id_utilisateur='.$personne.
|
66 |
$requete = 'select bd_niveau_droit FROM bazar_droits WHERE bd_id_utilisateur="'.$personne.'"'.
|
67 |
' AND (bd_id_nature_offre='.$id_nature_offre.' OR bd_id_nature_offre=0)';
|
67 |
' AND (bd_id_nature_offre='.$id_nature_offre.' OR bd_id_nature_offre=0)';
|
68 |
$resultat = $GLOBALS['_BAZAR_']['db']->query ($requete) ;
|
68 |
$resultat = $GLOBALS['_BAZAR_']['db']->query ($requete) ;
|
69 |
if (DB::isError($resultat)) {
|
69 |
if (DB::isError($resultat)) {
|
70 |
die ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ;
|
70 |
die ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ;
|
71 |
}
|
71 |
}
|
Line 1366... |
Line 1366... |
1366 |
}
|
1366 |
}
|
Line 1367... |
Line 1367... |
1367 |
|
1367 |
|
1368 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1368 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1369 |
*
|
1369 |
*
|
- |
|
1370 |
* $Log: not supported by cvs2svn $
|
- |
|
1371 |
* Revision 1.11 2005/10/12 17:20:33 ddelon
|
- |
|
1372 |
* Reorganisation calendrier + applette
|
1370 |
* $Log: not supported by cvs2svn $
|
1373 |
*
|
1371 |
* Revision 1.10 2005/10/12 15:14:06 florian
|
1374 |
* Revision 1.10 2005/10/12 15:14:06 florian
|
1372 |
* amélioration de l'interface de bazar, de manière a simplifier les consultations, et à harmoniser par rapport aux Ressources
|
1375 |
* amélioration de l'interface de bazar, de manière a simplifier les consultations, et à harmoniser par rapport aux Ressources
|
1373 |
*
|
1376 |
*
|
1374 |
* Revision 1.9 2005/10/10 16:22:52 alexandre_tb
|
1377 |
* Revision 1.9 2005/10/10 16:22:52 alexandre_tb
|