1 |
<?php |
<?php |
2 |
//$Id$ |
//$Id$ |
3 |
//gen openMairie le 27/09/2012 11:11 |
//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 |
|
|
382 |
$this->valF['temp5'] = $val['temp5']; |
$this->valF['temp5'] = $val['temp5']; |
383 |
} |
} |
384 |
$this->valF['servitude'] = $val['servitude']; |
$this->valF['servitude'] = $val['servitude']; |
385 |
$this->valF['geom'] = $val['geom']; |
if ($val['geom'] == "") { |
386 |
$this->valF['geom1'] = $val['geom1']; |
unset($this->valF['geom']); |
387 |
|
} |
388 |
|
if ($val['geom1'] == "") { |
389 |
|
unset($this->valF['geom1']); |
390 |
|
} |
391 |
} |
} |
392 |
|
|
393 |
//========================== |
//========================== |
1279 |
$this->init_select($form, $db, $maj, $debug, "travaux", |
$this->init_select($form, $db, $maj, $debug, "travaux", |
1280 |
$sql_travaux, $sql_travaux_by_id, false); |
$sql_travaux, $sql_travaux_by_id, false); |
1281 |
// geom |
// geom |
1282 |
if($maj==1){ //modification |
if($maj==1 || $maj==3){ //modification ou visualisation |
1283 |
$contenu=array(); |
$contenu=array(); |
1284 |
$contenu[0]=array($this->getParameter("aff"),$this->getParameter("idx")); |
$contenu[0]=array("dossier",$this->getParameter("idx"),"0"); |
1285 |
$form->setSelect('geom',$contenu); |
$form->setSelect('geom',$contenu); |
1286 |
} |
} |
1287 |
// geom1 |
// geom1 |
1288 |
if($maj==1){ //modification |
if($maj==1 || $maj==3){ //modification ou visualisation |
1289 |
$contenu=array(); |
$contenu=array(); |
1290 |
$contenu[0]=array($this->getParameter("aff"),$this->getParameter("idx")); |
$contenu[0]=array("dossier",$this->getParameter("idx"),"1"); |
1291 |
$form->setSelect('geom1',$contenu); |
$form->setSelect('geom1',$contenu); |
1292 |
} |
} |
1293 |
}// fin select |
}// fin select |