Index - PHP: Contrôle N°1 PHP Nom Et Prénom: MERYEM AYAD
Index - PHP: Contrôle N°1 PHP Nom Et Prénom: MERYEM AYAD
<html lang="en">
<head>
<title>DreamJob.ma</title>
</head>
<body>
<header>
<section class="head">
<div>
<h2>Dreamjob<span id="span1">.ma</span></h2>
</div>
</form>
</section>
</header>
<div class="navbar">
<div class="dropdown">
<button class="dropbtn">
Trouver un emploi
</button>
<div class="dropdown-content">
</div>
</div>
</div>
<div class="pp">
<div class="dossier">
<fieldset id="field1">
</fieldset>
<fieldset id="field2">
<legend id="fichier">Fichier joint</legend>
<label for="lettre"></label><br>
</fieldset>
</form>
</div>
<div class="profile">
<nav id="nav2">
<ul class="list">
<h5>Profile</h5>
</i></li>
<h5>Messages</h5>
</i></li>
<h5>Settings</h5>
</i></li>
<h5>Logout</h5>
</i></li>
</ul>
</nav>
</div>
</div>
<div class="foot">
<nav class="nav1">
<ul>
</ul>
</nav>
</div>
</body>
</html>
Index2.php
<?php
session_start();
$_SESSION["prenom"] = $_POST["prenom"];
$_SESSION["nom"] = $_POST["nom"];
if(isset($_POST['logout'])){
$_SESSION = array();
session_destroy();
header("Location:index.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>DreamJob.ma</title>
</head>
<body>
<header>
<section class="head">
<div>
<h2>Dreamjob<span id="span1">.ma</span></h2>
</div>
</form>
</section>
</header>
<div class="navbar">
<div class="dropdown">
<button class="dropbtn">
Trouver un emploi
</button>
<div class="dropdown-content">
</div>
</div>
</body>
</html>
Css
*{
margin: 0px;
padding: 0px;
body{
background-size: cover;
.head{
display: flex;
margin-top: 15px;
margin-left: 45px;
h2{
background-color: blueviolet;
font-family: 'Times New Roman', Times, serif;
font-weight: bold;
height: 100px;
width: 250px;
text-align: center;
line-height: 100px;
border-radius: 5px;
margin-left: 100px;
font-size: 40px;
#span1{
color: #fff;
font-size: 20px;
font-weight: bold;
.form{
height: 40px;
width: 700px;
background-color: blueviolet;
border-radius: 4px;
line-height: 25px;
margin-left: 100px;
margin-top: 39px;
padding-left: 5px;
font-size: 30px;
#rech{
font-size: 20px;
width: 250px;
height: 20px;
.button1{
color: blueviolet;
background-color:#fff;
border-radius: 1px;
font-size: 15px;
text-align: center;
.button1:hover{
color: #fff;
background-color: blueviolet;
/*------------------------------------------*/
/* Navbar container */
.navbar {
overflow: hidden;
background-color: #333;
font-family: Arial;
.navbar{
margin-top: 15px;
margin-left: 15px;
margin-right: 15px;
padding-left: 30px;
margin-bottom: 60px;
.navbar a {
float: left;
font-size: 16px;
color: white;
text-align: center;
text-decoration: none;
.dropdown {
float: left;
overflow: hidden;
/* Dropdown button */
.dropdown .dropbtn {
font-size: 16px;
border: none;
outline: none;
color: white;
background-color: inherit;
}
/* Add a red background color to navbar links on hover */
background-color: red;
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
z-index: 1;
.dropdown-content a {
float: none;
color:#fff;
text-decoration: none;
display: block;
text-align: left;
background-color:black;
.dropdown-content a:hover {
background-color: red;
.dropdown:hover .dropdown-content {
display: block;
/*------------------------------------------------*/
#para{
font-weight: bold;
font-size: 18px;
margin-left: 170px;
margin-bottom: 30px;
margin-top: 30px;
color: #444;
.dossier{
width: 600px;
height: 250px;
background-color: rosybrown;
margin-left: 50px;
font-size: 16px;
padding-top: 10px;
background-origin: padding-box;
border-radius: 4px;
.profile{
width: 500px;
margin-left: 50px;
#info{
font-weight: bold;
margin-top: 20px;
margin-left: 30px;
#prenom{
text-align: center;
margin-left: 60px;
margin-top: 10px;
padding-left: 70px;
padding-top: 6px;
#nom{
text-align: center;
margin-left: 80px;
margin-top: 8px;
padding-left: 70px;
margin-bottom: 10px;
padding-top: 6px;
#lab1,#lab2,#lab3,#lab4{
padding-left: 80px;
#field1{
margin-top: 10px;
margin-bottom: 10px;
#fichier{
font-weight: bold;
margin-top: 23px;
margin-left: 30px;
margin-bottom: 10px;
#lettre{
margin-left: 40px;
margin-right: 15px;
#demande{
margin-left: 19px;
margin-top: 10px;
margin-right: 15px;
margin-bottom: 10px;
#env{
margin-left: 250px;
margin-top: 15px;
/*-------------------------------------------------------*/
#nav2{
font-size: 30px;
display: inline-block;
.list .ll{
margin-left: 5px;
font-size: 15px;
width: 300px;
color: #fff;
background: #49b7f4;
.list .oo{
margin-left: -2px;
.list .ii{
margin-right: 5px;
font-size: 50px;
padding-bottom: 5px;
.ll h5{
padding-left: 10px;
.nav1{
margin-left: 250px;
font-size: 20px;
margin-top: 5px;
display: inline-block;
#nav3{
background-color: blueviolet;
font-size: 15px;
margin-left: 850px;
display: inline-block;
}
#nav4{
margin-left: 100px;
font-size: 15px;
background-color: blueviolet;
display: inline-block;
nav ul li{
display: inline-block;
.pp{
display: flex;
height: 250px;
#nav2 ul li{
display: flex;
height:40px ;
#nav3 ul li {
display: flex;
height: 40px;
#nav4 ul li {
display: flex;
height: 20px;
#pa,#par,#parag{
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
margin-left: 170px;
margin-bottom: 30px;
margin-top: 30px;
color:black;
#dec{
font-weight: bold;
font-size: 18px;
margin-left: 170px;
margin-bottom: 30px;
margin-top: 30px;
color:darkmagenta;
.foot{
margin-top: 60px;
.logout{
background: none!important;
border: none;
padding: 0!important;
margin-left: 170px;
font-size: 20px;
color: #069;
text-decoration: underline;
cursor: pointer;