| Line 19... |
Line 19... |
| 19 |
// | |
|
19 |
// | |
|
| 20 |
// | You should have received a copy of the GNU General Public License |
|
20 |
// | You should have received a copy of the GNU General Public License |
|
| 21 |
// | along with Foobar; if not, write to the Free Software |
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
| 22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
| 23 |
// +------------------------------------------------------------------------------------------------------+
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
| 24 |
// CVS : $Id: carto_carte.class.php,v 1.4 2005-02-23 17:29:38 jpm Exp $
|
24 |
// CVS : $Id: carto_carte.class.php,v 1.5 2005-11-23 10:25:03 jp_milcent Exp $
|
| 25 |
/**
|
25 |
/**
|
| 26 |
* Classe Carto_Carte.
|
26 |
* Classe Carto_Carte.
|
| 27 |
*
|
27 |
*
|
| 28 |
* Calsse permettant de réaliser des cartes.
|
28 |
* Calsse permettant de réaliser des cartes.
|
| 29 |
*
|
29 |
*
|
| Line 32... |
Line 32... |
| 32 |
*@author Nicolas MATHIEU
|
32 |
*@author Nicolas MATHIEU
|
| 33 |
//Autres auteurs :
|
33 |
//Autres auteurs :
|
| 34 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
34 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
| 35 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
35 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
| 36 |
*@copyright Tela-Botanica 2000-2004
|
36 |
*@copyright Tela-Botanica 2000-2004
|
| 37 |
*@version $Revision: 1.4 $ $Date: 2005-02-23 17:29:38 $
|
37 |
*@version $Revision: 1.5 $ $Date: 2005-11-23 10:25:03 $
|
| 38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
| 39 |
*/
|
39 |
*/
|
| Line 40... |
Line 40... |
| 40 |
|
40 |
|
| 41 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 89... |
Line 89... |
| 89 |
var $_maxiV;
|
89 |
var $_maxiV;
|
| 90 |
var $_maxiB;
|
90 |
var $_maxiB;
|
| 91 |
//Le type de formule mathématique permettant de colorier la carte
|
91 |
//Le type de formule mathématique permettant de colorier la carte
|
| 92 |
var $_formule_coloriage;
|
92 |
var $_formule_coloriage;
|
| 93 |
//L'action à réaliser
|
93 |
//L'action à réaliser
|
| 94 |
var $_action;
|
94 |
var $_action;
|
| 95 |
|
- |
|
| 96 |
// +--------------------------------------------------------------------------------------------------+
|
- |
|
| 97 |
// Conifugration de la carto
|
- |
|
| 98 |
var $_maxiB;
|
- |
|
| 99 |
|
- |
|
| Line 100... |
Line 95... |
| 100 |
|
95 |
|
| 101 |
// +--------------------------------------------------------------------------------------------------+
|
96 |
// +--------------------------------------------------------------------------------------------------+
|
| 102 |
// LE CONSTRUCTEUR DE LA CLASSE
|
97 |
// LE CONSTRUCTEUR DE LA CLASSE
|
| 103 |
function Carto_Carte($id, $id_zone_geo_carte, $nom, $masque, $fond, $chemin, $info_table_zg, $info_table_action)
|
98 |
function Carto_Carte($id, $id_zone_geo_carte, $nom, $masque, $fond, $chemin, $info_table_zg, $info_table_action)
|
| Line 223... |
Line 218... |
| 223 |
// Nous chargons alors l'ojet approprié en descendant grâce a la généalogie
|
218 |
// Nous chargons alors l'ojet approprié en descendant grâce a la généalogie
|
| Line 224... |
Line 219... |
| 224 |
|
219 |
|
| 225 |
$historique_cartes = explode('*',$this->historique_cartes);
|
220 |
$historique_cartes = explode('*',$this->historique_cartes);
|
| 226 |
foreach ($historique_cartes as $key => $value) {
|
221 |
foreach ($historique_cartes as $key => $value) {
|
| 227 |
if ($key != 0) {
|
222 |
if ($key != 0) {
|
| - |
|
223 |
//$this = $this->fils[$value];
|
| - |
|
224 |
foreach (get_object_vars($this->fils[$value]) as $key => $value) {
|
| - |
|
225 |
$this->$key = $value;
|
| 228 |
$this = $this->fils[$value];
|
226 |
}
|
| 229 |
}
|
227 |
}
|
| 230 |
}
|
228 |
}
|
| 231 |
$this->image_x = $image_x;
|
229 |
$this->image_x = $image_x;
|
| 232 |
$this->image_y = $image_y;
|
230 |
$this->image_y = $image_y;
|
| Line 279... |
Line 277... |
| 279 |
elseif ($this->liste_zone_carte != '') {
|
277 |
elseif ($this->liste_zone_carte != '') {
|
| 280 |
$liste_zone_carte = $this->liste_zone_carte;
|
278 |
$liste_zone_carte = $this->liste_zone_carte;
|
| 281 |
$historique_cartes = explode('*',$this->historique_cartes);
|
279 |
$historique_cartes = explode('*',$this->historique_cartes);
|
| 282 |
foreach ($historique_cartes as $key => $value) {
|
280 |
foreach ($historique_cartes as $key => $value) {
|
| 283 |
if ($key != 0) {
|
281 |
if ($key != 0) {
|
| 284 |
$this = $this->fils[$value];
|
282 |
//$this = $this->fils[$value];
|
| - |
|
283 |
foreach (get_object_vars($this->fils[$value]) as $key => $value) {
|
| - |
|
284 |
$this->$key = $value;
|
| - |
|
285 |
}
|
| 285 |
}
|
286 |
}
|
| 286 |
}
|
287 |
}
|
| 287 |
$this->liste_zone_carte = $liste_zone_carte;
|
288 |
$this->liste_zone_carte = $liste_zone_carte;
|
| Line 288... |
Line 289... |
| 288 |
|
289 |
|
| Line 299... |
Line 300... |
| 299 |
else if ($this->historique_cartes) {
|
300 |
else if ($this->historique_cartes) {
|
| 300 |
// Nous chargons alors l'ojet approprié en descendant grâce a la généalogie
|
301 |
// Nous chargons alors l'ojet approprié en descendant grâce a la généalogie
|
| 301 |
$historique_cartes = explode('*',$this->historique_cartes);
|
302 |
$historique_cartes = explode('*',$this->historique_cartes);
|
| 302 |
foreach ($historique_cartes as $key => $value) {
|
303 |
foreach ($historique_cartes as $key => $value) {
|
| 303 |
if ($key != 0) {
|
304 |
if ($key != 0) {
|
| 304 |
$this = $this->fils[$value];
|
305 |
//$this = $this->fils[$value];
|
| - |
|
306 |
foreach (get_object_vars($this->fils[$value]) as $key => $value) {
|
| - |
|
307 |
$this->$key = $value;
|
| - |
|
308 |
}
|
| 305 |
}
|
309 |
}
|
| 306 |
}
|
310 |
}
|
| 307 |
// une foit que l'on a charge le bon objet nous le colorions
|
311 |
// une foit que l'on a charge le bon objet nous le colorions
|
| 308 |
$res .= ''.$this->_donnerListeZoneCarte()."<br />\n";
|
312 |
$res .= ''.$this->_donnerListeZoneCarte()."<br />\n";
|
| Line 795... |
Line 799... |
| 795 |
|
799 |
|
| 796 |
|
800 |
|
| 797 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
801 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| - |
|
802 |
*
|
| - |
|
803 |
* $Log: not supported by cvs2svn $
|
| - |
|
804 |
* Revision 1.4 2005/02/23 17:29:38 jpm
|
| 798 |
*
|
805 |
* Ajout d'un id au formulaire de la carto.
|
| 799 |
* $Log: not supported by cvs2svn $
|
806 |
*
|
| 800 |
* Revision 1.3 2005/02/22 19:35:08 jpm
|
807 |
* Revision 1.3 2005/02/22 19:35:08 jpm
|
| 801 |
* Fin de gestion des variables via les sessions.
|
808 |
* Fin de gestion des variables via les sessions.
|
| 802 |
*
|
809 |
*
|