1 |
<?php |
<?php |
2 |
//$Id$ |
/** |
3 |
//gen openMairie le 10/02/2011 20:34 |
* |
4 |
include('../gen/sql/pgsql/instruction.inc.php'); |
* |
5 |
|
* @package openfoncier |
6 |
|
* @version SVN : $Id$ |
7 |
|
*/ |
8 |
|
|
9 |
|
// |
10 |
|
include "../gen/sql/pgsql/instruction.inc.php"; |
11 |
|
|
12 |
// ======================================================= |
// ======================================================= |
13 |
// href special edition instruction |
// href special edition instruction |
14 |
// ======================================================= |
// ======================================================= |
15 |
$table="instruction inner join evenement on instruction.evenement=evenement.evenement"; |
$table=DB_PREFIXE."instruction inner join ".DB_PREFIXE."evenement on instruction.evenement=evenement.evenement |
16 |
|
LEFT JOIN ".DB_PREFIXE."signataire_arrete |
17 |
|
ON instruction.signataire_arrete=signataire_arrete.signataire_arrete |
18 |
|
LEFT JOIN ".DB_PREFIXE."dossier |
19 |
|
ON instruction.dossier = dossier.dossier"; |
20 |
$champAffiche=array("instruction as no", |
$champAffiche=array("instruction as no", |
|
"instruction.lettretype", |
|
21 |
"libelle", |
"libelle", |
22 |
"to_char(datecourrier ,'DD/MM/YYYY') as datecourrier", |
"to_char(date_evenement ,'DD/MM/YYYY') as date_evenement", |
23 |
"instruction.etat" |
"instruction.etat", |
24 |
|
"instruction.lettretype", |
25 |
|
"signataire_arrete.nom as \""._("signataire_arrete")."\"", |
26 |
); |
); |
27 |
$champRecherche=array("libelle"); |
$champRecherche=array("libelle"); |
28 |
$tri= " order by instruction "; |
$tri= " order by instruction "; |
29 |
if(isset($idx)){ |
if(isset($idx)){ |
30 |
$selection=" where dossier ='".$idx."'"; |
$selection=" where dossier.dossier like '".$idx."'"; |
31 |
}else{ |
}else{ |
32 |
$selection=""; |
$selection=""; |
|
} |
|
|
//if(isset($objsf) and isset($idx)){ |
|
|
$href[3]['lien'] = "../app/pdflettretype_instruction.php?idx="; |
|
|
$href[3]['id']= ""; |
|
|
$href[3]['lib']= "<span class=\"om-icon om-icon-16 om-icon-fix pdf-16\" title=\"". |
|
|
_("Edition")."\">"._("Edition")."</span>"; |
|
|
// $href=array(); |
|
|
?> |
|
33 |
|
} |
34 |
|
|
35 |
|
/** |
36 |
|
* Gestion particulière de l'affichage du listing dans le contexte d'un dossier |
37 |
|
* d'instruction |
38 |
|
*/ |
39 |
|
include "../sql/pgsql/dossier_instruction_droit_specifique_par_division.inc.php"; |
40 |
|
|
41 |
|
?> |