1 |
<?php |
<?php |
2 |
//$Id$ |
//$Id$ |
3 |
//gen openMairie le 10/02/2011 20:32 |
//gen openMairie le 13/02/2011 22:23 |
4 |
require_once (PATH_OPENMAIRIE."formulairedyn.class.php"); |
require_once (PATH_OPENMAIRIE."formulairedyn.class.php"); |
5 |
require_once (PATH_OPENMAIRIE."dbformdyn.class.php"); |
require_once (PATH_OPENMAIRIE."dbformdyn.class.php"); |
6 |
|
|
24 |
// verifier le 2eme champ si $verifier = 1 dans gen/dyn/form.inc |
// verifier le 2eme champ si $verifier = 1 dans gen/dyn/form.inc |
25 |
$this->correct=True; |
$this->correct=True; |
26 |
$f=" ! "; |
$f=" ! "; |
27 |
$imgv="<img src='../img/punaise.png' style='vertical-align:middle' hspace='2' border='0'>"; |
$imgv="<img src='../app/img/punaise.png' style='vertical-align:middle' hspace='2' border='0'>"; |
28 |
if ($this->valF['libelle']==""){ |
if ($this->valF['libelle']==""){ |
29 |
$this->msg= $this->msg.$imgv._('libelle')." "._('obligatoire').$f; |
$this->msg= $this->msg.$imgv._('libelle')." "._('obligatoire').$f; |
30 |
$this->correct=False; |
$this->correct=False; |
88 |
function cleSecondaire($id,&$db,$val,$debug) { |
function cleSecondaire($id,&$db,$val,$debug) { |
89 |
$this->correct=True; |
$this->correct=True; |
90 |
$f=" ! "; |
$f=" ! "; |
91 |
$imgv="<img src='../img/punaise.png' style='vertical-align:middle' hspace='2' border='0'>"; |
$imgv="<img src='../app/img/punaise.png' style='vertical-align:middle' hspace='2' border='0'>"; |
92 |
// cle secondaire destination_shon |
// cle secondaire destination_shon |
93 |
$sql = "select * from public.destination_shon where destination ='".$id."'"; |
$sql = "select * from public.destination_shon where destination ='".$id."'"; |
94 |
$res = $db->query($sql); |
$res = $db->query($sql); |