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
|
<?php session_start();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php require_once('connexion.php');
// On définit le tableau contenant les pages autorisées
// ----------------------------------------------------
$pageOK = array('categorie' => 'lecturePage.php',
'inscription' => 'etudiantInscription.php',
'inscriptionOk' => 'etudiantInscriptionOk.php',
'etudiantCompte' => 'etudiantCompte.php',
'tchat' => 'discussion.php',
'listerPage' => './boss/listePage.php',
'updatePage' => './boss/majPage.php',
'updatePageEnfant' => './boss/majPageEnfant.php',
'addChildPage' => './boss/addPage.php',
'addFatherPage' => './boss/addPagePere.php',
'listerUser' => './boss/listeUtilisateur.php',
'accueil' => 'accueil.php');
//On va definir le titre de la page
if (isset($_GET['numEnfant'])) {
$test=$_GET['numEnfant'];
$info="SELECT * FROM sousMenu where idSousMenu ='$test'";
$req=mysql_query($info) or die ('Erreur Sql' . $info . '<br>' . mysql_error());
//on récupère les valeurs
$infoPage = mysql_fetch_assoc($req);
echo "<title> Magistere Banque Finance Assas - ".$infoPage['titreSousMenu']." </title>";
//echo "<meta Name='Description' Content='".$titreA.":".$texteB."'>";
} else if (isset($_GET['num'])) {
$test=$_GET['num'];
$info="SELECT * FROM menu where idMenu ='$test'";
$req=mysql_query($info) or die ('Erreur Sql' . $info . '<br>' . mysql_error());
//on récupère les valeurs
$infoPage = mysql_fetch_assoc($req);
echo "<title> Magistere Banque Finance Assas - ".$infoPage['titreMenu']." </title>";
//echo "<meta Name='Description' Content='".$titreA.":".$texteB."'>";
} else {
?>
<title>Magistere Banque Finance - Assas</title>
<meta name="description" content="Le site officiel du Magistère Banque-Finance Paris II Assas" />
<?php } ?>
<meta http-equiv="Content-Language" content="French" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" />
<meta name="keywords" content="magistere, banque, finance, assas,paris, paris II" />
<meta name="Robots" content="index,follow" />
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="rss/" />
</head> |
Partager