-
Notifications
You must be signed in to change notification settings - Fork 0
/
send.php
82 lines (58 loc) · 2.18 KB
/
send.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
<?php
session_start();
if(!isset($_SESSION["user"])){
$_SESSION["erreur"]="votre login ou password invalid";
$_SESSION["type_erreur"]="warning";
header("location:connexion.php");
}
require_once("functions.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" >
</head>
<body>
<div class="container">
<?php
include_once("header.php");
?>
<div class="row">
<?php
include_once("left.php");
?>
<div class="col-md-9">
<div class="panel panel-primary">
<div class="panel-heading">Send Message</div>
<div class="panel-body">
<form method="GET" action="add.php">
<div class="form-group">
<label for="exampleInputEmail1">Sujet</label>
<input name="sujet" type="text" class="form-control" placeholder="Sujet">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Utilisateur</label>
<select class="form-control" name="users">
<?php $liste=getUsers();
foreach ($liste as $value ) {
echo "<option value='{$value["iduser"]}'>{$value["prenomuser"]} {$value["nameuser"]}</option>";
} ?>
</select>
</div>
<div class="form-group">
<label for="exampleInputFile">Message</label>
<textarea class="form-control" name="message">
</textarea>
</div>
<button type="submit" class="btn btn-default">Send</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>