회원스킨/폼메일

This commit is contained in:
whitedot
2012-12-06 11:40:00 +09:00
parent 1169c81e68
commit 309ba90790

View File

@ -1,133 +1,75 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="600" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" bgcolor="#EBEBEB"><table width="590" height="40" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" align="center" bgcolor="#FFFFFF" ><img src="<?=$member_skin_path?>/img/icon_01.gif" width="5" height="5"></td>
<td width="75" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b><?=$g4[title]?></b></font></td>
<td width="490" bgcolor="#FFFFFF" ></td>
</tr>
</table></td>
</tr>
</table>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="600" height="20" colspan="4"></td>
</tr>
<tr>
<td width="30" height="24"></td>
<td width="20" align="center" valign="middle" bgcolor="#EFEFEF"><img src="<?=$member_skin_path?>/img/arrow_01.gif" width="7" height="5"></td>
<td width="520" align="left" valign="middle" bgcolor="#EFEFEF"><b><?=$name?></b>님께 메일보내기</td>
<td width="30" height="24"></td>
</tr>
</table>
<section>
<h1><?=$name?>님께 메일보내기</h1>
<form name="fformmail" method="post" onsubmit="return fformmail_submit(this);" enctype="multipart/form-data" style="margin:0px;">
<input type="hidden" name="to" value="<?=$email?>">
<input type="hidden" name="to" value="<?=$email?>">
<input type="hidden" name="attach" value="2">
<input type="hidden" name="token" value="<?=$token?>">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<input type="hidden" name="token" value="<?=$token?>">
<? if ($is_member) { // 회원이면 ?>
<input type="hidden" name="fnick" value="<?=$member[mb_nick]?>">
<input type="hidden" name="fmail" value="<?=$member[mb_email]?>">
<? } ?>
<table>
<caption>메일쓰기</caption>
<tbody>
<? if (!$is_member) { ?>
<tr>
<td height="330" align="center" valign="top"><table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20"></td>
</tr>
<tr>
<td height="2" bgcolor="#808080"></td>
</tr>
<tr>
<td width="540" height="2" align="center" valign="top" bgcolor="#FFFFFF">
<table width="540" border="0" cellspacing="0" cellpadding="0">
<colgroup width="130">
<colgroup width="10">
<colgroup width="400">
<? if ($is_member) { // 회원이면 ?>
<input type='hidden' name='fnick' value='<?=$member[mb_nick]?>'>
<input type='hidden' name='fmail' value='<?=$member[mb_email]?>'>
<? } else { ?>
<tr>
<td height="27" align="center"><b>이름</b></td>
<td valign="bottom"><img src="<?=$member_skin_path?>/img/l.gif" width="1" height="8"></td>
<td><input type=text style='width:90%;' name='fnick' required minlength=2 itemname='이름'></td>
</tr>
<tr>
<td height="27" align="center"><b>E-mail</b></td>
<td valign="bottom"><img src="<?=$member_skin_path?>/img/l.gif" width="1" height="8"></td>
<td><input type=text style='width:90%;' name='fmail' required email itemname='E-mail'></td>
</tr>
<? } ?>
<tr>
<td height="27" align="center"><b>제목</b></td>
<td valign="bottom"><img src="<?=$member_skin_path?>/img/l.gif" width="1" height="8"></td>
<td><input type=text style='width:90%;' name='subject' required itemname='제목'></td>
</tr>
<tr>
<td height="1" colspan="3" bgcolor="#E9E9E9"></td>
</tr>
<tr>
<td height="28" align="center"><b>선택</b></td>
<td valign="bottom"><img src="<?=$member_skin_path?>/img/l.gif" width="1" height="8"></td>
<td><input type='radio' name='type' value='0' checked> TEXT <input type='radio' name='type' value='1' > HTML <input type='radio' name='type' value='2' > TEXT+HTML</td>
</tr>
<tr>
<td height="1" colspan="3" bgcolor="#E9E9E9"></td>
</tr>
<tr>
<td height="150" align="center"><b>내용</b></td>
<td valign="bottom"><img src="<?=$member_skin_path?>/img/l.gif" width="1" height="8"></td>
<td><textarea name="content" style='width:90%;' rows='9' required itemname='내용'></textarea></td>
</tr>
<tr>
<td height="1" colspan="3" bgcolor="#E9E9E9"></td>
</tr>
<tr>
<td height="27" align="center">첨부파일 #1</td>
<td valign="bottom"><img src="<?=$member_skin_path?>/img/l.gif" width="1" height="8"></td>
<td><input type=file style='width:90%;' name='file1'></td>
</tr>
<tr>
<td height="1" colspan="3" bgcolor="#E9E9E9"></td>
</tr>
<tr>
<td height="27" align="center">첨부파일 #2</td>
<td valign="bottom"><img src="<?=$member_skin_path?>/img/l.gif" width="1" height="8"></td>
<td><input type=file style='width:90%;' name='file2'></td>
</tr>
<tr>
<td height="1" colspan="3" bgcolor="#E9E9E9"></td>
</tr>
<tr>
<td height="27" align="center"><img id='kcaptcha_image' /></td>
<td valign="bottom"><img src="<?=$member_skin_path?>/img/l.gif" width="1" height="8"></td>
<td><input class='ed' type=input size=10 name=wr_key itemname="자동등록방지" required>&nbsp;&nbsp;왼쪽의 글자를 입력하세요.</td>
</tr>
<tr>
<td height="1" colspan="3" bgcolor="#E9E9E9"></td>
</tr>
</table></td>
</tr>
</table></td>
<th scope="row"><label for="fnick">이름</label></th>
<td><input type="text" id="fnick" name="fnick" required></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#D5D5D5"></td>
<th scope="row"><label for="fmail">E-mail</label></th>
<td><input type="text" id="fmail" name="fmail" required></td>
</tr>
<? } ?>
<tr>
<th scope="row"><label for="subject">제목</label></th>
<td><input type=text id="subject" name="subject" required></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#E6E6E6"></td>
<th scope="row">형식</th>
<td>
<input type="radio" id="type_text" name="type" value="0" checked> <label for="type_text">TEXT</label>
<input type="radio" id="type_html" name="type" value="1" > <label for="type_html">HTML</label>
<input type="radio" id="type_both" name="type" value="2" > <label for="type_both">TEXT+HTML</label>
</td>
</tr>
<tr>
<td height="40" align="center" valign="bottom"><input id=btn_submit type=image src="<?=$member_skin_path?>/img/btn_mail_send.gif" border=0>&nbsp;&nbsp;<a href="javascript:window.close();"><img src="<?=$member_skin_path?>/img/btn_close.gif" width="48" height="20" border="0"></a></td>
<th scope="row"><label for="content">내용</label></th>
<td><textarea id="content" name="content" required></textarea></td>
</tr>
<tr>
<th scope="row"><label for="file1">첨부 1</label></th>
<td><input type="file" id="file1" name="file1"></td>
</tr>
<tr>
<th scope="row"><label for="file2">첨부 2</label></th>
<td><input type="file" id="file2" name="file2"></td>
</tr>
</tbody>
</table>
</form>
<script type="text/javascript" src="<?="$g4[path]/js/md5.js"?>"></script>
<script type="text/javascript" src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
<script type="text/javascript">
<fieldset>
<legend>자동등록방지</legend>
<img id="kcaptcha_image" />
<input type="text" name="wr_key" title="자동등록방지" size="10" required>
왼쪽의 글자를 입력하세요.
</fieldset>
<div class="btn_confirm">
<input type="submit" id="btn_submit" value="메일발송">
<a href="javascript:window.close();">창닫기</a>
</div>
</form>
</section>
<script src="<?="$g4[path]/js/md5.js"?>"></script>
<script src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
<script>
with (document.fformmail) {
if (typeof fname != "undefined")
fname.focus();