Subversion Repositories Applications.papyrus

Rev

Rev 1298 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1298 Rev 1367
Line 27... Line 27...
27
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
27
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
28
*@copyright     Tela-Botanica 2000-2003
28
*@copyright     Tela-Botanica 2000-2003
29
*@version       01 juillet 2002
29
*@version       01 juillet 2002
30
// +-----------------------------------------------------------------------------------------------+
30
// +-----------------------------------------------------------------------------------------------+
31
//
31
//
32
// $Id: lib.carto.php,v 1.8 2007-04-11 08:30:12 neiluj Exp $
32
// $Id: lib.carto.php,v 1.9 2007-04-20 14:16:45 alexandre_tb Exp $
33
// FICHIER : $RCSfile: lib.carto.php,v $
33
// FICHIER : $RCSfile: lib.carto.php,v $
34
// AUTEUR  : $Author: neiluj $
34
// AUTEUR  : $Author: alexandre_tb $
35
// VERSION : $Revision: 1.8 $
35
// VERSION : $Revision: 1.9 $
36
// DATE    : $Date: 2007-04-11 08:30:12 $
36
// DATE    : $Date: 2007-04-20 14:16:45 $
37
//
37
//
38
// +-----------------------------------------------------------------------------------------------+
38
// +-----------------------------------------------------------------------------------------------+
39
// A FAIRE :
39
// A FAIRE :
40
// 1.-Rendre cette classe indépendante de l'arborescence du site.
40
// 1.-Rendre cette classe indépendante de l'arborescence du site.
41
//      On trouve encore des urls ou des chemins d'accé au fichier codé en dur dans l'appli
41
//      On trouve encore des urls ou des chemins d'accé au fichier codé en dur dans l'appli
Line 428... Line 428...
428
                $liste_zone_carte = $this->liste_zone_carte;
428
                $liste_zone_carte = $this->liste_zone_carte;
429
                // Nous chargons alors l'ojet approprié en descendant grâce a la généalogie
429
                // Nous chargons alors l'ojet approprié en descendant grâce a la généalogie
Line 430... Line 430...
430
 
430
 
431
                $historique_cartes = explode('*',$this->historique_cartes);
431
                $historique_cartes = explode('*',$this->historique_cartes);
432
                foreach ($historique_cartes as $key => $value) {
432
                foreach ($historique_cartes as $key => $value) {
-
 
433
                    if ($key != 0) { 
433
                    if ($key != 0) {
434
                        foreach (get_object_vars($this->fils[$value]) as $key => $value) 
434
                        $this = $this->fils[$value];
435
                               $this->$key = $value; 
435
                    }
436
                    }
-
 
437
                }
436
                }
438
 
437
                $this->image_x = $image_x;
439
                $this->image_x = $image_x;
438
                $this->image_y = $image_y;
440
                $this->image_y = $image_y;
439
                $this->liste_zone_carte = $liste_zone_carte;
441
                $this->liste_zone_carte = $liste_zone_carte;
440
                unset ($_SESSION['carte']) ;
442
                unset ($_SESSION['carte']) ;
Line 488... Line 490...
488
        }
490
        }
489
        elseif ($this->liste_zone_carte != '') {
491
        elseif ($this->liste_zone_carte != '') {
490
            $liste_zone_carte = $this->liste_zone_carte;
492
            $liste_zone_carte = $this->liste_zone_carte;
491
            $historique_cartes = explode('*',$this->historique_cartes);
493
            $historique_cartes = explode('*',$this->historique_cartes);
492
            foreach ($historique_cartes as $key => $value) {
494
            foreach ($historique_cartes as $key => $value) {
493
                if ($key != 0) {
495
                    if ($key != 0) { 
-
 
496
                        foreach (get_object_vars($this->fils[$value]) as $key => $value) 
494
                    $this = $this->fils[$value];
497
                               $this->$key = $value; 
-
 
498
                    }
495
                }
499
                }
496
            }
-
 
497
            $this->liste_zone_carte = $liste_zone_carte;
500
            $this->liste_zone_carte = $liste_zone_carte;
498
            if (INS_AFFICHE_ZONE_ROUGE) {
501
            if (INS_AFFICHE_ZONE_ROUGE) {
499
            	$res .= ''.$this->_donnerListeZoneCarte($this->liste_zone_carte)."<br />\n";
502
            	$res .= ''.$this->_donnerListeZoneCarte($this->liste_zone_carte)."<br />\n";
500
            }
503
            }
501
            $res .= '<input type="image" src="';
504
            $res .= '<input type="image" src="';
Line 509... Line 512...
509
        // qui nous donne la "genealogie" de la carte que l'on doit afficher 
512
        // qui nous donne la "genealogie" de la carte que l'on doit afficher 
510
        else if ($this->historique_cartes) {
513
        else if ($this->historique_cartes) {
511
            // Nous chargons alors l'ojet approprié en descendant grâce a la généalogie
514
            // Nous chargons alors l'ojet approprié en descendant grâce a la généalogie
512
            $historique_cartes = explode('*',$this->historique_cartes);
515
            $historique_cartes = explode('*',$this->historique_cartes);
513
            foreach ($historique_cartes as $key => $value) {
516
            foreach ($historique_cartes as $key => $value) {
514
                if ($key != 0) {
517
                if ($key != 0) { 
-
 
518
                    foreach (get_object_vars($this->fils[$value]) as $key => $value) 
515
                    $this = $this->fils[$value];
519
                           $this->$key = $value; 
516
                }
520
                }
517
            }
521
            }
518
            // une foit que l'on a charge le bon objet nous le colorions 
522
            // une foit que l'on a charge le bon objet nous le colorions 
519
            if (INS_AFFICHE_ZONE_ROUGE) {
523
            if (INS_AFFICHE_ZONE_ROUGE) {
520
            	$res .= ''.$this->_donnerListeZoneCarte()."<br />\n";
524
            	$res .= ''.$this->_donnerListeZoneCarte()."<br />\n";
Line 1189... Line 1193...
1189
}
1193
}
Line 1190... Line 1194...
1190
 
1194
 
1191
//-- Fin du code source  ------------------------------------------------------------
1195
//-- Fin du code source  ------------------------------------------------------------
1192
/*
1196
/*
-
 
1197
* $Log: not supported by cvs2svn $
-
 
1198
* Revision 1.8  2007/04/11 08:30:12  neiluj
-
 
1199
* remise en état du CVS...
1193
* $Log: not supported by cvs2svn $
1200
*
1194
* Revision 1.5  2006/12/01 13:23:16  florian
1201
* Revision 1.5  2006/12/01 13:23:16  florian
1195
* integration annuaire backoffice
1202
* integration annuaire backoffice
1196
*
1203
*
1197
* Revision 1.4  2006/04/04 12:23:05  florian
1204
* Revision 1.4  2006/04/04 12:23:05  florian