/[openfoncier]/trunk/sql/pgsql/consultation.form.inc.php
ViewVC logotype

Diff of /trunk/sql/pgsql/consultation.form.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/sql/pgsql/consultation.form.inc revision 3 by fraynaud, Thu Feb 10 20:46:18 2011 UTC trunk/sql/pgsql/consultation.form.inc.php revision 1340 by fmichon, Thu Mar 7 16:21:28 2013 UTC
# Line 2  Line 2 
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    // Action : Edition PDF
20    $portlet_actions['pdfetat'] =
21        array('lien' => "../app/pdf_consultation.php?idx=",
22              'id' => "&obj=consultation",
23              'lib' => "<span class=\"om-prev-icon om-icon-16 om-icon-fix pdf-16\" title=\"".
24                    _("Edition")."\">"._("Editer la consultation PDF")."</span>",
25              'ordre' => 28,
26              'ajax' => false);
27    /*$portlet_actions['pdfretour'] =
28        array('lien' => "/app/pdf_consultation.php?idx=",
29              'id' => "&obj=consultation",
30              'lib' => "<span class=\"om-prev-icon om-icon-16 om-icon-fix pdf-16\" title=\"".
31                    _("Edition")."\">"._("Editer le retour d'avis PDF")."</span>",
32              'ordre' => 29,
33              'ajax' => false);*/
34              
35    //Marque comme lu une consultation au clique
36    $portlet_actions['lu'] =
37        array('lien' => "#\" onclick=\"portletUpdateData(",
38              'id' => ",'consultation','consultation', 'marquer_comme_lu', 'lu', 'Oui');\"",
39              'lib' => "<span class=\"om-prev-icon om-icon-16 om-icon-fix lu-16\" title=\"".
40                    _("Edition")."\">"._("Marquer comme lu")."</span>",
41              'ordre' => 30,
42              'rights' => array('list' => array("consultation", "consultation_modifier_lu"), 'operator' => 'OR'),
43              'ajax' => false);
44    
45    $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";
46    $sql_service_by_id = "SELECT service.service, service.abrege||' '||service.libelle FROM ".DB_PREFIXE."service WHERE service = <idx>";
47                
48    ?>

Legend:
Removed from v.3  
changed lines
  Added in v.1340

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26