-
Notifications
You must be signed in to change notification settings - Fork 7
/
comment.php
85 lines (69 loc) · 1.89 KB
/
comment.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
<?php
include('session.php');
include('commentAction.php');
$sql = 'SELECT * FROM comment';
$CommentResult = mysqli_query($db,$sql);
$CommentRows = array();
while($row = mysqli_fetch_array($CommentResult)){
$CommentRows[] = $row;
}
?>
<html>
<head>
<title>message</title>
<link rel="stylesheet" type="text/css" href="css/dashboard.css">
<link rel="stylesheet" type="text/css" href="css/comment.css">
<script>
var comments = <?php echo json_encode( $CommentRows ) ?>;
</script>
<script src="js/comment.js"></script>
</head>
<body>
<div id="top-bar">
<nav>
<ul>
<li><a href="dashboard.php">Home</a></li>
<li><a href="comment.php">Message</a></li>
<li><a href="reference.php" target="_blank">About</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</nav>
</div>
<div id = "side-navagate-bar">
<div class = "toggle-btn" onclick="toggleSideBar()">
<span></span>
<span></span>
<span></span>
</div>
<ul>
<li><h2 id="logo">Inventory Sales Management</h2></li>
<li><a href="sales.php">Sales</a></li>
<li><a href="inventory.php">Inventory</a></li>
</ul>
</div>
<div id="block">
<div id="main-area">
<div id="welcome">
<h1>Welcome <?php echo $login_session; ?></h1>
</div>
<div id="title">
<h1>Message Board</h1>
</div>
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method="post">
<div id="Tasks_Panel-info">
<h1 id = "me"></h1>
<div id="comment"></div>
</div>
<div class= "submit">
<div id="in">
<textarea class ="comment" type="text" name="comment" required></textarea>
</div>
<div id="sub-btn">
<button name="submit">submit</button>
</div>
</div>
</form>
</div>
</div>
</body>
</html>