/[openfoncier]/trunk/app/civilite.php
ViewVC logotype

Annotation of /trunk/app/civilite.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 694 - (hide annotations)
Thu Nov 15 09:36:32 2012 UTC (12 years, 2 months ago) by vpihour
File size: 645 byte(s)
Ajout des libelles aux civilités

1 vpihour 683 <?php
2     /**
3     * Ce script a pour objet de recuperer la liste des quartiers d'un arrondissement
4     *
5     * @package openfoncier
6     * @version SVN : $Id$
7     */
8     $DEBUG=1;
9     require_once "../obj/utils.class.php";
10    
11     $f = new utils("nohtml");
12     $f->disableLog();
13    
14     $sql =
15     "SELECT
16 vpihour 694 civilite, libelle
17 vpihour 683 FROM
18     ".DB_PREFIXE."civilite";
19    
20     $res = $f->db->query($sql);
21     $f->isDatabaseError($res);
22    
23     $listData = "";
24     while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)) {
25    
26 vpihour 694 $listData .= $row['civilite']."_".$row['libelle'].";";
27 vpihour 683 }
28    
29     echo json_encode($listData);
30     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26