/[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

revision 496 by nhaye, Thu Oct 11 16:29:53 2012 UTC revision 527 by vpihour, Fri Oct 19 16:14:11 2012 UTC
# Line 3  Line 3 
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    
6  if(isset($idx))  if(isset($idx) ) {
7    $selection=" where consultation.dossier ='".$idx."'";      $premier = intval($premier);
8  else      $selection=" WHERE consultation.dossier ='".$idx."'";
9    $selection="";      $lien = "../app/consultation_multiple.php?obj=$obj&idx=$idx";
10        $id="";
11        //$lien = "../scr/sousform.php?obj=$obj&action=0&tri=&objsf=$obj";
12        //$id = "&premiersf=$premiersf&retourformulaire=$retourformulaire&idxformulaire=$idx&trisf=&retour=tab";
13        $right = array('list' => array($obj, $obj.'_ajouter'),'operator' => 'OR');
14    }
15    
16  if ($retourformulaire== 'service'){  if ($retourformulaire== 'service'){
17      // Actions en coin : ajouter      // Actions en coin : ajouter
# Line 16  if ($retourformulaire== 'service'){ Line 21  if ($retourformulaire== 'service'){
21      $selection=" where consultation.service ='".$idx."'";      $selection=" where consultation.service ='".$idx."'";
22  }  }
23    
24  $champs = array();  /**
25     * Création d'une nouvelle action du formulaire de consultation, l'ajout de plusieurs consultations en une seule fois
26  $champs['dossier'] = array(   */
27      'table' => 'consultation',  $tab_actions['corner']['ajouter_multiple'] = array (
28      'colonne' => 'dossier',      'lien' => $lien,
29      'type' => 'text',      'id' => $id,
30      'libelle' => _('Dossier'));      'lib' => '<span class="om-icon om-icon-16 om-icon-fix mut-add-16" title="'._('Ajouter plusieurs').'">'._('Ajouter plusieurs').'</span>',
31        'right' => $right,
32  $champs['service'] = array(  );
33      'table' => 'consultation',  
34      'colonne' => 'service',  /**
35      'type' => 'select',   * Options
36      'libelle' => _('Service'));   */
37    
38  $champs['date_envoi'] =  $options[] = array(
39      array('colonne' => 'date_envoi',      "type" => "condition",
40            'table' => 'consultation',      "field" => "case consultation.lu when 't' then 'Oui' else 'Non' end",
41            'libelle' => _('Date d\'envoi'),      "case" => array(
42            'type' => 'date',              "0" => array(
43            'where' => 'intervaldate');                  "values" => array("Non", ),
44                        "style" => "consultation_non_lue",
45  $champs['date_limite'] =                  ),
46      array('colonne' => 'date_limite',              ),
47            'table' => 'consultation',  );
           'libelle' => _('Date limite'),  
           'type' => 'date',  
           'where' => 'intervaldate');  
   
   
  $options[] =  array('type' => 'search',  
                      'display' => true,  
                      'advanced' => $champs,  
                      'default_form' => 'advanced',  
                      'absolute_object' => 'consultation');  
48  ?>  ?>

Legend:
Removed from v.496  
changed lines
  Added in v.527

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26