1 |
fmichon |
1005 |
<?php |
2 |
|
|
/** |
3 |
|
|
* Ce script a pour objet de recuperer la nature de la demande (nouveau dossier, |
4 |
|
|
* dossier existant) |
5 |
|
|
* |
6 |
|
|
* @package openfoncier |
7 |
|
|
* @version SVN : $Id$ |
8 |
|
|
*/ |
9 |
|
|
$DEBUG=1; |
10 |
|
|
require_once "../obj/utils.class.php"; |
11 |
|
|
|
12 |
|
|
// Donnees |
13 |
|
|
$id_demande_type = (isset($_GET['iddemandetype']) ? $_GET['iddemandetype'] : "" ); |
14 |
|
|
|
15 |
|
|
$f = new utils("nohtml"); |
16 |
|
|
$f->disableLog(); |
17 |
|
|
if($id_demande_type != "") { |
18 |
|
|
$sql = "SELECT demande_nature.code FROM ".DB_PREFIXE."demande_nature |
19 |
|
|
INNER JOIN ".DB_PREFIXE."demande_type |
20 |
|
|
ON demande_type.demande_nature=demande_nature.demande_nature |
21 |
|
|
WHERE demande_type.demande_type=".$id_demande_type; |
22 |
|
|
$nature = $f->db->getOne($sql); |
23 |
|
|
$f->addToLog($sql); |
24 |
|
|
$f->isDatabaseError(); |
25 |
|
|
echo $nature; |
26 |
|
|
} |