Files
ChatterBox/index.php
2021-01-07 21:49:08 -08:00

49 lines
1.9 KiB
PHP
Executable File

<?php
define('__ROOT__', dirname(__FILE__));
require_once(__ROOT__.'/user_actions.php');
?>
<html>
<head>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" type="text/css" rel="stylesheet">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<!-- Custom Code -->
<script src="scripts.js"></script>
<link rel="stylesheet" href="stylesheet.css">
</head>
<body>
<div class="container">
<div class="messaging">
<div class="inbox_msg">
<div class="inbox_people">
<div class="inbox_chat" id="inbox_chat">
<?php $chatterbox->display_chat_list(); ?>
</div>
</div>
<div class="mesgs">
<div class="msg_history" id="msg_history">
<?php $chatterbox->display_chat_history(); ?>
</div>
<div class="type_msg">
<span class="input_msg_write">
<input type="text" class="write_msg" placeholder="Type a message" />
</span>
<!-- Commented out until I figure out how to send messages
<span class="input_btn_submit">
<button class="msg_send_btn" type="button">
<i class="fa fa-paper-plane-o" aria-hidden="true"></i>
</button>
</span>
-->
</div>
</div>
</div>
</div>
</div>
</body>
</html>