1 |
fraynaud |
3 |
<?php |
2 |
|
|
//$Id$ |
3 |
|
|
//gen openMairie le 10/02/2011 20:32 |
4 |
|
|
include('../gen/sql/pgsql/consultation.form.inc.php'); |
5 |
nhaye |
429 |
|
6 |
vpihour |
497 |
$champs=array("consultation", |
7 |
nhaye |
543 |
"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 |
vpihour |
492 |
|
19 |
nhaye |
429 |
$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 : modifier |
25 |
|
|
$portlet_actions['pdfetat'] = |
26 |
vpihour |
507 |
array('lien' => "../app/pdf_consultation.php?idx=", |
27 |
nhaye |
429 |
'id' => "&obj=consultation", |
28 |
|
|
'lib' => "<span class=\"om-prev-icon om-icon-16 om-icon-fix pdf-16\" title=\"". |
29 |
|
|
_("Edition")."\">"._("Edition")."</span>", |
30 |
nhaye |
469 |
'ordre' => 30, |
31 |
|
|
'ajax' => false); |
32 |
nhaye |
509 |
|
33 |
|
|
$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)))"; |
34 |
|
|
$sql_service_by_id = "SELECT service.service, service.abrege||' '||service.libelle FROM ".DB_PREFIXE."service WHERE service = <idx>"; |
35 |
vpihour |
527 |
|
36 |
nhaye |
498 |
?> |