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.form.inc.php'); |
include('../gen/sql/pgsql/consultation.form.inc.php'); |
|
?> |
|
5 |
|
|
6 |
|
$champs=array("consultation", |
7 |
|
"dossier", |
8 |
|
"service", |
9 |
|
"to_char(consultation.date_envoi ,'DD/MM/YYYY') as \"date_envoi\"", |
10 |
|
"to_char(consultation.date_reception ,'DD/MM/YYYY') as \"date_reception\"", |
11 |
|
"to_char(consultation.date_limite ,'DD/MM/YYYY') as \"date_limite\"", |
12 |
|
"to_char(consultation.date_retour ,'DD/MM/YYYY') as \"date_retour\"", |
13 |
|
"avis_consultation", |
14 |
|
"motivation", |
15 |
|
"fichier", |
16 |
|
"lu" |
17 |
|
); |
18 |
|
|
19 |
|
$href[3]['lien'] = "../pdf/pdfetat.php?idx="; |
20 |
|
$href[3]['id']= "&obj=consultation"; |
21 |
|
$href[3]['lib']= "<span class=\"om-icon om-icon-16 om-icon-fix pdf-16\" title=\"". |
22 |
|
_("Edition")."\">"._("Edition")."</span>"; |
23 |
|
|
24 |
|
// Action : Edition PDF |
25 |
|
$portlet_actions['pdfetat'] = |
26 |
|
array('lien' => "../app/pdf_consultation.php?idx=", |
27 |
|
'id' => "&obj=consultation", |
28 |
|
'lib' => "<span class=\"om-prev-icon om-icon-16 om-icon-fix pdf-16\" title=\"". |
29 |
|
_("Edition")."\">"._("Editer la consultation PDF")."</span>", |
30 |
|
'ordre' => 28, |
31 |
|
'ajax' => false); |
32 |
|
/*$portlet_actions['pdfretour'] = |
33 |
|
array('lien' => "/app/pdf_consultation.php?idx=", |
34 |
|
'id' => "&obj=consultation", |
35 |
|
'lib' => "<span class=\"om-prev-icon om-icon-16 om-icon-fix pdf-16\" title=\"". |
36 |
|
_("Edition")."\">"._("Editer le retour d'avis PDF")."</span>", |
37 |
|
'ordre' => 29, |
38 |
|
'ajax' => false); |
39 |
|
$portlet_actions['lu'] = |
40 |
|
array('lien' => "../app/pdf_consultation.php?idx=", |
41 |
|
'id' => "&obj=consultation", |
42 |
|
'lib' => "<span class=\"om-prev-icon om-icon-16 om-icon-fix lu-16\" title=\"". |
43 |
|
_("Edition")."\" onclick='alert(\"test\");'>"._("Marquer comme lu")."</span>", |
44 |
|
'ordre' => 30, |
45 |
|
'ajax' => false);*/ |
46 |
|
|
47 |
|
$sql_service="SELECT service.service, service.abrege||' '||service.libelle FROM ".DB_PREFIXE."service WHERE ((service.om_validite_debut IS NULL AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE)) OR (service.om_validite_debut <= CURRENT_DATE AND (service.om_validite_fin IS NULL OR service.om_validite_fin > CURRENT_DATE))) ORDER BY service.abrege"; |
48 |
|
$sql_service_by_id = "SELECT service.service, service.abrege||' '||service.libelle FROM ".DB_PREFIXE."service WHERE service = <idx>"; |
49 |
|
|
50 |
|
?> |