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

Diff of /trunk/gen/sql/pgsql/parcelle.inc.php

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

revision 415 by atreal, Wed Mar 28 13:52:33 2012 UTC revision 416 by nhaye, Fri Sep 21 14:10:16 2012 UTC
# Line 1  Line 1 
1  <?php  <?php
2  //$Id$  //$Id$
3  //gen openMairie le 28/03/2012 15:35  //gen openMairie le 21/09/2012 12:58
4    
5  $DEBUG=0;  $DEBUG=0;
6  $serie=15;  $serie=15;
7  $ico="../img/ico_application.png";  $ico="../img/ico_application.png";
# Line 11  if(!isset($tricolsf)) $tricolsf=''; Line 12  if(!isset($tricolsf)) $tricolsf='';
12  if(!isset($premiersf)) $premiersf='';  if(!isset($premiersf)) $premiersf='';
13  if(!isset($selection)) $selection='';  if(!isset($selection)) $selection='';
14  if(!isset($retourformulaire)) $retourformulaire='';  if(!isset($retourformulaire)) $retourformulaire='';
15  if(isset($idx)){  if (isset($idx) && $idx != ']' && trim($idx) != '') {
16      if($idx != ']')      $ent .= "->&nbsp;".$idx."&nbsp;";
     if (trim($idx!=''))  
         $ent = $ent."-><font id='idz1'>&nbsp;".$idx."&nbsp;</font>";  
     }  
     if(isset($idz) ){  
     if (trim($idz!=''))  
         $ent = $ent."&nbsp;<font id='idz1'>&nbsp;".strtoupper($idz)."&nbsp;</font>";  
17  }  }
18  $table=DB_PREFIXE."parcelle";  if (isset($idz) && trim($idz) != '') {
19  $champAffiche=array(      $ent .= "&nbsp;".strtoupper($idz)."&nbsp;";
20      'parcelle as "'._("parcelle").'"',  }
21      'debut as "'._("debut").'"',  // FROM
22      'rivoli as "'._("rivoli").'"',  $table = DB_PREFIXE."parcelle
23      'proprietaire as "'._("proprietaire").'"',      LEFT JOIN ".DB_PREFIXE."rivoli
24      'pos as "'._("pos").'"',          ON parcelle.rivoli=rivoli.rivoli
25      'surface as "'._("surface").'"',      LEFT JOIN ".DB_PREFIXE."proprietaire
26      'section as "'._("section").'"',          ON parcelle.proprietaire=proprietaire.proprietaire
27      'commune as "'._("commune").'"',      LEFT JOIN ".DB_PREFIXE."pos
28      'geom as "'._("geom").'"'          ON parcelle.pos=pos.pos ";
29    // SELECT
30    $champAffiche = array(
31        'parcelle.parcelle as "'._("parcelle").'"',
32        'parcelle.debut as "'._("debut").'"',
33        'rivoli.libelle as "'._("rivoli").'"',
34        'proprietaire.civilite as "'._("proprietaire").'"',
35        'pos.libelle as "'._("pos").'"',
36        'parcelle.surface as "'._("surface").'"',
37        'parcelle.section as "'._("section").'"',
38        'parcelle.commune as "'._("commune").'"',
39        'parcelle.geom as "'._("geom").'"',
40      );      );
41  $champNonAffiche=array(  //
42    $champNonAffiche = array(
43      );      );
44  $champRecherche=array(  //
45      'parcelle as "'._("parcelle").'"',  $champRecherche = array(
46      'debut as "'._("debut").'"',      'parcelle.parcelle as "'._("parcelle").'"',
47      'rivoli as "'._("rivoli").'"',      'parcelle.debut as "'._("debut").'"',
48      'proprietaire as "'._("proprietaire").'"',      'rivoli.libelle as "'._("rivoli").'"',
49      'pos as "'._("pos").'"',      'proprietaire.libelle as "'._("proprietaire").'"',
50      'section as "'._("section").'"',      'pos.libelle as "'._("pos").'"',
51      'commune as "'._("commune").'"'      'parcelle.surface as "'._("surface").'"',
52        'parcelle.section as "'._("section").'"',
53        'parcelle.commune as "'._("commune").'"',
54      );      );
55  $tri="";  $tri="ORDER BY parcelle.debut ASC NULLS LAST";
56  $edition="parcelle";  $edition="parcelle";
57  $selection='';  $selection='';
58  if ($retourformulaire== 'rivoli')  if ($retourformulaire== 'rivoli') {
59      $selection=" where parcelle.rivoli ='".$idx."'";      $selection=" WHERE (parcelle.rivoli ='".$idx."')";
60  if ($retourformulaire== 'proprietaire')  }
61      $selection=" where parcelle.proprietaire ='".$idx."'";  if ($retourformulaire== 'proprietaire') {
62  if ($retourformulaire== 'pos')      $selection=" WHERE (parcelle.proprietaire ='".$idx."')";
63      $selection=" where parcelle.pos ='".$idx."'";  }
64  $sousformulaire=array('terrain','dossier');  if ($retourformulaire== 'pos') {
65        $selection=" WHERE (parcelle.pos ='".$idx."')";
66    }
67    $sousformulaire = array(
68        'terrain',
69        'dossier',);
70  ?>  ?>

Legend:
Removed from v.415  
changed lines
  Added in v.416

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26