Code source du fichier somhoriz.php

Code source du fichier somhoriz.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><?php


$colr
[0]="#0066EE";
$colr[1]="#0088FF";
$colr[2]="#44BBFF";
$colr[3]="#77EEFF";
$colr[4]="#AAFFFF";
$colr[5]="#CCFFFF";
$colr[6]="#FFFFFF";


$vue[0][1]="Accueil";
$vue[1][1]="Home";
$vue[2][1]="Home";

$vue[0][2]="Pr&eacute;sentation";
$vue[1][2]="Overview";
$vue[2][2]="Overview";




if (
$ne==1) {$profs=$prof;} else {$profs=$prof+1;}

echo
"<div id=\"corps\" style=\"background-color:".$colr[$profs].";\">";
// echo"<br/>";

echo"<div>";



for (
$j=1;$j<=$profs;$j++)
{



echo
"<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" align=\"left\"
style=\"position:relative;background-color:"
.$colr[$j-1].";color:#000000;";

if (
$j==1) { echo "background-repeat: no-repeat;
    background-position: 100px 120px;
       background-attachment: fixed;
    background-image: url("
.$fondpage.".gif);";}



echo
"\">
<tr ><td height=\"10\"></td></tr>
<tr>"
;





$sql="SELECT niv1,niv2,niv3,niv4,niv5,titre".$suffixe.",lien FROM arborescence WHERE";
for (
$i=1$i<$j$i++)
{
if (
$i!=1) {$sql=$sql." AND";}
$sql=$sql." niv".$i."=".$n[$i];}
for (
$i=$j+1$i<6$i++){
if (
$i!=2) {$sql=$sql." AND";}
$sql=$sql." niv".$i."=0";}

$req mysql_query($sql) or die("Erreur SQL !<br/>".$sql."<br/>".mysql_error());
while(
$data mysql_fetch_array($req))
{


if (
$data["niv".$j]==0)
{if (
$j==1) {$title=$vue[$lng][1];} else {$title=$vue[$lng][2];}}
else
{
$title=$data["titre".$suffixe];}


echo 
"<td style=\"border-bottom-width:1px;\">&nbsp;</td>";


if (
$data["niv".$j]!=$n[$j])
{
echo 
"<td align=\"center\" style=\"border-width:1px;background-color:#ffffff;\">";
echo 
"<a href=".lien($data["niv1"],$data["niv2"],$data["niv3"],$data["niv4"],$data["niv5"],$data["lien"],$snd,$lng,$nav,$sty).">".$title."</a>";
echo
"</td>
"
;
}
else
{

echo 
"<td align=\"center\" style=\"border-width:1px;border-bottom-width:0px;background-color:".$colr[$j].";\">";
echo 
"<a href=".lien($data["niv1"],$data["niv2"],$data["niv3"],$data["niv4"],$data["niv5"],$data["lien"],$snd,$lng,$nav,$sty)."><b>$title</b></a>";
echo
"</td>
"
;

}
}


echo
"<td style=\"border-bottom-width:1px;\">&nbsp;</td></tr></table>";


}



for (
$i=0;$i<=$profs-1;$i++)
{echo
"<br/><br/><br/>";}

echo
"</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.