-
Notifications
You must be signed in to change notification settings - Fork 0
/
chat.php
113 lines (97 loc) · 4 KB
/
chat.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
require_once 'core/init.php';
setHeader();
if (Session::exists('home')) {
?>
<!-- add bootstrap popup alert for success -->
<p class="alert alert-danger"><?php echo Session::flash('home');?></p>
<?php
}
$user = new User();
if ($user->isLoggedIn()) {
?>
<?php
if ($user->HasPermission('admin')) {?>
<nav>
<div class="nav-wrapper">
<a href="#" class="brand-logo left">
<div class="chip">
<img src="img/avatar.jpg" alt="Contact Person">
<?php echo escape($user->data()->name);?>
</div>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a href="update.php?user=<?php echo $user->data()->username; ?>">Update Profile</a></li>
<li><a href="resetpassword.php">Change Password</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</div>
</nav>
<!-- user dropdown ends -->
<div class="hidden-lg hidden-xl" style="margin-bottom: 2%;background-color: green;width: 100%;height: 2px;border-radius: 5px;margin-top: 60px;">
</div>
<div class="container">
<!-- Messages section -->
<div class="col-md-4"style="width: 100%;margin-top: 2%;" >
<div class="panel panel-info">
<div class="panel-heading"><h5 align="center" style="color: green; font-weight: bold;">PRIVATE OBSA INBOX</h5></div>
<div class="panel-body">
<div class="media">
<div class="media-left">
<img src="img/avatar.jpg" class="media-object" style="width: 50px;">
</div><!-- end media-left -->
<div class="media-body">
<p>Message from <a href="">Alphonce</a>:<br>
<small>Good Evening my friend lets meet...</small>
<a href="#" style="color: blue;text-decoration: none;" data-toggle="popover" data-content="And here's some amazing content. It's very engaging. right? " data-placement="auto" data-trigger="focus" title="Message From Alphonce">Read more</a>
</p>
<p class="btn btn-default btn-xs">
<a href="#replyform" data-toggle="collapse">Reply</a>
</p><br>
<div id="replyform" class="collapse" class="form-group">
<br>
<form class="" action="" method="POST">
<textarea style="min-width: 100%; min-height: 50px;max-width: 100%; max-height: 100px;" class="form-control" max-width="50"></textarea>
<br>
<input type="submit" name="reply" value="send" class="btn btn-warning btn-xs" style="float: right;">
</form>
</div>
<br>
<div class="raty"></div>
<hr>
</div><!-- end media body -->
</div><!-- end media -->
<!-- media left -->
<div class="media">
<div class="media-left">
<img src="img/avatar.jpg" class="media-object" style="width: 50px;">
</div><!-- end media-left -->
<div class="media-body">
<p>Message from <a href="">Evance</a>:<br>
<small>Good morning my friend i like your work...</small>
<a href="#" style="color: blue;text-decoration: none;" data-toggle="popover" data-content="And here's some amazing content. It's very engaging. right? " data-placement="auto" data-trigger="focus" title="Message From Evance">Read more</a></p>
<p class="btn btn-default btn-xs"><a href="#replyform1" data-toggle="collapse">Reply</a></p>
<div id="replyform1" class="collapse" ><br>
<form class="" action="" method="POST">
<textarea style="min-width: 100%; min-height: 50px;max-width: 100%; max-height: 100px;" class="form-control" max-width="50"></textarea><br>
<input type="submit" name="reply" value="send" class="btn btn-warning btn-xs" style="float: right;">
</form>
</div><br>
<div class="raty"></div>
</div><!-- end media body -->
</div><!-- end media -->
</div><!-- end panel-body -->
</div><!-- end panel -->
</div>
<!-- end messages section -->
</div><!-- /end content -->
<?php
}
}else{?>
<div class="well well-lg">
<?php include_once 'login.php'; ?>
<!-- <a href='login.php'>Login</a> or <a href='register.php'> Register</a> -->
</div>
<?php
}
setFooter();
?>