19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: bbc_affichage_structure.fonct.php,v 1.1 2005-11-23 10:22:25 jp_milcent Exp $ |
// CVS : $Id: bbc_affichage_structure.fonct.php,v 1.2 2004/09/15 11:21:07 jpm Exp $ |
/** |
* Fonctions de création de l'affichage des résultats d'une structure. |
* |
32,7 → 32,7 |
//Autres auteurs : |
*@author Jean-Pascal MILCENT <jpm@clapas.org> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.1 $ $Date: 2005-11-23 10:22:25 $ |
*@version $Revision: 1.2 $ $Date: 2004/09/15 11:21:07 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
39,11 → 39,13 |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTETE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/*Mettre ici les inclusions de fichiers*/ |
|
|
|
// +------------------------------------------------------------------------------------------------------+ |
// | LISTE de FONCTIONS | |
// +------------------------------------------------------------------------------------------------------+ |
/*Mettre ici la liste de fonctions.*/ |
|
/** Fonction mkresu() - Traitement des requêtes. |
* |
59,20 → 61,21 |
global $tbl; |
global $TabFinder; |
global $var_biblio; |
global $GS_GLOBAL; |
|
$ret = ''; |
$ret .= '<ul id="bb_liste_resultat_structure">'."\n"; |
|
$i = 1; |
while ($ligne = mysql_fetch_object($result_final)) { |
$get_idstr = $ligne->B_S_IDSTR; |
$get_name = $ligne->B_S_NOM; |
$get_cp = $ligne->B_S_CODEPOSTAL; |
$get_ville = $ligne->B_S_VILLE; |
$get_pays = $ligne->GC_NAME; |
$get_date = $ligne->B_S_MAJFICHE; |
$get_categ = $ligne->B_S_TYPESTR; |
$get_categ_nom = $ligne->B_TYPSTR_LABEL; |
while ($row = mysql_fetch_object($result_final)) { |
$get_idstr = $row->B_S_IDSTR; |
$get_name = $row->B_S_NOM; |
$get_cp = $row->B_S_CODEPOSTAL; |
$get_ville = $row->B_S_VILLE; |
$get_pays = $row->GC_NAME; |
$get_date = $row->B_S_MAJFICHE; |
$get_categ = $row->B_S_TYPESTR; |
$get_categ_nom = $row->B_TYPSTR_LABEL; |
|
$ret .= '<li>'."\n"; |
|
97,13 → 100,13 |
$dpt_qu = 'SELECT GFD_NAME '. |
'FROM '.$tbl['dpt'].' '. |
'WHERE GFD_ID = '.$calc_dpt; |
$do_dpt = mysql_query($dpt_qu) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $dpt_qu)); |
$do_dpt = mysql_query($dpt_qu) or die("<B>Erreur lors de la recherche du département :</B> $dpt_qu"); |
$nbr_dpt = mysql_num_rows($do_dpt); |
if ($nbr_dpt == 1) { |
$resu_dpt = mysql_fetch_object($do_dpt); |
$nom_dpt = $resu_dpt->GFD_NAME; |
} else { |
return '<b>Erreur lors de la recherche du département :</b> '.$nbr_dpt.' départements trouvés.'; |
die('<b>Erreur lors de la recherche du département :</b> '.$nbr_dpt.' départements trouvés.'); |
} |
$ret .= ColorizeFound($nom_dpt, ucFirst($TabFinder['geo'])) . ' - '; |
} |
152,10 → 155,7 |
|
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.3 2005/05/17 10:10:08 jpm |
* Correction des bogues avant mise en ligne du site v4. |
* |
* $Log: bbc_affichage_structure.fonct.php,v $ |
* Revision 1.2 2004/09/15 11:21:07 jpm |
* Début mise en conformité avec la convention de codage et le standard XHTML Strict. |
* |