2 |
//$Id$ |
//$Id$ |
3 |
//gen openMairie le 10/02/2011 20:32 |
//gen openMairie le 10/02/2011 20:32 |
4 |
include('../gen/sql/pgsql/consultation.inc.php'); |
include('../gen/sql/pgsql/consultation.inc.php'); |
5 |
$table=DB_PREFIXE."consultation inner join ".DB_PREFIXE."service on consultation.service=service.service"; |
|
|
$champAffiche=array("consultation", |
|
|
"consultation.service", |
|
|
"libelle", |
|
|
"to_char(date_envoi,'DD/MM/YYYY') as date_envoi", |
|
|
"to_char(date_retour,'DD/MM/YYYY') as date_retour", |
|
|
"to_char(date_limite,'DD/MM/YYYY') as date_limite", |
|
|
"avis"); |
|
|
$champRecherche=array("libelle"); |
|
|
if(isset($idx)) |
|
|
$selection=" where dossier ='".$idx."'"; |
|
|
else |
|
|
$selection=""; |
|
6 |
// ============================================================================= |
// ============================================================================= |
7 |
// href particulier pour edition d etat |
// href particulier pour edition d etat |
8 |
// ============================================================================= |
// ============================================================================= |
9 |
|
|
10 |
$href[3]['lien'] = "../pdf/pdfetat.php?idx="; |
|
|
$href[3]['id']= "&obj=consultation"; |
|
|
$href[3]['lib']= "<span class=\"om-icon om-icon-16 om-icon-fix pdf-16\" title=\"". |
|
|
_("Edition")."\">"._("Edition")."</span>"; |
|
11 |
|
|
12 |
// probleme lies a la gestion par nature |
// probleme lies a la gestion par nature |
13 |
|
|
14 |
if ($retourformulaire== 'service'){ |
if ($retourformulaire== 'service'){ |
15 |
$href[0] = array("lien" => "#", "id" => "", "lib" => "", ); |
// Actions en coin : ajouter |
16 |
$href[1] = array("lien" => "", "id" => "", "lib" => "", ); |
$tab_actions['corner']['ajouter'] = NULL; |
17 |
$href[2] = array("lien" => "#", "id" => "", "lib" => "", ); |
// Actions a gauche : consulter |
18 |
|
$tab_actions['left']['consulter'] = NULL; |
19 |
$selection=" where consultation.service ='".$idx."'"; |
$selection=" where consultation.service ='".$idx."'"; |
20 |
} |
} |
21 |
|
|