1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
| <?php ob_start("ob_gzhandler"); ?>
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './forum/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.' .$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_SITE);
init_userprefs($userdata);
//
// End session management
//
?>
<?php
// Active tout les warning. Utile en phase de développement
// En phase de production, remplacer E_ALL par 0
error_reporting(E_ALL);
// Inclus le fichier contenant les fonctions personalisées
include_once 'mes_fonctions.php';
// Fonction de connexion à la base de données
connexion_DB('cpdt');
// Définit l'Id de la page d'accueil (1 dans cet exemple)
// Pensez à le modifier si ce n'est pas le cas chez vous.
$id_page_accueil = 0;
// Récupère l'id de la page courante passée par l'URL
// Si non défini, on considère que la page est la page d'accueil
if (isset($_GET['id_page'])) {
$_ENV['id_page'] = intval($_GET['id_page']);
} else {
$_ENV['id_page'] = $id_page_accueil;
}
// Extrait les informations correspondantes à la page en cours de la DB
extraction_infos_DB();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- Insère l'icône affichée dans les favoris-->
<LINK REL="SHORTCUT ICON" HREF="http://cpdt.wallonie.be/test-greg/favicon.ico">
<!-- Insère les mots-clés extraits de la DB dans les meta -->
<META NAME="keywords" lang="fr" CONTENT="<?php echo $_ENV['mots_cles']; ?>">
<!-- Insère la description extraite de la DB dans les meta -->
<META NAME="Description" CONTENT="<?php echo $_ENV['description']; ?>">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- Insère le titre extrait de la DB dans la balise correspondante -->
<title><?php echo $_ENV['titre']; ?></title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body background="img/i_menu/background.gif" text="#000000" link="#779150" vlink="#779150" alink="#779150" >
<table align="center"width="850" bgcolor="#FFFFFF" border="0" cellspacing="0" cellpadding="0">
<tr >
<td valign="top"colspan="4">
<div align="center" id="header">
<?php
include("header.php");
?>
</div>
</td>
</tr>
<tr>
<td colspan="4">
<table align="center" width="850" border="0" cellpadding="0" cellspacing="0">
<tr align="center" valign="top">
<td height="30" valign="top"colspan="4">
<table width="850" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="15" rowspan="2" valign="top" bgcolor="#C8D7B0"><img src="img/i_menu/corner_left.gif" alt="coin_gauche_menu"width="15" height="30" class="alti"></td>
<td width="492" height="20" valign="bottom"align="left" bgcolor="#C8D7B0">
<div class="lienSousRubrique"id="chemin_fer">
<?php
// Affiche le chemin de fer
echo 'Vous êtes ici : '.affiche_chemin_fer($_ENV['id_page']);
?>
</div>
</td>
<td width="328" rowspan="2" align="right" valign="middle" bgcolor="#C8D7B0"><a href="http://www.wallonie.be/index.shtml" target="_blank"><img src="img/i_menu/pct_rw.gif" alt="logo_région wallonne" width="22" height="15" border="0"></a><a href="http://www.wallonie.be/index.shtml" target="_blank" class="lienSousRubrique">Portail Wallonie</a><span class="lienSousRubrique"> | </span><a href="index.php" target="_parent" class="lienSousRubrique">Accueil</a><span class="lienSousRubrique"> | </span><a href="index.php?id_page=999" target="_parent" class="lienSousRubrique">Plan du site</a><span class="lienSousRubrique"> | </span><a href="index.php?id_page=9" target="_parent" class="lienSousRubrique">Contacts</a></td>
<td width="15" rowspan="2" valign="top" bgcolor="#C8D7B0"><img src="img/i_menu/corner_right.gif" alt="coin_droit_menu" width="15" height="30"></td>
</tr>
<tr>
<td width="492" height="10" valign="bottom" bgcolor="#C8D7B0" class="alti">
<div align="left"><img src="img/i_menu/corner_bottom.gif" alt="menu" width="180" height="6"></div></td>
</tr>
</table></td>
</tr>
<tr align="center" valign="top">
<td colspan="4"><div align="left"><img src="img/i_menu/filet_top.gif" alt="fond_menu" width="850" height="25"></div></td>
</tr>
</table></td>
</tr>
<tr>
<td width="15" rowspan="2" align="center" valign="top" background="img/i_menu/filet_gauche.gif"><p> </p>
<p> </p></td>
<td bgcolor="#DEE7D7"align="center" valign="top" >
<?php include("test/menu3/menuGauche3.php"); ?>
</td>
<td width="655" align="center" valign="top" bgcolor="#FFFFFF">
<div class="contenu"id="contenu">
<?php
// Affiche le contenu de la page en cours
include $_ENV['contenu'];
?>
</div>
</td>
<tr>
<td width="835"colspan="2" align="right" valign="top" bgcolor="#FFFFFF">
<div align="right"id="pied_page">
<?php include("footer.php"); ?>
</div></td>
</tr>
</table>
</body>
</html> |
Partager