-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathViewMessage.php
More file actions
100 lines (86 loc) · 3.13 KB
/
Copy pathViewMessage.php
File metadata and controls
100 lines (86 loc) · 3.13 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
require_once('core/init.php');
$options ='';
$title = 'Message';
$user = new User();
if(!$user->isLoggedIn()){
Redirect::to('login.php');
}
Session::put('CPage','Message.php');
$options = getNavBar($user->data()->GroupNo);
?>
<!DOCTYPE HTML>
<html manifest="MMC.appcahce" lang="en">
<head>
<meta charset="utf-8">
<title><?php echo $title?></title>
<link rel="stylesheet" type="text/css" href="css/hostelRegistration.css">
</head>
<body>
<!-- container -->
<div id="container">
<!-- header -->
<div id="header">
<img src="image/project header.jpg" width="1024" height="100" />
</div>
<!-- end of header -->
<!-- button -->
<div id="NavBar">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="EditForm.php">Edit Profile</a></li>
<?php echo $options ?>
<li><a href="Logout.php">Log Out</a></li>
</ul>
</div>
<!-- end of button -->
<!-- content -->
<div id="content">
<?php echo $title?>
<h1>Inbox</h1>
<?php
$message = new Message($user->data()->ID);
if(!$message->print_messages('private')){
echo 'No messages are inside the inbox';
}
?>
</div>
<!-- end of content -->
<!-- sidebar -->
<div id="sidebar">
<div id="Second_Box">
<div id="Second_Head">
<p align="center"> Messaging </p>
</div>
<div id="Second_Body">
<div id="MessagingForm">
<form action="MessageBox.php" method="post" enctype="multipart/form-data" name="messageform" id="messageform" onsubmit="return validate_form();">
<table align="center" cellpadding="1">
<tr><td valign="right">Title :</td><td align="left"><input name="msgTitle" type="text" id="msgTitle" size="18" maxlength="24" /></td></tr>
<tr><td valign="right">Body :<br><br><br><br><br><br><br><br><br><br></td><td align="left"><textarea name="msgBody" type="text" id="msgBody" size="15" cols="15" rows="10">Type your message here</textarea></td></tr>
<tr><td valign="right">Type :</td><td align="left">
<select name="msgType">
<option value="message">Private</option>
<option value="complaint" selected>Feed</option>
</select> </td>
</tr>
<tr>
<td> To : </td>
<td> <input name="msgReceipient" type="text" id="msgReceipient" size="18.5" maxlength="24"/> </td>
</tr>
<tr>
<td align="center" colspan="2">
<input name="token" type="hidden" value="<?php echo Token::generate();?>">
<input name="Send" type="submit" value="Send" /> </td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>
<!-- end of sidebar -->
</div>
<!-- end of container --?
</body>
</html>