1 |
<?php |
<?php |
2 |
//$Id$ |
//$Id$ |
3 |
//gen openMairie le 26/09/2012 17:39 |
//gen openMairie le 03/10/2012 16:52 |
4 |
|
|
5 |
require_once ("../obj/om_dbform.class.php"); |
require_once ("../obj/om_dbform.class.php"); |
6 |
|
|
51 |
} else { |
} else { |
52 |
$this->valF['commune'] = $val['commune']; |
$this->valF['commune'] = $val['commune']; |
53 |
} |
} |
54 |
$this->valF['geom'] = $val['geom']; |
if ($val['geom'] == "") { |
55 |
|
unset($this->valF['geom']); |
56 |
|
} |
57 |
} |
} |
58 |
|
|
59 |
//========================== |
//========================== |
210 |
$this->init_select($form, $db, $maj, $debug, "rivoli", |
$this->init_select($form, $db, $maj, $debug, "rivoli", |
211 |
$sql_rivoli, $sql_rivoli_by_id, false); |
$sql_rivoli, $sql_rivoli_by_id, false); |
212 |
// geom |
// geom |
213 |
if($maj==1){ //modification |
if($maj==1 || $maj==3){ //modification ou visualisation |
214 |
$contenu=array(); |
$contenu=array(); |
215 |
$contenu[0]=array($this->getParameter("aff"),$this->getParameter("idx")); |
$contenu[0]=array("parcelle",$this->getParameter("idx"),"0"); |
216 |
$form->setSelect('geom',$contenu); |
$form->setSelect('geom',$contenu); |
217 |
} |
} |
218 |
}// fin select |
}// fin select |