-
Notifications
You must be signed in to change notification settings - Fork 0
/
messagerie.php
101 lines (100 loc) · 4.22 KB
/
messagerie.php
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
<!DOCTYPE html>
<html lang="fr">
<?php
require "language.php" ;
?>
<head>
<title><?php echo $htmlMarque; ?></title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="css/style_general.css">
<link rel="stylesheet" type="text/css" href="css/popup.css">
<link rel="stylesheet" type="text/css" href="css/messagerie.css">
<!-- name of the page -->
</head>
<body>
<?php
if(!isset($_SESSION)){
session_start();
}
?>
<div class="container">
<div class="leftColumn">
<img class="logo" src="img/logo.png">
<p><?php echo $htmlContactsRecentsDeuxPoints?></p>
<?php
require 'traitements/afficheContacts.php';
?>
</div>
<div class="rightColumn">
<div class="topBanner">
<div class="divNavigation">
<a class="bontonDeNavigation" href="index.php"><?php echo $htmlAccueil?></a>
<?php
if (isset($_SESSION["Id_Uti"])){
echo'<a class="bontonDeNavigation" href="messagerie.php">'.$htmlMessagerie.'</a>';
echo'<a class="bontonDeNavigation" href="achats.php">'.$htmlAchats.'</a>';
}
if (isset($_SESSION["isProd"]) and ($_SESSION["isProd"]==true)){
echo'<a class="bontonDeNavigation" href="produits.php">'.$htmlProduits.'</a>';
echo'<a class="bontonDeNavigation" href="delivery.php">'.$htmlCommandes.'</a>';
}
if (isset($_SESSION["isAdmin"]) and ($_SESSION["isAdmin"]==true)){
echo'<a class="bontonDeNavigation" href="panel_admin.php">'.$htmlPanelAdmin.'</a>';
}
?>
</div>
<form method="post">
<?php
if(!isset($_SESSION)){
session_start();
}
if(isset($_SESSION, $_SESSION['tempPopup'])){
$_POST['popup'] = $_SESSION['tempPopup'];
unset($_SESSION['tempPopup']);
}
?>
<input type="submit" value="<?php if (!isset($_SESSION['Mail_Uti'])){/*$_SESSION = array()*/; echo($htmlSeConnecter);} else {echo ''.$_SESSION['Mail_Uti'].'';}?>" class="boutonDeConnection">
<input type="hidden" name="popup" value=<?php if(isset($_SESSION['Mail_Uti'])){echo '"info_perso"';}else{echo '"sign_in"';}?>>
<?php
if (isset($_SESSION["isAdmin"]) and ($_SESSION["isAdmin"]==true)){
echo'<a class="bontonDeNavigation" href="broadcastuser.php">'.$htmlbroadcastuser.'</a>';
echo'<a class="bontonDeNavigation" href="broadcastprod.php">'.$htmlbroadcastprod.'</a>';
}
?>
</form>
</div>
<div class="contenuPage">
<div class="interlocuteur"
<?php if (!isset($_GET['Id_Interlocuteur'])) { echo 'disabled';} ?>
>
<?php
require "traitements/afficherInterlocuteur.php";
?>
</div>
<div class="contenuMessagerie">
<?php
require 'traitements/afficheMessages.php';
?>
<form method="post" id="zoneDEnvoi">
<input type="text" name="content" id="zoneDeTexte" <?php if ($formDisabled) { echo 'disabled';} ?>>
<input type="submit" value="" id="boutonEnvoyerMessage" <?php if ($formDisabled) { echo 'disabled';} ?>>
</form>
<?php
require 'traitements/envoyerMessage.php';
?>
</div>
</div>
<div class="basDePage">
<form method="post">
<input type="submit" value="<?php echo $htmlSignalerDys?>" class="lienPopup">
<input type="hidden" name="popup" value="contact_admin">
</form>
<form method="post">
<input type="submit" value="<?php echo $htmlCGU?>" class="lienPopup">
<input type="hidden" name="popup" value="cgu">
</form>
</div>
</div>
</div>
<?php require "popups/gestion_popups.php" ?>
</body>