-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmessages.php
61 lines (54 loc) · 1.95 KB
/
messages.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
<?php
session_start();
if (!isset($_SESSION['UserID'])) {
header("Location:UserLogin/Login.php");
}
include "ban_check.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://kit.fontawesome.com/cee0f4dddc.js" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap" rel="stylesheet">
<link href="Assets/css/home.css" rel="stylesheet">
</head>
<body>
<?php
include "navbar_user.php"
?>
<div class="container-fluid">
<div class="row">
<div class="col-3 sticky-pane">
<div class="container-fitter container-fluid shadow" id="chat-heads">
</div>
</div>
</div>
</div>
<script src=" https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous">
</script>
<script>
$(document).ready(function() {
loadChatHeads();
});
function loadChatHeads() {
$.ajax({
type: 'POST',
url: "Assets/api/manage_chat.php",
data: {
task: 'GET_LIST'
},
success: function(data) {
document.getElementById('chat-heads').innerHTML = data;
}
})
}
</script>
</body>
</html>