1 |
<?php |
2 |
/** |
3 |
* Ce script a pour objet de recuperer la liste des demandeurs |
4 |
* du dossier d'autorisation passé en paramètre |
5 |
* |
6 |
* @package openfoncier |
7 |
* @version SVN : $Id: getDemandeurList.php 4418 2015-02-24 17:30:28Z tbenita $ |
8 |
*/ |
9 |
|
10 |
require_once "../obj/utils.class.php"; |
11 |
require_once "../obj/dossier_autorisation.class.php"; |
12 |
require_once "../obj/demande.class.php"; |
13 |
|
14 |
$f = new utils("nohtml"); |
15 |
$f->isAccredited(array("demande","demande_modifier","demande_ajouter"), "OR"); |
16 |
$f->disableLog(); |
17 |
|
18 |
$id_dossier_autorisation =($f->get_submitted_get_value("dossier_autorisation") != null) ? $f->get_submitted_get_value("dossier_autorisation") : ""; |
19 |
|
20 |
$valIdDemandeur = array("petitionnaire_principal" => "", |
21 |
"delegataire" => "", |
22 |
"petitionnaire" => array()); |
23 |
if($id_dossier_autorisation != "") { |
24 |
$dossier_autorisation = new dossier_autorisation( |
25 |
$id_dossier_autorisation, |
26 |
$f->db, false); |
27 |
$demande = new demande(']', $f->db, false); |
28 |
$dossier_autorisation -> listeDemandeur("dossier_autorisation", $id_dossier_autorisation); |
29 |
$demande->setValIdDemandeur($dossier_autorisation->getValIdDemandeur()); |
30 |
$demande->formSpecificContent(0); |
31 |
} |
32 |
|
33 |
?> |