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

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

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

trunk/sql/pgsql/consultation.inc revision 3 by fraynaud, Thu Feb 10 20:46:18 2011 UTC trunk/sql/pgsql/consultation.inc.php revision 312 by atreal, Wed Mar 28 17:19:49 2012 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.inc.php');  include('../gen/sql/pgsql/consultation.inc.php');
5    $table=DB_PREFIXE."consultation inner join ".DB_PREFIXE."service on consultation.service=service.service";
6    $champAffiche=array("consultation",
7                        "consultation.service",
8                        "libelle",
9                        "to_char(date_envoi,'DD/MM/YYYY') as date_envoi",
10                        "to_char(date_retour,'DD/MM/YYYY') as date_retour",
11                        "to_char(date_limite,'DD/MM/YYYY') as date_limite",
12                        "avis");
13    $champRecherche=array("libelle");
14    if(isset($idx))
15      $selection=" where dossier ='".$idx."'";
16    else
17      $selection="";
18    // =============================================================================
19    // href particulier pour edition d etat
20    // =============================================================================
21    
22    $href[3]['lien'] = "../pdf/pdfetat.php?idx=";
23    $href[3]['id']= "&obj=consultation";
24    $href[3]['lib']= "<span class=\"om-icon om-icon-16 om-icon-fix pdf-16\" title=\"".
25                        _("Edition")."\">"._("Edition")."</span>";
26    
27    // probleme lies a la gestion par nature
28    
29    if ($retourformulaire== 'service'){
30        $href[0] = array("lien" => "#", "id" => "", "lib" => "", );
31        $href[1] = array("lien" => "", "id" => "", "lib" => "", );
32        $href[2] = array("lien" => "#", "id" => "", "lib" => "", );
33        $selection=" where consultation.service ='".$idx."'";
34    }
35    
36  ?>  ?>

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26