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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 657 - (hide annotations)
Sun Nov 11 22:42:40 2012 UTC (12 years, 2 months ago) by fmichon
File size: 1676 byte(s)
Modification du test pour l'ajout de consultations multiples.

1 fraynaud 3 <?php
2     //$Id$
3     //gen openMairie le 10/02/2011 20:32
4     include('../gen/sql/pgsql/consultation.inc.php');
5 nhaye 429
6 fraynaud 38 if ($retourformulaire== 'service'){
7 nhaye 429 // Actions en coin : ajouter
8 nhaye 496 $tab_actions['corner']['ajouter'] = NULL;
9 nhaye 429 // Actions a gauche : consulter
10     $tab_actions['left']['consulter'] = NULL;
11 fraynaud 38 $selection=" where consultation.service ='".$idx."'";
12     }
13    
14 nhaye 498 /**
15 vpihour 527 * Création d'une nouvelle action du formulaire de consultation, l'ajout de plusieurs consultations en une seule fois
16     */
17 nhaye 533 if ($retourformulaire == 'dossier'
18 fmichon 657 OR $retourformulaire == 'dossier_instruction'
19     OR $retourformulaire == 'dossier_instruction_mes_encours'
20     OR $retourformulaire == 'dossier_instruction_tous_encours'
21     OR $retourformulaire == 'dossier_instruction_mes_clotures'
22     OR $retourformulaire == 'dossier_instruction_tous_clotures') {
23 nhaye 533 $id="";
24     $selection=" WHERE (consultation.dossier ='".$idx."')";
25 vpihour 572 $lien = "../app/consultation_multiple.php?obj=$obj&idx=$idx&ret=$retourformulaire";
26 nhaye 533 $right = array('list' => array($obj, $obj.'_ajouter'),'operator' => 'OR');
27     $tab_actions['corner']['ajouter_multiple'] = array (
28     'lien' => $lien,
29     'id' => $id,
30     'lib' => '<span class="om-icon om-icon-16 om-icon-fix mut-add-16" title="'._('Ajouter plusieurs').'">'._('Ajouter plusieurs').'</span>',
31     'right' => $right,
32     );
33     }
34 vpihour 527
35     /**
36 nhaye 498 * Options
37     */
38    
39 nhaye 509 $options[] = array(
40 nhaye 498 "type" => "condition",
41 nhaye 509 "field" => "case consultation.lu when 't' then 'Oui' else 'Non' end",
42 nhaye 498 "case" => array(
43 nhaye 509 "0" => array(
44     "values" => array("Non", ),
45     "style" => "consultation_non_lue",
46     ),
47     ),
48 nhaye 498 );
49 fraynaud 3 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26