-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmessage_form.php
91 lines (91 loc) · 2.42 KB
/
message_form.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>쪽지 보내기 - Indie, GO!</title>
<link rel="stylesheet" type="text/css" href="./css/common.css">
<link rel="stylesheet" type="text/css" href="./css/message.css">
<script>
function check_input() {
if (!document.message_form.rv_id.value)
{
alert("수신 아이디를 입력하세요!");
document.message_form.rv_id.focus();
return;
}
if (!document.message_form.subject.value)
{
alert("제목을 입력하세요!");
document.message_form.subject.focus();
return;
}
if (!document.message_form.content.value)
{
alert("내용을 입력하세요!");
document.message_form.content.focus();
return;
}
document.message_form.submit();
}
</script>
</head>
<?php require('dark.php'); ?>
<body style="background-color: <?php echo $background;?>; color: <?php echo $color;?>">
<header>
<?php include "header.php";?>
</header>
<?php
if (!$userid )
{
echo("<script>
alert('로그인 후 이용해주세요!');
history.go(-1);
</script>
");
exit;
}
?>
<section>
<div id="main_img_bar">
<?php require('slide.php'); ?>
</div>
<div id="message_box">
<h3 id="write_title">
쪽지 보내기
</h3>
<ul class="top_buttons">
<li><span><a href="message_box.php?mode=rv">수신 쪽지함 </a></span></li>
<li><span><a href="message_box.php?mode=send">송신 쪽지함</a></span></li>
</ul>
<form name="message_form" method="post" action="message_insert.php?send_id=<?=$userid?>">
<div id="write_msg">
<ul>
<li>
<span class="col1">보내는 사람 : </span>
<span class="col2"><?=$userid?></span>
</li>
<li>
<span class="col1">수신 아이디 : </span>
<span class="col2"><input name="rv_id" type="text"></span>
</li>
<li>
<span class="col1">제목 : </span>
<span class="col2"><input name="subject" type="text"></span>
</li>
<li id="text_area">
<span class="col1">내용 : </span>
<span class="col2">
<textarea name="content"></textarea>
</span>
</li>
</ul>
<button type="button" onclick="check_input()">보내기</button>
</div>
</form>
</div>
</section>
<footer>
<?php include "footer.php";?>
</footer>
</body>
</html>