1 |
<?php |
2 |
//$Id$ |
3 |
//gen openMairie le 21/09/2012 11:51 |
4 |
|
5 |
$DEBUG=0; |
6 |
$serie=15; |
7 |
$ico="../img/ico_application.png"; |
8 |
$ent = _("application")." -> "._("travaux"); |
9 |
if(!isset($premier)) $premier=''; |
10 |
if(!isset($recherche1)) $recherche1=''; |
11 |
if(!isset($tricolsf)) $tricolsf=''; |
12 |
if(!isset($premiersf)) $premiersf=''; |
13 |
if(!isset($selection)) $selection=''; |
14 |
if(!isset($retourformulaire)) $retourformulaire=''; |
15 |
if (isset($idx) && $idx != ']' && trim($idx) != '') { |
16 |
$ent .= "-> ".$idx." "; |
17 |
} |
18 |
if (isset($idz) && trim($idz) != '') { |
19 |
$ent .= " ".strtoupper($idz)." "; |
20 |
} |
21 |
// FROM |
22 |
$table = DB_PREFIXE."travaux |
23 |
LEFT JOIN ".DB_PREFIXE."nature |
24 |
ON travaux.nature=nature.nature "; |
25 |
// SELECT |
26 |
$champAffiche = array( |
27 |
'travaux.travaux as "'._("travaux").'"', |
28 |
'travaux.libelle as "'._("libelle").'"', |
29 |
'nature.libelle as "'._("nature").'"', |
30 |
'travaux.codelascot as "'._("codelascot").'"', |
31 |
'travaux.solde as "'._("solde").'"', |
32 |
); |
33 |
// |
34 |
$champNonAffiche = array( |
35 |
); |
36 |
// |
37 |
$champRecherche = array( |
38 |
'travaux.travaux as "'._("travaux").'"', |
39 |
'travaux.libelle as "'._("libelle").'"', |
40 |
'nature.libelle as "'._("nature").'"', |
41 |
'travaux.codelascot as "'._("codelascot").'"', |
42 |
'travaux.solde as "'._("solde").'"', |
43 |
); |
44 |
$tri="ORDER BY travaux.libelle ASC NULLS LAST"; |
45 |
$edition="travaux"; |
46 |
$selection=''; |
47 |
if ($retourformulaire== 'nature') { |
48 |
$selection=" WHERE (travaux.nature ='".$idx."')"; |
49 |
} |
50 |
$sousformulaire = array( |
51 |
'dossier',); |
52 |
?> |