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

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

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

revision 873 by fmichon, Wed Nov 28 21:56:10 2012 UTC revision 878 by fmichon, Thu Nov 29 09:20:27 2012 UTC
# Line 1  Line 1 
1  <?php  <?php
2  //$Id$  //$Id$
 //gen openMairie le 15/11/2012 18:30  
3    
4  include('../gen/sql/pgsql/dossier_message.inc.php');  include('../gen/sql/pgsql/dossier_message.inc.php');
5    
6    // SELECT
7  $champAffiche = array(  $champAffiche = array(
8      'dossier_message.message as "'._("message").'"',      'dossier_message.message as "'._("message").'"',
9        'dossier_message.dossier as "'._("dossier").'"',
10        'to_char(dossier_message.date_emission ,\'DD/MM/YYYY\') as "'._("date_emission").'"',
11      'dossier_message.type as "'._("type").'"',      'dossier_message.type as "'._("type").'"',
12      'dossier_message.emetteur as "'._("emetteur").'"',      'dossier_message.emetteur as "'._("emetteur").'"',
     'to_char(dossier_message.date_emission ,\'DD/MM/YYYY\') as "'._("date_emission").'"',  
13      "case dossier_message.lu when 't' then 'Oui' else 'Non' end as \""._("lu")."\"",      "case dossier_message.lu when 't' then 'Oui' else 'Non' end as \""._("lu")."\"",
14      );      );
15    // Tri par date
16    $tri = "order by date_emission desc, lu";
17    
18        /**
19     * Gestion de l'affichage dans le contexte du dossier
20     */
21  if ($retourformulaire == 'dossier'  if ($retourformulaire == 'dossier'
22          OR $retourformulaire == 'PC'      OR $retourformulaire == 'dossier_instruction'
23          OR $retourformulaire == 'PA'      OR $retourformulaire == 'dossier_instruction_mes_encours'
24          OR $retourformulaire == 'PD'      OR $retourformulaire == 'dossier_instruction_tous_encours'
25          OR $retourformulaire == 'DP') {      OR $retourformulaire == 'dossier_instruction_mes_clotures'
26        OR $retourformulaire == 'dossier_instruction_tous_clotures') {
27        // SELECT
28        $champAffiche = array(
29            'dossier_message.message as "'._("message").'"',
30            'to_char(dossier_message.date_emission ,\'DD/MM/YYYY\') as "'._("date_emission").'"',
31            'dossier_message.type as "'._("type").'"',
32            'dossier_message.emetteur as "'._("emetteur").'"',
33            "case dossier_message.lu when 't' then 'Oui' else 'Non' end as \""._("lu")."\"",
34            );
35        // Filtre sur le dossier
36      $selection=" WHERE (dossier_message.dossier ='".$idx."')";      $selection=" WHERE (dossier_message.dossier ='".$idx."')";
     $tri= "";  
   
37  }  }
38    
39    /**
40     * Options
41     */
42    // On affiche le champ lu en gras
43    $options[] = array(
44        "type" => "condition",
45        "field" => "case dossier_message.lu when 't' then 'Oui' else 'Non' end",
46        "case" => array(
47                "0" => array(
48                    "values" => array("Non", ),
49                    "style" => "non_lu",
50                    ),
51                ),
52    );
53    
54  ?>  ?>

Legend:
Removed from v.873  
changed lines
  Added in v.878

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26