1 |
<?php |
<?php |
2 |
//$Id$ |
/** |
3 |
//gen openMairie le 10/02/2011 22:10 |
* Ce fichier contient la déclaration de la classe "etat". |
4 |
require_once ("../gen/obj/etat.class.php"); |
* |
5 |
|
* @package openfoncier |
6 |
|
* @version SVN : $Id$ |
7 |
|
*/ |
8 |
|
|
9 |
|
// |
10 |
|
require_once "../gen/obj/etat.class.php"; |
11 |
|
|
12 |
|
/** |
13 |
|
* |
14 |
|
* |
15 |
|
*/ |
16 |
class etat extends etat_gen { |
class etat extends etat_gen { |
17 |
|
|
18 |
function etat($id,&$db,$debug) { |
function etat($id, &$db, $debug) { |
19 |
$this->constructeur($id,$db,$debug); |
$this->constructeur($id, $db, $debug); |
20 |
}// fin constructeur |
} |
21 |
|
|
22 |
//Ajout du type select multiple sur evenement |
function setType(&$form, $maj) { |
23 |
function setType(&$form,$maj) { |
// |
|
|
|
24 |
parent::setType($form, $maj); |
parent::setType($form, $maj); |
|
|
|
25 |
//type |
//type |
26 |
if ($maj==0){ //ajout |
if ($maj==0){ //ajout |
27 |
$form->setType('statut', 'select'); |
$form->setType('statut', 'select'); |
40 |
$form->setType('evenement','select_multiple_static'); |
$form->setType('evenement','select_multiple_static'); |
41 |
}//fin consulter |
}//fin consulter |
42 |
} |
} |
|
|
|
|
function setSelect(&$form, $maj,&$db,$debug) { |
|
43 |
|
|
44 |
|
function setSelect(&$form, $maj, &$db, $debug) { |
45 |
|
// |
46 |
|
parent::setSelect($form, $maj, $db, $debug); |
47 |
|
// |
48 |
if(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc.php")) |
if(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc.php")) |
49 |
include ("../sql/".$db->phptype."/".$this->table.".form.inc.php"); |
include ("../sql/".$db->phptype."/".$this->table.".form.inc.php"); |
50 |
elseif(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc")) |
elseif(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc")) |
51 |
include ("../sql/".$db->phptype."/".$this->table.".form.inc"); |
include ("../sql/".$db->phptype."/".$this->table.".form.inc"); |
|
|
|
|
parent::setSelect($form, $maj, $db, $debug); |
|
|
|
|
52 |
// evenement |
// evenement |
53 |
$this->init_select($form, $db, $maj, $debug, "evenement", |
$this->init_select($form, $db, $maj, $debug, "evenement", |
54 |
$sql_evenement, $sql_evenement_by_id, false); |
$sql_evenement, $sql_evenement_by_id, false); |
|
|
|
55 |
// Statut |
// Statut |
56 |
$contenu = array( |
$contenu = array( |
57 |
0 => array('encours', 'cloture',), |
0 => array('encours', 'cloture',), |
240 |
$form->setVal("evenement",$this->val[3]); |
$form->setVal("evenement",$this->val[3]); |
241 |
} |
} |
242 |
} |
} |
|
}// fin classe |
|
|
?> |
|
243 |
|
|
244 |
|
} |
245 |
|
|
246 |
|
?> |