/[openfoncier]/branches/old-trunk/sql/pgsql/evenement.inc.php
ViewVC logotype

Contents of /branches/old-trunk/sql/pgsql/evenement.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3728 - (show annotations)
Fri Mar 18 11:41:22 2016 UTC (8 years, 10 months ago) by mbroquet
File size: 3201 byte(s)
Prépare l'actualisation du trunk
1 <?php
2 /**
3 *
4 *
5 * @package openfoncier
6 * @version SVN : $Id$
7 */
8
9 //
10 include "../gen/sql/pgsql/evenement.inc.php";
11
12 //
13 $ent = _("parametrage dossiers")." -> "._("workflows")." -> "._("evenement");
14 if (isset($idx) && $idx != ']' && trim($idx) != '') {
15 $ent .= "->&nbsp;".$idx."&nbsp;";
16 }
17 if (isset($idz) && trim($idz) != '') {
18 $ent .= "&nbsp;".mb_strtoupper($idz, "UTF-8")."&nbsp;";
19 }
20
21 // Récupère le paramètre "retourformulaire"
22 $retourformulaire = (isset($_GET['retourformulaire'])) ? $_GET['retourformulaire'] : "";
23
24 //
25 $sousformulaire = array('bible');
26
27 //
28 $trim_concat_parametres = "trim(concat(
29 case
30 when etat.libelle<>''
31 then concat('"._("etat")." : ', etat.libelle, '<br/>')
32 else ''
33 end,
34 case
35 when evenement.delai<>0
36 then concat('"._("delai")." : ', evenement.delai, '<br/>')
37 else ''
38 end,
39 case
40 when evenement.delai_notification<>0
41 then concat('"._("delai_notification")." : ', evenement.delai_notification, '<br/>')
42 else ''
43 end,
44 case
45 when avis_decision.libelle<>''
46 then concat('"._("avis_decision")." : ', avis_decision.libelle, '<br/>')
47 else ''
48 end,
49 concat('"._("accord_tacite")." : ', evenement.accord_tacite, '<br/>'),
50 ''))";
51
52 // SELECT
53 $champAffiche = array(
54 'evenement.evenement as "'._("id").'"',
55 'evenement.libelle as "'._("libelle").'"',
56 'action.libelle as "'._("action").'"',
57 $trim_concat_parametres.' as "'._("parametres").'"',
58 'evenement.lettretype as "'._("lettretype").'"',
59 );
60
61 //
62 $champRecherche = array(
63 'evenement.evenement as "'._("id").'"',
64 'evenement.libelle as "'._("libelle").'"',
65 'action.libelle as "'._("action").'"',
66 'etat.libelle as "'._("etat").'"',
67 'evenement.delai as "'._("delai").'"',
68 'evenement.accord_tacite as "'._("accord_tacite").'"',
69 'evenement.delai_notification as "'._("delai_notification").'"',
70 'evenement.lettretype as "'._("lettretype").'"',
71 'evenement.consultation as "'._("consultation").'"',
72 'avis_decision.libelle as "'._("avis_decision").'"',
73 'evenement.restriction as "'._("restriction").'"',
74 'evenement.type as "'._("type").'"',
75 'evenement4.libelle as "'._("evenement_retour_ar").'"',
76 'evenement6.libelle as "'._("evenement_suivant_tacite").'"',
77 );
78
79 // XXX Bouton copier
80 if ($retourformulaire == '') {
81 $tab_actions['left']['copier'] = array(
82 "lien" => "../app/valid_copie.php?obj=".$obj."&amp;objsf=bible,lien_dossier_instruction_type_evenement,transition&amp;idx=",
83 "id" => "&amp;premier=".$premier."&amp;tricol=".$tricol."&amp;recherche=".$recherche."&amp;selectioncol=".$selectioncol."&amp;advs_id=".$advs_id,
84 "lib" => "<span class=\"om-icon om-icon-16 om-icon-fix copy-16\" title=\""._("Copier")."\">"._("Copier")."</span>",
85 );
86 }
87
88
89 // XXX Si c'est un sous-formulaire, alors le bouton "Modifier" n'est pas affiché
90 // pour éviter le bug concernant les tableaux multi-select
91 // À retirer lorsque le bug sera résolu dans OpenMairie
92 if (isset($retourformulaire) && $retourformulaire != '') {
93 // Actions en coin : ajouter
94 $tab_actions['corner']['ajouter'] = null;
95 // XXX Action dans tableau : copie de l'enregistrement
96 $tab_actions['left']['copier'] = null;
97 }
98
99 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26