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

Contents of /trunk/sql/pgsql/dossiers_limites.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3730 - (show annotations)
Fri Mar 18 11:50:26 2016 UTC (8 years, 10 months ago) by mbroquet
File size: 2703 byte(s)
Actualisation du trunk
1 <?php
2 /**
3 * LISTING - Dossiers limites
4 *
5 * Le listing 'Dossiers limites' permet d'afficher les même dossiers que
6 * le widget 'Dossiers limites' sans la limite de 10 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_limites.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 "nombre_de_jours" => (isset($_GET['nombre_de_jours']) ? $_GET['nombre_de_jours'] : ""),
24 "codes_datd" => (isset($_GET['codes_datd']) ? $_GET['codes_datd'] : ""),
25 "filtre" => (isset($_GET['filtre']) ? $_GET['filtre'] : ""),
26 );
27
28 /**
29 * Récupération de la configuration de la requête à partir du widget.
30 */
31 //
32 require_once "../obj/om_widget.class.php";
33 $om_widget = new om_widget(0);
34 //
35 $conf = $om_widget->get_config_dossiers_limites($params);
36 //
37 $nombre_de_jours = $conf["arguments"]["nombre_de_jours"];
38 $codes_datd = $conf["arguments"]["codes_datd"];
39 $filtre = $conf["arguments"]["filtre"];
40
41 /**
42 * Configuration du listing
43 */
44 // Titre de la page
45 $ent = _("instruction")." -> "._("Dossiers limites");
46 //
47 $tab_description = $conf["message_help"];
48 // Aucune action de corner
49 $tab_actions['corner'] = array();
50 // Le lien de consultation porte vers l'objet dossier_instruction sans
51 // aucun paramètre car aucun retour sur le listing n'est possible
52 $tab_actions['left']['consulter'] = array(
53 'lien' => 'form.php?obj=dossier_instruction&amp;action=3&amp;idx=',
54 'id' => '',
55 'lib' => '<span class="om-icon om-icon-16 om-icon-fix consult-16" title="'._('Consulter').'">'._('Consulter').'</span>',
56 'rights' => array('list' => array($obj, $obj.'_consulter'), 'operator' => 'OR'),
57 'ordre' => 10,
58 );
59 $tab_actions['content'] = $tab_actions['left']['consulter'];
60 // Aucun champ pour la recherche simple
61 $champRecherche = array();
62 // On cache la recherche simple
63 $options[] = array(
64 "type" => "search",
65 "display" => false,
66 );
67
68 /**
69 * Composition de la requête
70 */
71 // SELECT
72 $champAffiche = $conf["query_ct_select_champaffiche"];
73 // FROM
74 $table = $conf["query_ct_from"];
75 // WHERE
76 $selection = sprintf("
77 WHERE
78 %s
79 %s
80 %s
81 ",
82 $conf["query_ct_where_common"],
83 $conf["query_ct_where_datd_filter"],
84 $conf["query_ct_where_user_filter"]
85 );
86 // ORDER BY
87 $tri = sprintf("
88 ORDER BY
89 %s
90 ",
91 $conf["query_ct_orderby"]
92 );
93
94 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26