Plugins  LAST
 All Data Structures Files Functions Variables Pages
coprop_lot_list.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of NOALYSS.
5  *
6  * NOALYSS is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * NOALYSS is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with NOALYSS; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 /* $Revision$ */
21 
22 // Copyright (c) 2002 Author Dany De Bontridder dany@alchimerys.be
23 
24 /**
25  * @file
26  * @brief show list building, lot and copropriétaire
27  *
28  */
30 ?>
31 <h1 class="title">Lots affectés</h1>
32 <?php for ( $i=0;$i<count($a_immeuble);$i++):?>
33 <h2 class="title">Immeuble : <?php echo HtmlInput::card_detail($a_immeuble[$i]['quick_code'],$a_immeuble[$i]['vw_name'],' style="display:inline;text-decoration:underline"')?></h2>
34 
35 <?php
36 $ret_coprop=$cn->execute("coprop",array($a_immeuble[$i]['f_id']));
37 $max_coprop=Database::num_row($ret_coprop);
38 if ($max_coprop==0)
39 {
40  echo '<p class="notice">Pas de copropriétaires pour cet immeuble</p>';
41  continue;
42 }
43 ?>
44 <ul style="list-style-type: none;margin-top:10px;margin-bottom:10px;">
45 <?php for ($e=0;$e<$max_coprop;$e++):
46  $r=Database::fetch_array($ret_coprop,$e);
47  ?>
48 <li style="margin-top:4px;margin-bottom:4px;">
49 Copropriétaire : <?php echo HtmlInput::card_detail($r['copro_qcode'],'',' style="display:inline;text-decoration:underline"').' '.h($r['copro_name']." ".$r['copro_first_name'])?>
50 </li>
51  <?php
52  $ret_lot=$cn->execute("lot",array($a_immeuble[$i]['f_id'],$r['coprop_id']));
53  $max_lot=Database::num_row($ret_lot);
54  if ($max_lot==0)
55  {
56  echo '<p class="notice">Pas de lot pour ce copropriétaires </p>';
57  continue;
58  }
59  ?>
60  <ul>
61  <?php for ($l=0;$l<$max_lot;$l++):
62  $s=Database::fetch_array($ret_lot,$l);
63  ?>
64  <li style="list-style-type: square;margin-top:2px;margin-bottom:2px;">Lot : <?php echo HtmlInput::card_detail($s['lot_qcode'],'',' style="display:inline;text-decoration:underline"')." ".h($s['lot_name']." ".$s['lot_desc'])?></li>
65  <?php endfor;?>
66  </ul>
67  <?php endfor;?>
68 </ul>
69 
70 <?php endfor; ?>
71 
72 <h1 class="title">Lot sans immeuble ou sans copropriétaires</h1>
73 <ul>
74 <?php for($e=0;$e<count($a_undef_lot);$e++):?>
75  <li><?php echo HtmlInput::card_detail($a_undef_lot[$e]['lot_qcode'],'',' style="display:inline;text-decoration:underline"')." ".h($a_undef_lot[$e]['lot_name']." ".$a_undef_lot[$e]['lot_desc'])?></li>
76 <?php endfor; ?>
77 </ul>
$note style
$select_type id
$a_immeuble
Definition: lot.inc.php:48
$max_lot
$max_coprop
$r
$a_undef_lot
Definition: lot.inc.php:81
$gDossier
global $cn