-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsend_message.php
More file actions
115 lines (102 loc) · 2.59 KB
/
Copy pathsend_message.php
File metadata and controls
115 lines (102 loc) · 2.59 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?php
if(!isset($_SESSION)) {session_start();}
?>
<!DOCTYPE html>
<html>
<meta charset="UTF-8" \>
<style>
@import url(http://fonts.googleapis.com/earlyaccess/jejugothic.css);
a {
text-decoration: none;
color: black;
}
#message_logo {
width: 180px;
height: 80px;
background-image: url('message_logo.png');
background-size: cover;
margin: 5px auto;
}
#sendBtn {
margin: 20px 20px 20px 140px;
width: 100px;
height: 50px;
border: 0;
border-style: none;
background-image: url('send_message_small.png');
background-size: cover;
float: left;
}
#sendBtn:hover {
background-image: url('send_message_small_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'];
$id=$_SESSION['id'];
$m_index=$_REQUEST['m_index'];
?>
<div id=message_logo>
</div>
<form id=message_form action="send_message_end.php" method="post">
<table boder="0" style="margin: 0 auto; width: 350px; border-collapse: collapse;">
<tr style="height: 80px; border-bottom: 2px dotted #BDBDBD;">
<th><h3>받는 사람</h3></th>
<th>
<select id=mid name=mid>
<?php
$i=1;
do{
$rid_path="/project/".$index."/member/".$i."/id";
$r_id=$firebase->get($rid_path);
if("\"".$id."\""!=$r_id){
$r = explode("\"",$r_id)[1];
?><option value=<?php echo $r_id;?>><?php echo $r;?></option><?php
}
$i++;
$m_path="/project/".$index."/member/".$i;
$m=$firebase->get($m_path);
}while($m!="null");
?>
</select>
</th>
</tr>
<tr style="height: 80px; border-bottom: 2px dotted #BDBDBD;">
<th><h3>제목</h3></th>
<th>
<input id=mtitle name=mtitle type=text>
</th>
</tr>
<tr style="height: 200px; border-bottom: 2px dotted #BDBDBD;">
<th height="100"><h3>내용</h3></th>
<th height="100">
<textarea id=mcontent name=mcontent type=textarea rows=9 cols=20></textarea>
</th>
</tr>
</table>
<input type="hidden" name="m_index" value="<?php echo $m_index?>">
<input type="hidden" name="index" value="<?php echo $index?>">
<input id=sendBtn type=submit value="">
<input id=backBtn type=button Onclick="history.back();">
</form>
<body>
</body>
</html>