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'); |
|
$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=""; |
|
|
// ============================================================================= |
|
|
// href particulier pour edition d etat |
|
|
// ============================================================================= |
|
5 |
|
|
6 |
$href[3]['lien'] = "../pdf/pdfetat.php?idx="; |
|
7 |
$href[3]['id']= "&obj=consultation"; |
if(isset($idx)) { |
8 |
$href[3]['lib']= "<span class=\"om-icon om-icon-16 om-icon-fix pdf-16\" title=\"". |
$selection=" WHERE consultation.dossier ='".$idx."'"; |
9 |
_("Edition")."\">"._("Edition")."</span>"; |
} |
|
|
|
|
// probleme lies a la gestion par nature |
|
10 |
|
|
11 |
if ($retourformulaire== 'service'){ |
if ($retourformulaire== 'service'){ |
12 |
$href[0] = array("lien" => "#", "id" => "", "lib" => "", ); |
// Actions en coin : ajouter |
13 |
$href[1] = array("lien" => "", "id" => "", "lib" => "", ); |
$tab_actions['corner']['ajouter'] = NULL; |
14 |
$href[2] = array("lien" => "#", "id" => "", "lib" => "", ); |
// Actions a gauche : consulter |
15 |
|
$tab_actions['left']['consulter'] = NULL; |
16 |
$selection=" where consultation.service ='".$idx."'"; |
$selection=" where consultation.service ='".$idx."'"; |
17 |
} |
} |
18 |
|
|
19 |
|
/** |
20 |
|
* Options |
21 |
|
*/ |
22 |
|
|
23 |
|
$options[] = array( |
24 |
|
"type" => "condition", |
25 |
|
"field" => "case consultation.lu when 't' then 'Oui' else 'Non' end", |
26 |
|
"case" => array( |
27 |
|
"0" => array( |
28 |
|
"values" => array("Non", ), |
29 |
|
"style" => "consultation_non_lue", |
30 |
|
), |
31 |
|
), |
32 |
|
); |
33 |
?> |
?> |