/home/mjc1/public_html/manage/mail.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
<? @session_start();?>
<?
    
if( $_SESSION[ADMINID] == "" ) { 
?>
<script>
 alert("°ü¸®ÀÚ ·Î±×ÀΠÈÄ¿¡ À̿밡´ÉÇÕ´Ï´Ù.");
 location.href = "index.php";
</script>
<?     
     
}
  include(
"../manage/category/common.php"); 
?>

<?

    $userid 
$_SESSION[ADMINID];

    
$nameQry       =  " SELECT admin_name From admin WHERE admin_id = '$userid' ";
    
$nameResult    =    MYSQL_QUERY($nameQry);

    
$nameRow  =  MYSQL_FETCH_ARRAY($nameResult);

    
$adminName $nameRow[admin_name];

?>

<link href="../css/style.css" rel="stylesheet" type="text/css">

<title>°ü¸®ÀÚ ÆäÀÌÁö</title> 
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link rel=stylesheet type=text/css href=style.css>



<!-- °í°´°Ë»ö -->
<script>
function FrmFindClient(name) {

    document.location.href="mail.php?&Uname="+name;

    }
</script>


<?

    $nameQry       
=  " SELECT Memail, Mname From member WHERE  Mname LIKE '%$Uname%' OR  Mcompany LIKE '%$Uname%' ";

    
$nameResult    =    MYSQL_QUERY($nameQry);

    
$Row     =    mysql_num_rows($nameResult);

    
$nameRow  =  MYSQL_FETCH_ARRAY($nameResult);

?>

<script>
 function Frmsend(){ //º¸³»±â¹öư
     
    if( frmmail.name.value == ""){
     alert("º¸³»´Â »ç¶÷ À̸§À» ÀÔ·ÂÇϼ¼¿ä.");
     frmmail.name.focus();
     return;
     
     } 

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

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

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

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

  function frmCancle() { // Ãë¼ÒÇϸé È­¸é ¸®Ç÷¹½¬ µÊ
        //location.reload(); 
        location.href="mail.php?&Uname='NoUser'";
        window.status=""; 
        return true; 
  }
</script>

<body bgcolor=white  topmargin=0 leftmargin=0>
<table border=0 cellpadding=0 cellspacing=0 width=100% height=90>
    <tr>
        <td height=85>
  <table border=0 cellpadding=0 cellspacing=0 width=100% height=85>
                <tr>
                    <td width=185 rowspan=4 width=185 height=85>
                        <p><A HREF="../manage/admin_include.php"><img src="../manage/logo01.gif" border=0></A></p>
                    </td>
                
          <td height=50>
              <table border=0 cellpadding=0 cellspacing=0>
                 <tr>
                  <td width=130 align=center> 
                    <a href='../manage/memberManage.php'><FONT COLOR="#0099FF"><B>ȸ¿ø°ü¸®</B></FONT></a>
                  </td>
                   <td width=130 align=center> 
                    <a href='../manage/productManage.php'><FONT COLOR="#0099FF"><B>»óǰ°ü¸®</B></FONT></a>
                  </td>
                    <td width=130 align=center> 
                   <a href='../manage/memberBoardManage.php'><FONT COLOR="#0099FF"><B>¼­ºñ½º °Ô½ÃÆÇ</B></FONT></a>
                  </td>
                  <td width=130 align=center> 
                   <a href='../manage/nomalBoardManage.php'><FONT COLOR="#0099FF"><B>ÀϹݠ°Ô½ÃÆÇ</B></FONT></a>
                  </td>
              <!---     <td width=130 align=center> 
                <a href='../manage/resellerManage.php'>¸®¼¿·¯</a>
                  </td>-->
                  <td width=130 align=center> 
                  <a href="../manage/orderList.php"><FONT COLOR="#0099FF"><B>°áÁ¦ ¸®½ºÆ®</B></FONT></a>
                  </td>
                </tr>
                </tr>
              </table>
         </td>
                </tr>
                <tr>
                    <td bgcolor=#D8D8D8 height=1></td>
                </tr>
                <tr>
                    <td bgcolor=#F1F0F0 height=4></td>
                </tr>
                <tr>
                    <td height=30 bgcolor=#0072BC>
                        <FONT COLOR="#FFFFFF">&nbsp;&nbsp;<? echo ($adminName); ?> ´ÔÀÌ ·Î±×ÀΠµÇ¾ú½À´Ï´Ù.</FONT>&nbsp;&nbsp;<A HREF="admin_logout.php"><FONT COLOR="#FFFFFF">[·Î±×¾Æ¿ô]</FONT></A>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td height=5 bgcolor=#DFDFDF></td>
    </tr>
</table>


<!-- ÇÏ´Ü -->
<table border=0 cellpadding=0 cellspacing=0 width="1001" >
    <tr>
        <td width="193" height="563" rowspan="8" valign="top">
            <? include("left_menu_admin.php"); ?>
        </td>
        <td width="741" height="7" >
            <p align="right">
                <img src="../img/common/history.gif" align=absmiddle> : °ü¸®ÀÚ¸ðµå&gt;&gt;<b>¸ÞÀϺ¸³»±â</b>
            </p>
        </td>
        <td width="67" height="7" >
            <p>&nbsp;</p>
        </td>
    </tr>
    <tr>
        <td width="741" height="33" valign="top">
            <img src="../manage/img/mail_top_bar_001.gif" width="734" height="48" border="0">
        </td>
        <td width="67" height="33" background="../manage/img/line_bg.gif" valign="top">
            <p><img src="../manage/img/top_line_001.gif" width="68" height="48" border="0"></p>

        </td>
    </tr>
    <tr>
        <td width="741" >
            <p align="left">
¸ÅÀÏ º¸³»±â
            </p>
        </td>
        <td width="67" rowspan="6" background="../manage/img/line_bg.gif" height="495" >
            <p>&nbsp;</p>
        </td>
    </tr>
    <tr>
        <td width="741">
            <p>&nbsp;</p>
        </td>
    </tr>
    <tr>
        <td width="741" height="434" valign="top">













<form name='frmmail' method='post' action=''>

    <table width="741" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#66CCFF" >
        <tr bgcolor="#0066CC">
            <td width="119">
                <font color="white">º¸³»´Â »ç¶÷ À̸§</font>
            </td>
            <td width="599" bgcolor="white">    
                <input type='text' name='name' maxlength='30' style='background-color:white; border-width:1; border-color:black; border-style:solid; height:18; width:164;' value="¹ÌÁø¼ÒÇÁÆ®" size="30"> 
                            º¸³»´Â »ç¶÷ÀÇ À̸§À» ÀÔ·ÂÇϼ¼¿ä. ¿¹) ¹ÌÁø¼ÒÇÁÆ® ±èÇö½Ä ½ÇÀå
            </td>
        </tr>
        <tr bgcolor="#0066CC">
            <td width="119">
                <font color="white">º¸³»´Â »ç¶÷ ¸ÞÀÏÁÖ¼Ò</font> 
            </td>
            <td width="599" bgcolor="white">
                <input type='text' name='mail' maxlength='30' style='background-color:white; border-width:1; border-color:black; border-style:solid; height:18; width:164;' value="mj@mijinsoft.co.kr" size="30"> 
                            º¸³»´Â »ç¶÷ÀÇ ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇϼ¼¿ä. ¿¹)mj@mijinsoft.co.kr 
            </td>
        </tr>
        <tr bgcolor="#0066CC">
            <td width="119">
                <font color="white">¹Þ´Â »ç¶÷ ¸ÞÀÏÁÖ¼Ò</font>
            </td>
            <td width="599" bgcolor="white">    
                <input type='text' name="mailto" maxlength='50' style='background-color:white; border-width:1; border-color:black; border-style:solid; height:18; width:164;' size="30" value="<?=($nameRow[Memail]);?>"> 
                <font color="#0000CC">°í°´°Ë»ö</font> 
                : <input type='text' name="cname" maxlength='50' style='background-color:white; border-width:1; border-color:black; border-style:solid; height:18; width:120;' size="17" onKeyDown="if(event.keyCode==13)FrmFindClient(this.value);" value="<?=($nameRow[Mname]);?>">&nbsp;°í°´¸í 
                ¶Ç´Â È¸»ç¸í ÀԷ ÈÄ ¿£Å͸¦ Ä¡¼¼¿ä.
            </td>
        </tr>
        <tr bgcolor="#0066CC">
            <td width="119">
                <p><font color="white">Á¦¸ñ</font></p>
        </td>
            <td width="599" bgcolor="white">    
                <input type='text' name='subject' maxlength='255' style='background-color:white; border-width:1; border-color:black; border-style:solid; height:18; width:500;' size="47">
                <input type='checkbox' name='html' value='1' checked><font face="Verdana" size="1"><b>TAG</b></font>
            </td>
        </tr>
        <tr bgcolor="#0066CC">
            <td width="119" height="310">
                <font color="white">³»¿ë</font>
            </td>
            <td width="599" height="310" bgcolor="white">
                <textarea name='memo' rows="21" cols="82"></textarea>
            </td>
        </tr>

    </table>

            <p align="center">
            <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()'> 
            </p>

</form>
        










        
        
        
        </td>
    </tr>
    <tr>
        <td width="741" height="1" >
            <p align="center"></p>
        </td>
    </tr>
    <tr>
        <td width="741" height="22" >
            <p align="center">
&nbsp;
            </p>

        </td>
    </tr>
    <tr>
        <td width="741" height="15" >
            <p align="center"></p>
        </td>
    </tr>
    <tr>
        <td width="1001" height="4" colspan="3" bgcolor="#E4E4E4" >
        </td>
    </tr>
    <tr>
        <td width="193" >
            <p align="center"><img src="../manage/img/mjlogo.GIF" border="0"></p>
        </td>
        
        <td width="741" >

<!-- ¸µÅ© µ¥ÄÚ·¹À̼Ǡ½ÃÀÛ -->
<!-- ÅؽºÆ® ¸µÅ©¿¡ ¸¶¿ì½º¸¦ °¡Á®°¡¸é ¹ØÁÙ ±ß°í »ö±ò º¯°æ µî-->















<style> 
a:link {color:#404040; text-decoration:none} 
a:visited {color:#404040; text-decoration:none} 
a:active {color:#404040; text-decoration:none} 
a:hover {color:#FF6600; text-decoration:underline} 
.BoldFont 
{font-weight:bold;text-decoration:underline;} 
.GeneFont 
{font-weight:normal; text-decoration:none;}      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
</style>
<!-- ¸µÅ© µ¥ÄÚ·¹À̼Ǡ³¡ -->

            <?    include("admin_foot.php"); ?>

        </td>
        
        <td width="67" >
            <p>&nbsp;</p>
</td>
    </tr>
</table>

<!-- top ¹öư »ðÀÔ -->
<?    include("top_001.php"); ?>