Subversion Repositories eFlore/Archives.herbiers

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 jp_milcent 1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This file is part of Herbier - Cartographie.                                                         |
9
// |                                                                                                      |
10
// | Foobar is free software; you can redistribute it and/or modify                                       |
11
// | it under the terms of the GNU General Public License as published by                                 |
12
// | the Free Software Foundation; either version 2 of the License, or                                    |
13
// | (at your option) any later version.                                                                  |
14
// |                                                                                                      |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
18
// | GNU General Public License for more details.                                                         |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id: hbca_information.fonct.php,v 1.1 2005-11-23 10:32:32 jp_milcent Exp $
25
/**
26
* Fonctions de l'application Herbier - Cartographie.
27
*
28
* Fichier de fonctions fournissant des informations de l'application Herbier - Cartographie.
29
*
30
*@package Herbier-Cartographie
31
//Auteur original :
32
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
33
//Autres auteurs :
34
*@author        Jean-Pascal MILCENT <jpm@clapas.org>
35
*@copyright     Tela-Botanica 2000-2005
36
*@version       $Revision: 1.1 $ $Date: 2005-11-23 10:32:32 $
37
// +------------------------------------------------------------------------------------------------------+
38
*/
39
 
40
// +------------------------------------------------------------------------------------------------------+
41
// |                                            ENTETE du PROGRAMME                                       |
42
// +------------------------------------------------------------------------------------------------------+
43
 
44
 
45
// +------------------------------------------------------------------------------------------------------+
46
// |                                           LISTE de FONCTIONS                                         |
47
// +------------------------------------------------------------------------------------------------------+
48
 
49
/**
50
* Fonction hbca_consulterNbreStructure() - Donne le nombre de structure.
51
*
52
* Cette fonction renvoit le nombre de structure dans la carte passée en argument.
53
*
54
* @param int l'identifiant de la carte.
55
* @param int l'identifiant du type de zones contenues dans la carte.
56
* @param int l'identifiant de la zone géo de la carte.
57
* @return string une chaine XHTML donnant le nombre de structure.
58
*/
59
function hbca_consulterNbreStructure($id_carte, $type_zone_carte, $id_zone_geo_carte)
60
{
61
    switch ($type_zone_carte){
62
        case '2' :
63
            $requete =
64
                    'SELECT count(ID_ORG) as nbr '.
65
                    'FROM '.HB_BDD_NOM.'.HERBIERS_ORGANISATION '.
66
                    'WHERE COUNTRY_CODE = "fr"';
67
                break;
68
    }
69
 
70
    $resultat = mysql_query($requete) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $requete));
71
    $ligne = mysql_fetch_object($resultat);
72
 
73
    return $ligne->nbr;
74
}
75
 
76
// +------------------------------------------------------------------------------------------------------+
77
// |                                            PIED du PROGRAMME                                         |
78
// +------------------------------------------------------------------------------------------------------+
79
 
80
 
81
/* +--Fin du code ----------------------------------------------------------------------------------------+
82
*
83
* $Log: not supported by cvs2svn $
84
* Revision 1.1  2005/03/09 15:55:44  jpm
85
* Ajout de l'application Cartographie des Herbiers.
86
*
87
*
88
* +-- Fin du code ----------------------------------------------------------------------------------------+
89
*/
90
?>