-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmessage_form.php
92 lines (92 loc) ยท 2.41 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
92
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>๋ฉ๋๋กฑ๋ํ</title>
<link rel="stylesheet" href="css/main1.css">
<link rel="stylesheet" type="text/css" href="./css/common.css">
<link rel="stylesheet" type="text/css" href="./css/message.css">
<link rel="shortcut icon" href="img/favicon.png">
<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>
<body>
<header>
<?php include "header.php";?>
</header>
<?php
if (!$userid )
{
echo("<script>
alert('๋ก๊ทธ์ธ ํ ์ด์ฉํด์ฃผ์ธ์!');
history.go(-1);
</script>
");
exit;
}
?>
<section>
<div id="main_img_bar">
<img src="./img/main_img.png">
</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> <!-- message_box -->
</section>
<footer>
<?php include "footer.php";?>
</footer>
</body>
</html>