1 |
fraynaud |
3 |
<?php |
2 |
|
|
//$Id$ |
3 |
|
|
//gen openMairie le 10/02/2011 20:39 |
4 |
|
|
include('../gen/sql/pgsql/dossier.inc.php'); |
5 |
fraynaud |
38 |
$table=DB_PREFIXE."dossier left join ". |
6 |
|
|
DB_PREFIXE."om_utilisateur on dossier.instructeur = om_utilisateur.om_utilisateur left join ". |
7 |
|
|
DB_PREFIXE."avis on avis.avis=dossier.avis"; |
8 |
nhaye |
471 |
$champAffiche=array( |
9 |
|
|
'dossier.dossier as "'._("dossier").'"', |
10 |
|
|
'dossier.demandeur_nom as "'._("demandeur_nom").'"', |
11 |
|
|
'om_utilisateur.nom as "'._("instructeur").'"', |
12 |
|
|
'to_char(dossier.date_demande ,\'DD/MM/YYYY\') as "'._("date_demande").'"', |
13 |
|
|
'to_char(dossier.date_depot ,\'DD/MM/YYYY\') as "'._("date_depot").'"', |
14 |
|
|
'to_char(dossier.date_complet ,\'DD/MM/YYYY\') as "'._("date_complet").'"', |
15 |
|
|
'to_char(dossier.date_notification_delai ,\'DD/MM/YYYY\') as "'._("date_notification_delai").'"', |
16 |
|
|
'to_char(dossier.date_limite ,\'DD/MM/YYYY\') as "'._("date_limite").'"', |
17 |
|
|
'etat as "'._("etat").'"', |
18 |
|
|
'avis.libelle as "'._("avis").'"', |
19 |
|
|
); |
20 |
nhaye |
467 |
|
21 |
|
|
$tri= "order by dossier.dossier"; |
22 |
|
|
|
23 |
|
|
$champRecherche=array("dossier","demandeur_nom"); |
24 |
|
|
|
25 |
|
|
$ico = "../img/ico_dossier.png"; |
26 |
|
|
|
27 |
|
|
$edition=""; |
28 |
|
|
|
29 |
fraynaud |
38 |
if ($retourformulaire== 'architecte'){ |
30 |
nhaye |
467 |
$tab_actions['corner']['ajouter'] = NULL; |
31 |
|
|
$tab_actions['left']['consulter'] = NULL; |
32 |
|
|
$tab_actions['content'] =NULL; |
33 |
fraynaud |
38 |
$selection=" where dossier.architecte ='".$idx."'"; |
34 |
|
|
} |
35 |
|
|
if ($retourformulaire== 'travaux'){ |
36 |
nhaye |
467 |
$tab_actions['corner']['ajouter'] = NULL; |
37 |
|
|
$tab_actions['left']['consulter'] = NULL; |
38 |
|
|
$tab_actions['content'] =NULL; |
39 |
fraynaud |
38 |
$selection=" where dossier.travaux ='".$idx."'"; |
40 |
|
|
} |
41 |
nhaye |
467 |
$sousformulaire=array("instruction", |
42 |
|
|
"consultation", |
43 |
|
|
"terrain", |
44 |
|
|
"blocnote", |
45 |
|
|
"destination_shon", |
46 |
|
|
"statistique"); |
47 |
fraynaud |
3 |
?> |