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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18876 - (hide annotations)
Tue Oct 8 08:41:06 2024 UTC (3 months, 3 weeks ago) by softime
File size: 2691 byte(s)
merge: fusion de la branche d'intégration 6.8.0-develop dans le trunk

1 cgarcin 10537 <?php
2     /**
3     * LISTING - Les dossiers non transmis à Plat'AU
4     *
5     * Le listing 'Les dossiers non transmis à Plat'AU' permet d'afficher les même dossiers que
6     * le widget 'Les dossiers non transmis à Plat'AU' sans la limite de 5 enregistrements. Aucune
7     * entrée de menu ne permet d'accéder à ce listing, c'est un lien depuis le
8     * widget qui nous permet d'arriver sur ce listing.
9     *
10     * @package openads
11     * @version SVN : $Id: dossiers_non_transmis.inc.php 5208 2015-09-23 21:32:51Z fmichon $
12     */
13    
14    
15     include "../sql/pgsql/dossier_instruction.inc.php";
16    
17     /**
18     * Récupération des paramètres GET
19     */
20     // Composition du tableau de paramètres nécessaire à la méthode qui permet
21     // de récuérer le configuration de la requête du widget.
22     $params = array(
23 softime 10713 "filtre" => (isset($_GET['filtre']) ? $_GET['filtre'] : ""),
24     "date_depot_debut" => (isset($_GET['date_depot_debut']) ? $_GET['date_depot_debut'] : ""),
25 cgarcin 10537 );
26    
27     /**
28     * Récupération de la configuration de la requête à partir du widget.
29     */
30     //
31     require_once "../obj/om_widget.class.php";
32     $om_widget = new om_widget(0);
33     //
34     $params['affichage'] = 'liste';
35     $conf = $om_widget->get_config_dossier_non_transmis_platau($params);
36    
37 softime 10713 // Titre de la page
38     $ent = __("instruction")." -> ".__("Dossiers non transmis à Plat'AU");
39     //
40    
41    
42 cgarcin 10537 $tab_description = $conf["message_help"];
43     // Aucune action de corner
44     $tab_actions['corner'] = array();
45     // Le lien de consultation porte vers l'objet dossier_instruction sans
46     // aucun paramètre car aucun retour sur le listing n'est possible
47     $tab_actions['left']['consulter'] = array(
48     'lien' => ''.OM_ROUTE_FORM.'&obj=dossier_instruction&amp;action=3&amp;idx=',
49     'id' => '',
50 softime 18876 'lib' => '<span class="om-icon om-icon-16 om-icon-fix consult-16" title="'.__('Consulter').'">'.__('Consulter').'</span>',
51 cgarcin 10537 'rights' => array('list' => array($obj, $obj.'_consulter'), 'operator' => 'OR'),
52     'ordre' => 10,
53     );
54     $tab_actions['content'] = $tab_actions['left']['consulter'];
55     // Aucun champ pour la recherche simple
56     $champRecherche = array();
57     // On cache la recherche simple
58     $options[] = array(
59     "type" => "search",
60     "display" => false,
61     );
62    
63     /**
64     * Composition de la requête
65     */
66 softime 13137 $sqlFiltre = $om_widget->get_query_filter(
67     sprintf(
68     "%s
69     WHERE
70     %s
71     ",
72     $conf["query_ct_from"],
73     $conf["query_ct_where"]
74     ),
75     $conf['arguments']['filtre']
76     );
77 cgarcin 10537 // SELECT
78     $champAffiche = $conf["query_ct_select_champaffiche"];
79     // FROM
80 softime 13137 $table =
81     $conf["query_ct_from"].
82     $sqlFiltre['FROM'];
83 cgarcin 10537 // WHERE
84 softime 13137 $selection = sprintf(
85     "WHERE
86 cgarcin 10537 %s
87 softime 13137 %s",
88     $conf["query_ct_where"],
89     $sqlFiltre['WHERE']
90 cgarcin 10537 );
91     // ORDER BY
92     $tri = $conf["query_ct_orderby"];
93    
94     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26