-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmessage_content.php
More file actions
97 lines (87 loc) · 2.43 KB
/
Copy pathmessage_content.php
File metadata and controls
97 lines (87 loc) · 2.43 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
<?php
if(!isset($_SESSION)) {session_start();}
?>
<!DOCTYPE html>
<html>
<head>
<style>
#message_logo {
width: 180px;
height: 80px;
background-image: url('message_logo.png');
background-size: cover;
margin: 5px auto;
}
#answerBtn {
margin: 20px 20px 20px 140px;
width: 100px;
height: 50px;
background-image: url('answer.png');
background-size: cover;
float: left;
}
#answerBtn:hover {
background-image: url('answer_hover.png');
cursor: pointer;
}
#backBtn {
margin: 20px 20px;
width: 100px;
border: 0;
border-style: none;
height: 50px;
float: left;
background-image: url('back.png');
background-size: cover;
}
#backBtn:hover {
background-image: url('back_hover.png');
cursor: pointer;
}
</style>
</head>
<body>
<?php
include "db.php";
$index=$_REQUEST['index'];
$m_index=$_REQUEST['m_index'];
$m_i=$_REQUEST['m_i'];
$userid_path="/project/".$index."/member/".$m_index."/rcvmsg/".$m_i."/userid";
$title_path="/project/".$index."/member/".$m_index."/rcvmsg/".$m_i."/title";
$content_path="/project/".$index."/member/".$m_index."/rcvmsg/".$m_i."/content";
$timesend_path="/project/".$index."/member/".$m_index."/rcvmsg/".$m_i."/time_send";
$userid=$firebase->get($userid_path);
$title=$firebase->get($title_path);
$content=$firebase->get($content_path);
$time_send=$firebase->get($timesend_path);
$u=explode("\"", $userid)[1];
$title=explode("\"", $title)[1];
$content=explode("\"", $content)[1];
$time_send=explode("\"", $time_send)[1];
?>
<div id=message_logo>
</div>
<table boder="0" style="margin: 0 auto; width: 350px; border-collapse: collapse;">
<tr style="height: 60px; border-bottom: 2px dotted #BDBDBD;">
<th><h3>보낸 사람</h3></th>
<th><?php echo $u?></th>
</tr>
<tr style="height: 60px; border-bottom: 2px dotted #BDBDBD;">
<th><h3>받은 시각</h3></th>
<th><?php echo $time_send?></th>
</tr>
<tr style="height: 60px; border-bottom: 2px dotted #BDBDBD;">
<th><h3>제목</h3></th>
<th><?php echo $title?></th>
</tr>
<tr style="height: 200px; border-bottom: 2px dotted #BDBDBD;">
<th><h3>내용</h3></th>
<th><?php echo $content?></th>
</tr>
</table>
<a href="reply_message.php?index=<?php echo $index?>&m_index=<?php echo $m_index?>&m_i=<?php echo $m_i?>">
<div id=answerBtn> </div>
</a>
<input id=backBtn type=button Onclick="history.back();">
</body>
</html>