208 lines
8.7 KiB
PHP
208 lines
8.7 KiB
PHP
<?
|
|
/***************************************************************************
|
|
Archi.php - Classe Cadre
|
|
-------------------
|
|
begin : Septembre UTC 2000
|
|
copyright : (C) 2002 by NADAL Jean-Baptiste
|
|
email : jbnadal@ifrance.com
|
|
***************************************************************************
|
|
*
|
|
* Cette classe est l'ossature du Site. elle se charge de
|
|
* dessiner la structure du site.
|
|
*
|
|
***************************************************************************
|
|
* *
|
|
* 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. *
|
|
* *
|
|
***************************************************************************
|
|
* $Id: Archi.php,v 1.6 2002/12/14 19:59:27 jb Exp $
|
|
***************************************************************************/
|
|
|
|
$topdir = "./";
|
|
|
|
|
|
class Archi {
|
|
// Variables
|
|
var $pCompteur;
|
|
var $szDateduJour;
|
|
var $version;
|
|
var $FichierHaut;
|
|
// =============================================================
|
|
// Les Fonctions
|
|
// =============================================================
|
|
// Constructeur de la classe
|
|
function Archi ($nomF, $szCpt, $szDate)
|
|
{
|
|
$this->FichierHaut = $nomF;
|
|
$this->pCompteur = $szCpt;
|
|
$this->szDateduJour = $szDate;
|
|
}
|
|
|
|
// =============================================================
|
|
// Cette fonction affiche la partie ghaute du document Html
|
|
// c'est a dire les fonction en JavaScript, ainsi que le bandeau du haaut
|
|
// et la barre des menus.
|
|
function AffichePartieHaut($nTypeCompteur, $nAudebut)
|
|
{
|
|
global $racine;
|
|
echo "
|
|
<head>
|
|
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"/>
|
|
<meta http-equiv=\"Content-Language\" content=\"fr-FR\" />
|
|
<meta name=\"robots\" content=\"index, nofollow\" />
|
|
<meta name=\"rating\" content=\"General\" />
|
|
<meta name=\"distribution\" content=\"Global\" />
|
|
<meta name=\"revisit-after\" content=\"1 month\" />
|
|
<meta name=\"owner\" content=\"ohmj@fr.st\" />
|
|
<meta name=\"copyright\" content=\"2002\" />
|
|
<meta name=\"description\" content=\"Site de l'Harmonie de
|
|
Montpellier-Jacou dans l'hérault (FRANCE)\" />
|
|
<meta name=\"keywords\" content=\"musique, harmonie, ajem, jacou,
|
|
montpellier, hautbois, basson, instrument\" />
|
|
<link rel=\"shortcut icon\"
|
|
href=\"http://ohmj.mad-troll.com/ohmj/ohmj.gif\"/>
|
|
<title>Site de l'Harmonie de Montpellier-Jacou</title>
|
|
<link rel=\"stylesheet\" type=\"text/css\"
|
|
href=\"./themes/ohmj1/ohmj1.css\" />
|
|
<!--<script language=\"Javascript\" src=\"./themes/ohmj1/ohmj1.js\"
|
|
type=\"text/javascript\" />-->";
|
|
|
|
echo "<script language=\"Javascript\" type=\"text/javascript\">\n";
|
|
|
|
echo "
|
|
<!--
|
|
function DonneDate()
|
|
{
|
|
// On recupere les donnees sur la date courante qui nous interresse
|
|
var pMaintenant = new Date();
|
|
var pJour = pMaintenant.getDate();
|
|
pJour = pJour > 9?pJour:\"0\" + pJour;
|
|
var pMois = pMaintenant.getMonth()+1;
|
|
pMois = pMois > 9?pMois:\"0\" + pMois;
|
|
var pAnnee = pMaintenant.getFullYear();
|
|
var pHeure = pMaintenant.getHours();
|
|
pHeure = pHeure > 9?pHeure:\"0\" + pHeure;
|
|
var pMinute = pMaintenant.getMinutes();
|
|
pMinute = pMinute > 9?pMinute:\"0\" + pMinute;
|
|
var resultat =\"\";
|
|
// Puis on formate la date
|
|
resultat = \"\\\"\"+ pJour+\" /\"+pMois+\" /\"+pAnnee+\" ".
|
|
" \"+pHeure+\":\"+pMinute+\"\\\"\";
|
|
return resultat;
|
|
}\n-->";
|
|
echo "</script>\n";
|
|
|
|
echo "</head>\n";
|
|
echo "<body background=\"".$racine."/Imgs/fond.gif\" ";
|
|
/* bgproperties=\"fixed\"\n";*/
|
|
if ( $nAudebut == 1)
|
|
echo " onLoad=window.setTimeout(\"supp_bandeau()\",4000) \n>";
|
|
else
|
|
echo ">\n";
|
|
|
|
$this->Affichebandeau();
|
|
include ($topdir."$this->FichierHaut");
|
|
}
|
|
|
|
// =============================================================
|
|
// Cette fonction génère et affiche le bandeau gris en haut du site
|
|
function Affichebandeau()
|
|
{
|
|
global $numVersion;
|
|
echo "<center>
|
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"
|
|
border=\"0\">
|
|
<tbody>
|
|
<tr>
|
|
<td bgcolor=\"#e7e7e7\"><img height=\"1\" alt=\"\"
|
|
src=\"".$racine."Imgs/un_pixel_blanc.gif\"
|
|
width=\"1\"/></td></tr>
|
|
</tbody></table>
|
|
<table cellspacing=\"0\" cellpadding=\"1\" width=\"100%\"
|
|
border=\"0\">
|
|
<tbody>
|
|
<tr>
|
|
<td valign=\"middle\" align=\"left\" width=\"55%\"
|
|
bgcolor=\"#c0c0c0\">
|
|
<font face=\"helvetica,verdana\" color=\"#505050\"
|
|
size=\"-2\">\n";
|
|
echo "LibOhmj v$numVersion - $this->szDateduJour - Déjà
|
|
$this->pCompteur visiteurs. </font></td>
|
|
<td valign=\"middle\" align=\"center\" bgcolor=\"#c0c0c0\">
|
|
<font face=\"helvetica,verdana\" color=\"#505050\" size=\"-2\">
|
|
<script language=\"Javascript\" type=\"text/javascript\">
|
|
<!--
|
|
nav = navigator.appName.substring(0,3);
|
|
ver = navigator.appVersion.substring(0,1)
|
|
|
|
function addFav()
|
|
{
|
|
if (nav == \"Mic\" && ver >= 4) {
|
|
url_site=\"http://www.ohmj.fr.st\";
|
|
titre_site = \"Site de l'Harmonie de Montpellier-Jacou\";
|
|
document.write('<a href=\"#\" onClick=\"window.external.".
|
|
"AddFavorite(url_site, titre_site);return(false);\">".
|
|
"Cliquez ici pour mettre ce site dans vos favoris</a>')
|
|
}
|
|
else {
|
|
document.write('Faites CTRL+D pour ajouter ce site".
|
|
" à vos favoris!')
|
|
}
|
|
}
|
|
|
|
addFav();
|
|
-->
|
|
</script></font></td> \n";
|
|
|
|
echo "</tr></tbody></table>
|
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"
|
|
border=\"0\">
|
|
<tbody>
|
|
<tr>
|
|
<td valign=\"middle\" bgcolor=\"#6f6f6f\">
|
|
<img height=\"1\" alt=\"\" src=\"".
|
|
$racine."Imgs/un_pixel_blanc.gif\"
|
|
width=\"1\"/></td></tr>
|
|
<tr>
|
|
<td bgcolor=\"#e7e7e7\">
|
|
<img height=\"1\" alt=\"\" src=\"".
|
|
$racine."Imgs/un_pixel_blanc.gif\"
|
|
width=\"1\"/></td></tr></tbody>
|
|
</table>\n";
|
|
}
|
|
|
|
// =============================================================
|
|
// Cette fonction affiche la partie basse du document Html
|
|
// c'est a dire les bas de page et les fins de Headers
|
|
function AffichePartieBas()
|
|
{
|
|
global $startTime;
|
|
global $VuePage;
|
|
$currentTime = microtime();
|
|
$VuePage = TRUE;
|
|
|
|
echo "</td></tr>
|
|
<tr>
|
|
<td valign=\"middle\" align=\"center\" bgcolor=\"#f2ae26\">
|
|
|
|
</td>
|
|
<td valign=\"top\" align=\"center\" width=\"18\"
|
|
style=\"background : url(/ohmj/Imgs/ombre_centre.gif)\"
|
|
height=\"25\"> </td>
|
|
<td valign=\"middle\" align=\"center\" bgcolor=\"#ffffff\">
|
|
<br />
|
|
Cette page a été générée en ".($currentTime - $startTime)."s
|
|
et est peut-être conforme
|
|
<a href=\"http://validator.w3.org/check/referer\">xhtml 1.0</a>.
|
|
<br/>
|
|
</td></tr>
|
|
</tbody></table></td></tr></tbody></table></center>
|
|
</center>
|
|
</body>
|
|
</html>\n";
|
|
}
|
|
} // fin de la classe
|
|
?>
|