/home/mjc1/public_html/manage/sendmailpro2.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?php
header
("Content-type:text/html;charset=euckr");
@
extract($_REQUEST);
?>
<script>
 function Frmsend(){ //º¸³»±â¹öư
     
    if( DetailForm.Name.value == ""){
     alert("º¸³»´Â »ç¶÷ À̸§À» ÀÔ·ÂÇϼ¼¿ä.");
     DetailForm.Name.focus();
     return;
     
     } 

    if( DetailForm.Sender.value == ""){
     alert("º¸³»´Â »ç¶÷ÀÇ ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇϼ¼¿ä.");
     DetailForm.Sender.focus();
     return;
     
     } 

    if( DetailForm.Uname.value == ""){
     alert("¹Þ´Â »ç¶÷ À̸§À» ÀÔ·ÂÇϼ¼¿ä.");
     DetailForm.Uname.focus();
     return;
     
     }

    if( DetailForm.Receiver.value == ""){
     alert("¹Þ´Â »ç¶÷ÀÇ ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇϼ¼¿ä.");
     DetailForm.Receiver.focus();
     return;
     
     } 

    if( DetailForm.Subject.value == ""){
     alert("Á¦¸ñÀ» ÀÔ·ÂÇϼ¼¿ä.");
     DetailForm.Subject.focus();
     return;
     
     } 

    if( DetailForm.Body.value == ""){
     alert("º¸³¾ ³»¿ëÀ» ÀÔ·ÂÇϼ¼¿ä.");
     DetailForm.Body.focus();
     return;
     
     } 
      
  if( confirm("ÀÛ¼ºÇϽг»¿ëÀ¸·Î º¸³»½Ã°Ú½À´Ï±î?")){     
   DetailForm.action = "sendmailpro3process.php";
   DetailForm.submit();
    }
   }

  function frmCancle() { // Ãë¼ÒÇϸé È­¸é ¸®Ç÷¹½¬ µÊ
        location.href="sendmailpro3.php";
        window.status=""; 
        return true; 
  }

</script>

<html>
<head>
<title>»çÁø ¾÷·Îµå</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="javascript">
    function CheckForm(form) {
        
        return true;
        }
</script>
            <style type=text/css>
            table { font-color;#000000;font-size:9pt }
            .td {BACKGROUND-COLOR:#C1CDD8}
            .nontd {BACKGROUND-COLOR:#ffffff}
            </style>
</head>
</body>
<center>
<table width="700" border="0" cellspacing="1" cellpadding="0" bgcolor="#A2A2A2">
<Form name="DetailForm" method="post" action="sendmailpro3process.php" onsubmit="return CheckForm(this);" ENCTYPE="MULTIPART/FORM-DATA">
<input type="hidden" name="Mode" value="Up">

                        <tr> 
                                <td bgcolor="#E5E5E5" align="center" width="150" height="25"> 
                                º¸³»´Â »ç¶÷ À̸§
                                </td>
                                <td bgcolor="#ffffff" width="500">
                                &nbsp;<input type="text" name="Name" size="37" readonly="readonly" value="<?=$fromname?>">
                                </td>
                        </tr>
                        <tr> 
                                <td bgcolor="#E5E5E5" align="center" width="150" height="25"> 
                                º¸³»´Â »ç¶÷ ¸ÞÀÏ
                                </td>
                                <td bgcolor="#ffffff" width="500">
                                &nbsp;<input type="text" name="Sender" size="37" readonly="readonly" value="<?=$frommail?>">
                                </td>
                        </tr>
                        <tr> 
                                <td bgcolor="#E5E5E5" align="center" width="150" height="25"> 
                                ¹Þ´Â »ç¶÷ À̸§
                                </td>
                                <td bgcolor="#ffffff" width="500">
                                &nbsp;<input type="text" name="Uname" size="37" readonly="readonly" value="<?=$toname?>">
                                </td>
                        </tr>
                        <tr> 
                                <td bgcolor="#E5E5E5" align="center" width="150" height="25"> 
                                ¹Þ´Â »ç¶÷ ¸ÞÀÏ
                                </td>
                                <td bgcolor="#ffffff" width="500">
                                &nbsp;<input type="text" name="Receiver" size="37" readonly="readonly" value="<?=$tomail?>">
                                </td>
                        </tr>
                        <tr> 
                                <td bgcolor="#E5E5E5" align="center" width="150" height="25"> 
                                Á¦¸ñ
                                </td>
                                <td bgcolor="#ffffff" width="500">
                                &nbsp;<input type="text" name="Subject" size="37" value="<?=$subject?>">
                                </td>
                        </tr>
                        <tr> 
                                <td bgcolor="#E5E5E5" align="center" width="150" height="25"> 
                                ³»¿ë
                                </td>
                                <td bgcolor="#ffffff" width="500">
                                 &nbsp;<textarea name='Body' rows="21" cols="60" ><?=$memo;?></textarea>
                                </td>
                        </tr>
                        <tr> 
                                <td bgcolor="#E5E5E5" align="center" width="150" height="25"> 
                                À̹ÌÁö
                                </td>
                                <td bgcolor="#ffffff" width="500">
                                &nbsp;<input type="file" name="File" class="input1" size='37'>
                                </td>
                        </tr>  
    

            <table width="700" border="0" cellspacing="1" cellpadding="0">
                    <tr> 
                            <td align="center" colspan="2" bgcolor="#ffffff" height="45">
                                <input type='button' value='º¸³»±â' style='background-color:white; border-width:1; border-color:black; border-style:solid; height:25; width:80; cursor:hand;' onclick='Frmsend()'> 
                                <input type='button' value='Ãë¼Ò' style='background-color:white; border-width:1; border-color:black; border-style:solid; height:25; width:80; cursor:hand;' onclick='frmCancle()'> 
                            </td>
                    </tr>
            </table>
</Form>
</table>
</center>
</body>
</html>