Commit 952306b5 authored by Raulin's avatar Raulin

Ajout des fichiers

parent 90b86cf1
File added
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<?php
require_once('template_header.php');
require_once('template_menu.php');
$currentPageId='index';
if(isset($_GET['page'])){
$currentPageId=$_GET['page'];
}
?>
<!-- <header>
<h1 class="titre"><?php echo $mymenu[$currentPageId][0] ?> </h1>
<img src=<?php $currentPageId.".png" ?> alt="" height="90px" width="150px"/>
</header> -->
<header class="masthead bg-primary text-white text-center">
<div class="container d-flex align-items-center flex-column">
<!-- Masthead Heading -->
<h2 class="masthead-heading text-uppercase mb-0"><?php echo $mymenu[$currentPageId][0] ?></h2>
<!-- Masthead Subheading -->
<p class="masthead-subheading font-weight-light mb-0"> <div class="contenu">
<?php
$pageToInclude = $currentPageId . ".php";
if(is_readable($pageToInclude))
require_once($pageToInclude);
else
require_once("error.php");
?>
</div></p>
</div>
</header>
<?php
renderMenuToHTML($currentPageId);
?>
<?php
require_once('template_footer.php');
?>
\ No newline at end of file
logo.png

6.01 KB

<!doctype html>
<html>
<head>
<title> Manger Mieux </title>
<meta charset="utf-8"/>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" title="default" />
</head>
<body>
<Header>
<h1> Profil </h1>
</Header>
<section>
<form id="info_form" action=".php" method="GET">
<table>
<tr>
<th>Login :</th>
<td><input type="text" name="login"></td>
</tr>
<tr>
<th>Tranche d'âge :</th>
<td>
<label> Moins de 40 ans
<input type="radio" name="radio1" value="<40">
</label><br>
<label> Moins de 50 ans
<input type="radio" name="radio1" value="<60">
</label><br>
<label> 60 ans et plus
<input type="radio" name="radio1" value="60+">
</label>
</td>
</tr>
<tr>
<th>Sexe :</th>
<td>
<label> Homme
<input type="radio" name="radio1" value="<40">
</label><br>
<label> Femme
<input type="radio" name="radio1" value="<60">
</label></td>
</tr>
<tr>
<th>Niveau de pratique sportive :</th>
<td>
<label> Bas
<input type="radio" name="radio1" value="<40">
</label><br>
<label> Moyen
<input type="radio" name="radio1" value="<60">
</label><br>
<label> Elevé
<input type="radio" name="radio1" value="60+">
</label>
</td>
</tr>
<tr>
<td><input type="submit" name="Valider"></td>
</tr>
</table>
</form>
<h2> Nom </h2>
<img src="logo.png" alt="" height="90px" width="150px"/>
</section>
</body>
</html>
\ No newline at end of file
<section>
<form id="info_form" action=".php" method="GET">
<table>
<tr>
<th>Login :</th>
<td><input type="text" name="login"></td>
</tr>
<tr>
<th>Tranche d'âge :</th>
<td>
<label> Moins de 40 ans
<input type="radio" name="radioAge" value="<40">
</label><br>
<label> Moins de 50 ans
<input type="radio" name="radioAge" value="<60">
</label><br>
<label> 60 ans et plus
<input type="radio" name="radioAge" value="60+">
</label>
</td>
</tr>
<tr>
<th>Sexe :</th>
<td>
<label> Homme
<input type="radio" name="radioSexe" value="<40">
</label><br>
<label> Femme
<input type="radio" name="radioSexe" value="<60">
</label></td>
</tr>
<tr>
<th>Niveau de pratique sportive :</th>
<td>
<label> Bas
<input type="radio" name="radioSport" value="<40">
</label><br>
<label> Moyen
<input type="radio" name="radioSport" value="<60">
</label><br>
<label> Elevé
<input type="radio" name="radioSport" value="60+">
</label>
</td>
</tr>
<tr>
<td><input type="submit" name="Valider"></td>
</tr>
</table>
</form>
<h2> Nom </h2>
<img src="logo.png" alt="" height="90px" width="150px"/>
</section>
</body>
</html>
\ No newline at end of file
<section>
<h2>Charlotte Raulin</h2>
<img src="logo.png" alt="" height="90px" width="150px"/><br>
<label> Age : < 40 </label><br>
<label> Sexe : Femme </label><br>
<label> Niveau de pratique sportive : Bas </label>
</section>
\ No newline at end of file
<section>
<form id="info_form" action=".php" method="GET">
<table>
<tr>
<th>Login :</th>
<td><input type="text" name="login"></td>
</tr>
<tr>
<th>Tranche d'âge :</th>
<td>
<label> Moins de 40 ans
<input type="radio" name="radioAge" value="<40">
</label><br>
<label> Moins de 50 ans
<input type="radio" name="radioAge" value="<60">
</label><br>
<label> 60 ans et plus
<input type="radio" name="radioAge" value="60+">
</label>
</td>
</tr>
<tr>
<th>Sexe :</th>
<td>
<label> Homme
<input type="radio" name="radioSexe" value="<40">
</label><br>
<label> Femme
<input type="radio" name="radioSexe" value="<60">
</label></td>
</tr>
<tr>
<th>Niveau de pratique sportive :</th>
<td>
<label> Bas
<input type="radio" name="radioSport" value="<40">
</label><br>
<label> Moyen
<input type="radio" name="radioSport" value="<60">
</label><br>
<label> Elevé
<input type="radio" name="radioSport" value="60+">
</label>
</td>
</tr>
<tr>
<td><input class="btn btn-primary" href="#" data-dismiss="modal" type="submit" name="Valider"></td>
</tr>
</table>
</form>
<h2> Nom </h2>
<img src="logo.png" alt="" height="90px" width="150px"/>
</section>
</body>
</html>
\ No newline at end of file
<footer class="footer text-center">
<div class="container">
<div class="row">
<!-- Footer Location -->
<div class="col-lg-4 mb-5 mb-lg-0">
<h4 class="text-uppercase mb-4">Adresse</h4>
<p class="lead mb-0">263 rue du grand Bail
<br>DOUAI, 59500</p>
</div>
<!-- Footer Social Icons -->
<div class="col-lg-4 mb-5 mb-lg-0">
<h4 class="text-uppercase mb-4">Contact</h4>
<p class="lead mb-0">Contactez-nous sur Linkedin : <br>
<a href="https://www.linkedin.com/in/liang-wu-58a699180/">Liang Wu</a> <br>
<a href="https://www.linkedin.com/in/charlotte-raulin-7a2735176/">Charlotte Raulin</a>
</p>
</div>
<!-- Footer About Text -->
<div class="col-lg-4">
<h4 class="text-uppercase mb-4">A propos</h4>
<p class="lead mb-0">Nous sommes les stars de l'IMT Lille Douai.
</p>
</div>
</div>
</div>
</footer>
<section class="copyright py-4 text-center text-white">
<div class="container">
<small>Copyright &copy; Manger Mieux avec Liang WU et Charlotte Raulin</small>
</div>
</section>
</body>
</html>
\ No newline at end of file
<!doctype html>
<html>
<head>
<title>Hector Durand</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" title="default" charset="utf-8" />
</head>
<body>
</body>
</html>
\ No newline at end of file
<!doctype html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="bootstrap/css/freelancer.css" rel="stylesheet">
</head>
<body id="page-top">
\ No newline at end of file
<?php
// un tableau qui d\'efinit la structure du site
$mymenu = array(
// idPage titre
'index' => array( 'Accueil' ),
'profil_affichage' => array( 'Profil' ),
'profil_modif' => array( 'Modifier mon profil' ),
'aliments' => array('Aliments'),
'journal' => array('Journal')
);
function renderMenuToHTML($currentPageId) {
global $mymenu;
// ...
$id='';
echo '<nav class="navbar navbar-expand-lg bg-secondary text-uppercase fixed-top" id="mainNav" > <div class="container"> <a class="navbar-brand js-scroll-trigger" href="#page-top">Manger mieux </a> <div class="collapse navbar-collapse" id="navbarResponsive"> <ul class="navbar-nav ml-auto">';
foreach($mymenu as $pageId => $pageParameters) {
if ($pageId == $currentPageId){
$id=" id='active'";
}
else{
$id="";
}
echo ' <li class="nav-item mx-0 mx-lg-1"><a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger"'.$id.' href= "index.php?page='.$pageId.'">'.$pageParameters[0].'</a></li>';
}
echo '</ul> </div> </div> </nav>';
}
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment