-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile_massage.php
More file actions
77 lines (61 loc) · 1.52 KB
/
profile_massage.php
File metadata and controls
77 lines (61 loc) · 1.52 KB
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
<html>
<body style=" background-image: url(images/breadcumb.jpg)">
<?php
// include 'lib/Database.php';
include 'lib/User.php';
include 'inc/header.php';
Session::checkSession();
$user = new User();
?>
<?php
$connection = mysqli_connect("localhost", "root", "", "nit_angola");
if (Session::get("role") == 'admin') {
$sql = "SELECT * FROM db_contact";
$results = mysqli_query($connection, $sql);
}
?>
<div class="panel panel-default">
<div class="panel-heading">
<h2>User Profile<span class="pull-right"><a class="btn btn-primary" href="home.php">Back</a></span></h2>
</div>
<div class="panel-body">
<div style="max-width:600px; margin: 0 auto">
<form action="" method="POST">
<table class="table table-primary">
<tr>
<th>الرقم </th>
<th> اسم صاحب الرسالة </th>
<th> التواصل </th>
<th>نص الرسالة </th>
</tr>
<!--
<?php
$email = Session::get("email");
if (isset($email)) {
echo $pickup;
}
?> -->
<?php
if (mysqli_num_rows($results)>0) {
while ($row=mysqli_fetch_array($results)) {
echo "<tr>";
echo "<td>".$row['id']."</td>";
echo "<td>".$row['name']."</td>";
echo "<td>".$row['email']."</td>";
echo "<td>".$row['subject']."</td>";
echo "<td>".$row['message']."</td>";
echo "</tr>";
}
}
?>
</table>
<!-- <button type="submit" name="log
" class="btn btn-success">Update</button> -->
</form>
</div>
</div>
</div>
<?php
include 'inc/footer.php';
?>
</body></html>