Code source du fichier arbre.php

Code source du fichier arbre.php :

(c) John Bonobo - Bonobo Future Systems Inc. - Nancy, Berlin, 2000-2003.


<?php

// /////////////////////////////////////////////////////////////////////// //
//
// Author: John Bonobo (Bonobo Future Systems)
// Copyright (C) 2000-2003, John Bonobo
// john.bonobo@free.fr
// http://john.bonobo.free.fr
//
// /////////////////////////////////////////////////////////////////////// //
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the
// Free Software Foundation; either version 2 of the License, or (at your
// option) any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, write to the Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// GNU General Public License : http://www.gnu.org/licenses/gpl.html
// Free Software Foundation : http://www.gnu.org/fsf/fsf.html
//
// /////////////////////////////////////////////////////////////////////// //

?>


<center><script type="text/javascript"><!--
google_ad_client = "pub-9072325218963400";
/* 728x90, date de création 24/04/11 */
google_ad_slot = "1201648247";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><center><script type="text/javascript"><!--
google_ad_client = "pub-9072325218963400";
/* 728x90, date de création 24/04/11 */
google_ad_slot = "1201648247";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><center><script type="text/javascript"><!--
google_ad_client = "pub-9072325218963400";
/* 728x90, date de création 24/04/11 */
google_ad_slot = "1201648247";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><center><script type="text/javascript"><!--
google_ad_client = "pub-9072325218963400";
/* 728x90, date de création 24/04/11 */
google_ad_slot = "1201648247";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><center><script type="text/javascript"><!--
google_ad_client = "pub-9072325218963400";
/* 728x90, date de création 24/04/11 */
google_ad_slot = "1201648247";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><center><script type="text/javascript"><!--
google_ad_client = "pub-9072325218963400";
/* 728x90, date de création 24/04/11 */
google_ad_slot = "1201648247";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><center><script type="text/javascript"><!--
google_ad_client = "pub-9072325218963400";
/* 728x90, date de création 24/04/11 */
google_ad_slot = "1201648247";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><center><script type="text/javascript"><!--
google_ad_client = "pub-9072325218963400";
/* 728x90, date de création 24/04/11 */
google_ad_slot = "1201648247";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><center><script type="text/javascript"><!--
google_ad_client = "pub-9072325218963400";
/* 728x90, date de création 24/04/11 */
google_ad_slot = "1201648247";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>
<div class="creuse">


<h2 class="blu">

<?php


echo $sommaire[$lng]."</h2>";

$div1=0;
$div2=0;
$div3=0;
$div4=0;
$div5=0;

$sql="SELECT niv1,niv2,niv3,niv4,niv5,titre".$suffixe.",lien,icone FROM arborescence";

$req mysql_query($sql) or die("Erreur SQL !<br>".$sql."<br>".mysql_error());
while(
$data mysql_fetch_array($req))
    {
     
$m[1]=$data["niv1"];
     
$m[2]=$data["niv2"];
     
$m[3]=$data["niv3"];
     
$m[4]=$data["niv4"];
     
$m[5]=$data["niv5"];

     if (
$m[1]!=0)
       {


        if (
$m[2]==0)
        {
            
// NIVEAU 1

             
if ($m[1]==$n[1]) {echo "<div id=\"D1\"><b><a href=".lien($m[1],$m[2],$m[3],$m[4],$m[5],$data["lien"],$snd,$lng,$nav,$sty).">".tab1($sty,$data["icone"],50).$data["titre".$suffixe]."</a></b>
                         "
;$div1=1;}
         elseif (
$m[1]==$n[1]+1)
             {
             if (
$div5==1) {echo"</div>";$div5=0;}
             if (
$div4==1) {echo"</div>";$div4=0;}
             if (
$div3==1) {echo"</div>";$div3=0;}
             if (
$div2==1) {echo"</div>";$div2=0;}
             if (
$div1==1) {echo"</div>";$div1=0;}

             echo 
"<a href=".lien($m[1],$m[2],$m[3],$m[4],$m[5],$data["lien"],$snd,$lng,$nav,$sty).">".tab1($sty,$data["icone"],50).$data["titre".$suffixe]."</a>
             "
;
            }
         else   {echo 
"<a href=".lien($m[1],$m[2],$m[3],$m[4],$m[5],$data["lien"],$snd,$lng,$nav,$sty).">".tab1($sty,$data["icone"],50).$data["titre".$suffixe]."</a>
             "
;}
         }

        elseif ((
$m[1]==$n[1])&&($m[3]==0))
        {
            
// NIVEAU 2

             
if ($m[2]==$n[2]) {echo "<div id=\"D2\"><b><a href=".lien($m[1],$m[2],$m[3],$m[4],$m[5],$data["lien"],$snd,$lng,$nav,$sty).">".tab1($sty,$data["icone"],30).$data["titre".$suffixe]."</a></b>
                         "
;$div2=1;}
         elseif (
$m[2]==$n[2]+1)
            {
             if (
$div5==1) {echo"</div>";$div5=0;}
             if (
$div4==1) {echo"</div>";$div4=0;}
             if (
$div3==1) {echo"</div>";$div3=0;}
             if (
$div2==1) {echo"</div>";$div2=0;}

             echo 
"<a href=".lien($m[1],$m[2],$m[3],$m[4],$m[5],$data["lien"],$snd,$lng,$nav,$sty).">".tab1($sty,$data["icone"],30).$data["titre".$suffixe]."</a>
             "
;
            }
         else   {echo 
"<a href=".lien($m[1],$m[2],$m[3],$m[4],$m[5],$data["lien"],$snd,$lng,$nav,$sty).">".tab1($sty,$data["icone"],30).$data["titre".$suffixe]."</a>
             "
;}
        }


        elseif ((
$m[1]==$n[1])&&($m[2]==$n[2])&&($m[4]==0))
        {
            
// NIVEAU 3

             
if ($m[3]==$n[3]) {echo "<div id=\"D3\"><b><a href=".lien($m[1],$m[2],$m[3],$m[4],$m[5],$data["lien"],$snd,$lng,$nav,$sty).">".$data["titre".$suffixe]."</a></b>
                         "
;$div3=1;}
         elseif (
$m[3]==$n[3]+1)
            {
             if (
$div5==1) {echo"</div>";$div5=0;}
             if (
$div4==1) {echo"</div>";$div4=0;}
             if (
$div3==1) {echo"</div>";$div3=0;}

             echo 
"<a href=".lien($m[1],$m[2],$m[3],$m[4],$m[5],$data["lien"],$snd,$lng,$nav,$sty).">".$data["titre".$suffixe]."</a>
             "
;
            }
         else   {echo 
"<a href=".lien($m[1],$m[2],$m[3],$m[4],$m[5],$data["lien"],$snd,$lng,$nav,$sty).">".$data["titre".$suffixe]."</a>
             "
;}
        }

        elseif ((
$m[1]==$n[1])&&($m[2]==$n[2])&&($m[3]==$n[3])&&($m[5]==0))
        {
             if (
$m[4]==$n[4]) {echo "<div id=\"D4\"><b><a href=".lien($m[1],$m[2],$m[3],$m[4],$m[5],$data["lien"],$snd,$lng,$nav,$sty).">".$data["titre".$suffixe]."</a></b>
                         "
;$div4=1;}
         elseif (
$m[4]==$n[4]+1)
            {
             if (
$div5==1) {echo"</div>";$div5=0;}
             if (
$div4==1) {echo"</div>";$div4=0;}

             echo 
"<a href=".lien($m[1],$m[2],$m[3],$m[4],$m[5],$data["lien"],$snd,$lng,$nav,$sty).">".$data["titre".$suffixe]."</a>
             "
;
            }
         else   {echo 
"<a href=".lien($m[1],$m[2],$m[3],$m[4],$m[5],$data["lien"],$snd,$lng,$nav,$sty).">".$data["titre".$suffixe]."</a>
             "
;}


        }

            elseif ((
$m[1]==$n[1])&&($m[2]==$n[2])&&($m[3]==$n[3])&&($m[4]==$n[4]))
        {
             if (
$m[5]==$n[5]) {echo "<div id=\"D5\"><b><a href=".lien($m[1],$m[2],$m[3],$m[4],$m[5],$data["lien"],$snd,$lng,$nav,$sty).">".$data["titre".$suffixe]."</a></b>
                         "
;$div5=1;}
         elseif (
$m[5]==$n[5]+1)
            {
             if (
$div5==1) {echo"</div>";$div5=0;}

             echo 
"<a href=".lien($m[1],$m[2],$m[3],$m[4],$m[5],$data["lien"],$snd,$lng,$nav,$sty).">".$data["titre".$suffixe]."</a>
             "
;
            }
         else   {echo 
"<a href=".lien($m[1],$m[2],$m[3],$m[4],$m[5],$data["lien"],$snd,$lng,$nav,$sty).">".$data["titre".$suffixe]."</a>
             "
;}



        }


       }



    }

if (
$div5==1) {echo"</div>";}
if (
$div4==1) {echo"</div>";}
if (
$div3==1) {echo"</div>";}
if (
$div2==1) {echo"</div>";}
if (
$div1==1) {echo"</div>";}

?>


</div>
<center><script type="text/javascript"><!--
google_ad_client = "pub-9072325218963400";
/* 728x90, date de création 24/04/11 */
google_ad_slot = "1201648247";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><center><script type="text/javascript"><!--
google_ad_client = "pub-9072325218963400";
/* 728x90, date de création 24/04/11 */
google_ad_slot = "1201648247";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><center><script type="text/javascript"><!--
google_ad_client = "pub-9072325218963400";
/* 728x90, date de création 24/04/11 */
google_ad_slot = "1201648247";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><center><script type="text/javascript"><!--
google_ad_client = "pub-9072325218963400";
/* 728x90, date de création 24/04/11 */
google_ad_slot = "1201648247";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><center><script type="text/javascript"><!--
google_ad_client = "pub-9072325218963400";
/* 728x90, date de création 24/04/11 */
google_ad_slot = "1201648247";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><center><script type="text/javascript"><!--
google_ad_client = "pub-9072325218963400";
/* 728x90, date de création 24/04/11 */
google_ad_slot = "1201648247";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><center><script type="text/javascript"><!--
google_ad_client = "pub-9072325218963400";
/* 728x90, date de création 24/04/11 */
google_ad_slot = "1201648247";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><center><script type="text/javascript"><!--
google_ad_client = "pub-9072325218963400";
/* 728x90, date de création 24/04/11 */
google_ad_slot = "1201648247";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><center><script type="text/javascript"><!--
google_ad_client = "pub-9072325218963400";
/* 728x90, date de création 24/04/11 */
google_ad_slot = "1201648247";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>

Sources PHP du site officiel de John Bonobo

(c) John Bonobo - Bonobo Future Systems Inc. - Nancy, Berlin, 2000-2003.




Cette page respecte les standards définis par le W3C.