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

Diff of /trunk/sql/pgsql/dossier.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 872 by fmichon, Wed Nov 28 21:47:03 2012 UTC revision 1262 by nhaye, Thu Feb 14 17:54:53 2013 UTC
# Line 2  Line 2 
2  //$Id$  //$Id$
3  //gen openMairie le 10/02/2011 20:39  //gen openMairie le 10/02/2011 20:39
4  include('../gen/sql/pgsql/dossier.inc.php');  include('../gen/sql/pgsql/dossier.inc.php');
5    
6    /*Tables sur lesquels la requête va s'effectuer*/
7  $table = DB_PREFIXE."dossier  $table = DB_PREFIXE."dossier
8  LEFT JOIN ".DB_PREFIXE."instructeur  LEFT JOIN ".DB_PREFIXE."instructeur
9      ON dossier.instructeur = instructeur.instructeur      ON dossier.instructeur = instructeur.instructeur
# Line 12  LEFT JOIN ".DB_PREFIXE."avis_decision Line 14  LEFT JOIN ".DB_PREFIXE."avis_decision
14  LEFT JOIN ".DB_PREFIXE."division  LEFT JOIN ".DB_PREFIXE."division
15      ON dossier.division=division.division";      ON dossier.division=division.division";
16    
17    /*Champs du début de la requête*/
18  $champAffiche=array(  $champAffiche=array(
19      'dossier.dossier as "'._("dossier").'"',      'dossier.dossier as "'._("dossier").'"',
20      'dossier.demandeur_nom as "'._("demandeur_nom").'"',      'dossier.demandeur_nom as "'._("demandeur_nom").'"',
# Line 28  $champAffiche=array( Line 31  $champAffiche=array(
31       as "'._("enjeu").'"',       as "'._("enjeu").'"',
32  );  );
33    
34    /*Tri*/
35  $tri= "order by dossier.dossier";  $tri= "order by dossier.dossier";
36    
37  $champRecherche=array("dossier","demandeur_nom");  /*Recherche simple*/
38    $champRecherche=array(    'dossier.dossier as "'._("dossier").'"',
39        'dossier.demandeur_nom as "'._("demandeur_nom").'"',);
40    
41    /*Icone*/
42  $ico = "../img/ico_dossier.png";  $ico = "../img/ico_dossier.png";
43    
44  $edition="";  $edition="";
45    
46    /*Si l'on se trouve dans le formulaire architecte, mettre certaines actions
47     * au tableau*/
48  if ($retourformulaire== 'architecte'){  if ($retourformulaire== 'architecte'){
49      $tab_actions['corner']['ajouter'] = NULL;      $tab_actions['corner']['ajouter'] = NULL;
50      $tab_actions['left']['consulter'] = NULL;      $tab_actions['left']['consulter'] = NULL;
51      $tab_actions['content'] =NULL;      $tab_actions['content'] =NULL;
52      $selection=" where dossier.architecte ='".$idx."'";      $selection=" where dossier.architecte ='".$idx."'";
53  }  }
54    /*Si l'on se trouve dans le formulaire travaux, mettre certaines actions
55     * au tableau*/
56  if ($retourformulaire== 'travaux'){  if ($retourformulaire== 'travaux'){
57      $tab_actions['corner']['ajouter'] = NULL;      $tab_actions['corner']['ajouter'] = NULL;
58      $tab_actions['left']['consulter'] = NULL;      $tab_actions['left']['consulter'] = NULL;
# Line 49  if ($retourformulaire== 'travaux'){ Line 60  if ($retourformulaire== 'travaux'){
60      $selection=" where dossier.travaux ='".$idx."'";      $selection=" where dossier.travaux ='".$idx."'";
61  }  }
62    
63    /*Si l'on se trouve dans le formulaire dossier_instruction*/
64  if (isset($_GET["obj"]) && $_GET["obj"] == "dossier_instruction") {  if (isset($_GET["obj"]) && $_GET["obj"] == "dossier_instruction") {
65      // Configuration de la recherche avancee      // Configuration de la recherche avancee
66      if (!isset($options)) {      if (!isset($options)) {
# Line 59  if (isset($_GET["obj"]) && $_GET["obj"] Line 71  if (isset($_GET["obj"]) && $_GET["obj"]
71          0 => array("", "Oui", "Non", ),          0 => array("", "Oui", "Non", ),
72          1 => array(_("choisir")." "._("accord_tacite"), _("Oui"), _("Non"), ),          1 => array(_("choisir")." "._("accord_tacite"), _("Oui"), _("Non"), ),
73      );      );
74      //      /*Champs pour la recherche avancée*/
75      $champs['dossier'] = array(      $champs['dossier'] = array(
76          'table' => 'dossier',          'table' => 'dossier',
77          'colonne' => 'dossier',          'colonne' => 'dossier',
# Line 67  if (isset($_GET["obj"]) && $_GET["obj"] Line 79  if (isset($_GET["obj"]) && $_GET["obj"]
79          'taille' => 30,          'taille' => 30,
80          'libelle' => _('dossier'));          'libelle' => _('dossier'));
81      //      //
82      $champs['nature'] = array(      $champs['dossier_autorisation_type_detaille'] = array(
83          'table' => 'dossier',          'table' => 'dossier_autorisation_type_detaille',
84          'colonne' => 'nature',          'colonne' => 'dossier_autorisation_type_detaille',
85          'type' => 'select',          'type' => 'select',
86          'taille' => 30,          'taille' => 30,
87          'libelle' => _('nature'));          'libelle' => _('dossier_autorisation_type_detaille'));
88    
89    
90    
# Line 274  if (isset($_GET["obj"]) && $_GET["obj"] Line 286  if (isset($_GET["obj"]) && $_GET["obj"]
286          'type' => 'date',          'type' => 'date',
287          'taille' => 8,          'taille' => 8,
288          'where' => 'intervaldate');          'where' => 'intervaldate');
289      //      /*Configuration de la recherche avancée*/
290      $options[] = array(      $options[] = array(
291          'type' => 'search',          'type' => 'search',
292          'display' => true,          'display' => true,
# Line 283  if (isset($_GET["obj"]) && $_GET["obj"] Line 295  if (isset($_GET["obj"]) && $_GET["obj"]
295          'absolute_object' => 'dossier');          'absolute_object' => 'dossier');
296  }  }
297    
298    /*Ajout de sous-formulaire à notre objet*/
299  $sousformulaire=array("instruction",  $sousformulaire=array("donnees_techniques",
300                          "instruction",
301                        "consultation",                        "consultation",
302                          "lot",
303                        "terrain",                        "terrain",
304                        "blocnote",                        "blocnote",
305                        "destination_shon",                        "destination_shon",
306                        "statistique",                        "statistique",
307                        "dossier_message");                        "dossier_message",
308                          "dossier_commission",
309                          "rapport_instruction",);
310    
311  //  /*Ajout de paramètre à certains sous-formulaire*/
312  $sousformulaire_parameters = array(  $sousformulaire_parameters = array(
313      "consultation" => array(      "consultation" => array(
314          "title" => _("consultation(s)"),          "title" => _("consultation(s)"),
# Line 300  $sousformulaire_parameters = array( Line 316  $sousformulaire_parameters = array(
316      "dossier_message" => array(      "dossier_message" => array(
317          "title" => _("message(s)"),          "title" => _("message(s)"),
318      ),      ),
319        "dossier_commission" => array(
320            "title" => _("commission(s)"),
321        ),
322        "rapport_instruction" => array(
323            "title" => _("rapport d'instruction"),
324            "href" => "../app/rapport_instruction.php?idx=".((isset($idx))? $idx:""),
325        ),
326        "lot" => array(
327            "title" => _("lot(s)"),
328        ),
329  );  );
330    
331  ?>  ?>

Legend:
Removed from v.872  
changed lines
  Added in v.1262

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26