폼메일스킨을이용하여서 전송오류 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

폼메일스킨을이용하여서 전송오류 정보

폼메일스킨을이용하여서 전송오류

본문

http://miraedream.com/board/bbs/board.php?bo_table=counsel

--------------------

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$colspan = 6;
if ($is_checkbox) $colspan++;

//if($member[mb_level] <= 7) {
//alert("접근권한이 없습니다.", $g4[path]);
//}

?>


<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td>

<table width="100%" cellspacing="0" cellpadding="0">
<tr height="25">
    <td>&nbsp;</td>
    </tr>
<tr><td height=5></td></tr>

</table>

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

if ($is_dhtml_editor) {
    include_once("$g4[path]/lib/cheditor.lib.php");
    echo "<script src='$g4[editor_path]/cheditor.js'></script>";
    echo cheditor1('wr_content', $content);
}

$ex9_filed =  explode("|",$write[wr_9]);
$ext9_00  =  $ex9_filed[0];  //전화
$ext9_01  =  $ex9_filed[1];
$ext9_02  =  $ex9_filed[2];
$ext9_03  =  $ex9_filed[3];
$ext9_04  =  $ex9_filed[4];
$ext9_05  =  $ex9_filed[5];
$ext9_06  =  $ex9_filed[6]; //메일
$ext9_07  =  $ex9_filed[7]; //답변방법
$ext9_08  =  $ex9_filed[8];
$ext9_09  =  $ex9_filed[9];

$ex10_filed =  explode("|",$write[wr_10]); //주소부분
$ext10_00  =  $ex10_filed[0];
$ext10_01  =  $ex10_filed[1];
$ext10_02  =  $ex10_filed[2];
$ext10_03  =  $ex10_filed[3];

/*
wr_1 회사명
wr_2
wr_3
wr_4
wr_5
wr_6
wr_7 홈페이지
wr_8 상태
*/

?>
<style type="text/css">
<!--
.my_input { border:1px solid #CBD7E9; }
-->
</style>
<script language="javascript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>

<form name="fwrite" method="post" action="javascript:fwrite_check(document.fwrite);" enctype="multipart/form-data" style="margin:0px;">
<input type=hidden name=null>
<input type=hidden name=w        value="<?=$w?>">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id    value="<?=$wr_id?>">
<input type=hidden name=sca      value="<?=$sca?>">
<input type=hidden name=sfl      value="<?=$sfl?>">
<input type=hidden name=stx      value="<?=$stx?>">
<input type=hidden name=spt      value="<?=$spt?>">
<input type=hidden name=sst      value="<?=$sst?>">
<input type=hidden name=sod      value="<?=$sod?>">
<input type=hidden name=page    value="<?=$page?>">

<table width="<?=$width?>" align=center border="0" cellspacing="0" cellpadding="1" bgcolor='#D0D0D0'>
<tr>
<td><table width="100%" border="0" cellspacing="3" cellpadding="5" bgcolor='#EFEFEF'>
<tr>
<td align='center' bgcolor='#FFFFFF'><strong>기업상담 메일</strong></td>
</tr>
</table></td>
</tr>
</table>

<table cellpadding=0 cellspacing=0 border=0><tr><td height=5></td></tr></table>

<table width="<?=$width?>" align=center cellpadding=0 cellspacing=1 bgcolor=#D0D0D0>
<tr><td bgcolor=#FFFFFF>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<? if($is_admin){ ?>
<tr><td colspan=2 height=1 bgcolor=#F6F6F6></td></tr>
<tr>
    <td bgcolor=#F6F6F6 style='padding-left:20px; height:30px;'><font color=blue><b>상태</b></font></td>
    <td style='padding-left:5px;'>
<input type=radio name=wr_8 <?if($write[wr_8]=='답변전' || $write[wr_8]=='') echo "checked";?> value="답변전">답변전
<input type=radio name=wr_8 <?if($write[wr_8]=='답변중') echo "checked";?> value="답변중">답변중
<input type=radio name=wr_8 <?if($write[wr_8]=='완료') echo "checked";?> value="완료">완료
</td></tr>
<tr><td colspan=2 height=1 bgcolor=#EEEEEE></td></tr>
<?}?>


<tr><td colspan=2 height=1 bgcolor=#F9F9F9></td></tr>
<tr>
    <td bgcolor=#F9F9F9 style='padding-left:20px; height:30px;'>회사명</td>
    <td style='padding-left:5px;'><input class=my_input maxlength=60 size=35 name=wr_1 itemname="회사명" required value="<?=$write[wr_1]?>"></td></tr>

<tr><td colspan=2 height=1 bgcolor=#EEEEEE></td></tr>

<? if ($member[mb_name]) { ?>
<tr>
    <td bgcolor=#F9F9F9 style='padding-left:20px; height:30px;'>이름</td>
    <td style='padding-left:5px;'><font color=#0606FF><b><?=$member[mb_name]?></b></font> 님</td></tr>
<tr><td colspan=2 height=1 bgcolor=#EEEEEE></td></tr>
<? } else { ?>
<tr>
    <td bgcolor=#F9F9F9 style='padding-left:20px; height:30px;'>이름</td>
    <td style='padding-left:5px;'><input class=my_input maxlength=20 size=15 name=wr_name itemname="이름" required value="<?=$write[wr_name]?>"></td></tr>
<tr><td colspan=2 height=1 bgcolor=#EEEEEE></td></tr>
<? } ?>

<tr>
    <td bgcolor=#F9F9F9 style='padding-left:20px;'>연락처</td>
    <td style="padding:3 0 3 5;">
<table width='100%' cellpadding=0 cellspacing=0 border=0>
<tr>
<td>
Tel
<select name='ext9_00' class='my_input' itemname='지역별'>
<option selected value=''>지역별</option>
<option value='02' <? if($ext9_00 == "02") echo "selected"; ?>>&nbsp;02</option>
<option value='031' <? if($ext9_00 == "031") echo "selected"; ?>>031</option>
<option value='032' <? if($ext9_00 == "032") echo "selected"; ?>>032</option>
<option value='033' <? if($ext9_00 == "033") echo "selected"; ?>>033</option>
<option value='041' <? if($ext9_00 == "041") echo "selected"; ?>>041</option>
<option value='042' <? if($ext9_00 == "042") echo "selected"; ?>>042</option>
<option value='043' <? if($ext9_00 == "043") echo "selected"; ?>>043</option>
<option value='051' <? if($ext9_00 == "051") echo "selected"; ?>>051</option>
<option value='052' <? if($ext9_00 == "052") echo "selected"; ?>>052</option>
<option value='053' <? if($ext9_00 == "053") echo "selected"; ?>>053</option>
<option value='054' <? if($ext9_00 == "054") echo "selected"; ?>>054</option>
<option value='055' <? if($ext9_00 == "055") echo "selected"; ?>>055</option>
<option value='061' <? if($ext9_00 == "061") echo "selected"; ?>>061</option>
<option value='062' <? if($ext9_00 == "062") echo "selected"; ?>>062</option>
<option value='063' <? if($ext9_00 == "063") echo "selected"; ?>>063</option>
<option value='064' <? if($ext9_00 == "064") echo "selected"; ?>>064</option>
</select> -
<input name='ext9_01' value='<?=$ext9_01?>' type='text' size='5' minlength='3' maxlength='4' required itemname='전화 두번째자리' class='my_input' onkeydown='onlyNumber(this);'>  -
<input name='ext9_02' value='<?=$ext9_02?>' type='text' size='5' minlength='4' maxlength='4' required itemname='전화 세번째자리' class='my_input' onkeydown='onlyNumber(this);'> &nbsp; &nbsp;

HP
<select name='ext9_03' class='my_input' required itemname='통신사'>
<option selected value=''>통신사</option>
<option value='010' <? if($ext9_03 == "010") echo "selected"; ?>>010</option>
<option value='011' <? if($ext9_03 == "011") echo "selected"; ?>>011</option>
<option value='016' <? if($ext9_03 == "016") echo "selected"; ?>>016</option>
<option value='017' <? if($ext9_03 == "017") echo "selected"; ?>>017</option>
<option value='018' <? if($ext9_03 == "018") echo "selected"; ?>>018</option>
<option value='019' <? if($ext9_03 == "019") echo "selected"; ?>>019</option>
</select> -
<input name='ext9_04' value='<?=$ext9_04?>' type='text' size='5' minlength='3' maxlength='4' itemname='휴대전화 두번째자리' class='my_input' onkeydown='onlyNumber(this);'>  -
<input name='ext9_05' value='<?=$ext9_05?>' type='text' size='5' minlength='4' maxlength='4' itemname='휴대전화 세번째자리' class='my_input' onkeydown='onlyNumber(this);'>
</td>
</tr>
<tr><td height=3></td></tr>
<tr>
<td>Email <input class=my_input maxlength=50 size=30 name=ext9_06 email value="<?=$ext9_06?>"></td>
</tr>
</table></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#EEEEEE></td></tr>

<tr>
    <td bgcolor=#F9F9F9 style='padding-left:20px;'>주소</td>
    <td style="padding:3 0 3 5;">
<table width='100%' cellpadding=0 cellspacing=0 border=0>
<tr>
<td><input class='my_input' type='text' name='ext10_00' value='<?=$ext10_00?>' size='5' maxlength='3' readonly <?=$config[cf_req_addr]?'required':'';?> itemname='우편번호 앞자리'>
-
<input class='my_input' type='text' name='ext10_01' value='<?=$ext10_01?>' size='5' maxlength='3' readonly <?=$config[cf_req_addr]?'required':'';?> itemname='우편번호 뒷자리'>
&nbsp;<a href="javascript:;" onclick="win_zip('fwrite', 'ext10_00', 'ext10_01', 'ext10_02', 'ext10_03');"><img  src='<?=$board_skin_path?>/img/icon_addr.gif' height='19' width='85' align='absmiddle' border='0'></a>
</td>
</tr>
<tr><td height=3></td></tr>
<tr>
<td><input class='my_input' type='text' name='ext10_02' value='<?=$ext10_02?>' size='35' readonly <?=$config[cf_req_addr]?'required':'';?> required itemname='주소'>

<input class='my_input' type='text' name='ext10_03'  value='<?=$ext10_03?>' size='25' <?=$config[cf_req_addr]?'required':'';?> required itemname='상세주소'>
(상세주소)
</td>
</tr>
</table></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#EEEEEE></td></tr>

<tr>
    <td bgcolor=#F9F9F9 style='padding-left:20px; height:30px;'>홈페이지</td>
    <td style='padding-left:5px;'>http://<input class=my_input size=56 name=wr_7 itemname="홈페이지" value="<?=$write[wr_7]?>"></td></tr>
<tr><td colspan=2 height=1 bgcolor=#EEEEEE></td></tr>

<tr>
    <td bgcolor=#F9F9F9 style='padding-left:20px; height:30px;'>답변방법</td>
    <td style='padding-left:5px;'>
<input type=checkbox name="ext9_07" value="전화" <? if($ext9_07 == "전화" || $ext9_07=='') echo "checked"; ?>>전화 &nbsp;
<input type=checkbox name="ext9_08" value="휴대전화" <? if($ext9_08 == "휴대전화") echo "checked"; ?>>휴대전화 &nbsp;
<input type=checkbox name="ext9_09" value="이메일" <? if($ext9_09 == "이메일") echo "checked"; ?>>이메일
</td></tr>
<tr><td colspan=2 height=1 bgcolor=#EEEEEE></td></tr>


<? if ($is_html || $is_secret || $is_mail) { ?>
<tr>
    <td bgcolor=#F9F9F9 style='padding-left:20px; height:30px;'>옵션</td>
    <td style='padding-left:5px;'>
        <? if ($is_html) { ?>
            <? if ($is_dhtml_editor) { ?>
            <input type=hidden value="html1" name="html">
            <? } else { ?>
            <input onclick="html_auto_br(this);" type=checkbox value="<?=$html_value?>" name="html" <?=$html_checked?>><span class=my_input>html</span>&nbsp;
            <? } ?>
        <? } ?>
        <? if ($is_secret) { ?>
            <? if ($is_admin || $is_secret==1) { ?>
            <input type=checkbox value="secret" name="secret" <?=$secret_checked?>><span class=w_title>비밀글</span>&nbsp;
            <? } else { ?>
            <input type=hidden value="secret" name="secret">
            <? } ?>
        <? } ?>
        <? if ($is_mail) { ?><input type=checkbox value="mail" name="mail" <?=$recv_email_checked?>>답변메일받기&nbsp;<? } ?></td></tr>
<tr><td colspan=2 height=1 bgcolor=#EEEEEE></td></tr>
<? } ?>

<tr>
    <td bgcolor=#F9F9F9 style='padding-left:20px; height:30px;'>제목</td>
    <td style='padding-left:5px;'><input class=my_input style="width:98%;" name=wr_subject itemname="제목" required value="<?=$subject?>"></td></tr>
<tr><td colspan=2 height=1 bgcolor=#EEEEEE></td></tr>
<tr>
    <td bgcolor=#F9F9F9 style='padding-left:20px;'> 문의내용</td>
    <td style='padding-left:5px;'>

        <? if ($is_dhtml_editor) { ?>
            <?=cheditor2('fwrite', 'wr_content', '98%', '350');?>
        <? } else { ?>
        <table width=100% cellpadding=0 cellspacing=0>
        <tr>
            <td width=50% align=left valign=bottom>
                <span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
                <span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
                <span style="cursor: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/down.gif"></span></td>
            <td width=50% align=right><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
        </tr>
        </table>
        <textarea id="wr_content" name="wr_content" class=my_input style='width:98%; word-break:break-all;' rows=10 itemname="내용" required
        <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
        <? if ($write_min || $write_max) { ?><script language="javascript"> check_byte('wr_content', 'char_count'); </script><?}?>
        <? } ?>
    </td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#EEEEEE></td></tr>

<? if ($is_file) { ?>
<tr>
    <td bgcolor=#F9F9F9 style='padding-left:20px; height:30px;'>첨부파일</td>
    <td style='padding-left:5px;'><table id="variableFiles" cellpadding=0 cellspacing=0></table><?// print_r2($file); ?>
        <script language="JavaScript">
        var flen = 0;
        function add_file(delete_code)
        {
            var upload_count = <?=(int)$board[bo_upload_count]?>;
            if (upload_count && flen >= upload_count)
            {
                alert("이 게시판은 "+upload_count+"개 까지만 파일 업로드가 가능합니다.");
                return;
            }

            var objTbl;
            var objRow;
            var objCell;
            if (document.getElementById)
                objTbl = document.getElementById("variableFiles");
            else
                objTbl = document.all["variableFiles"];

            objRow = objTbl.insertRow(objTbl.rows.length);
            objCell = objRow.insertCell(0);

            objCell.innerHTML = "<input type='file' class=my_input size=32 name='bf_file[]' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능'>";
            if (delete_code)
                objCell.innerHTML += delete_code;
            else
            {
                <? if ($is_file_content) { ?>
                objCell.innerHTML += "<br><input type='text' class=my_input size=50 name='bf_content[]' title='업로드 파일에 해당 되는 내용을 입력하세요.'>";
                <? } ?>
                ;
            }

            flen++;
        }

        <?=$file_script; //수정시에 필요한 스크립트?>

        function del_file()
        {
            // file_length 이하로는 필드가 삭제되지 않아야 합니다.
            var file_length = <?=(int)$file_length?>;
            var objTbl = document.getElementById("variableFiles");
            if (objTbl.rows.length - 1 > file_length)
            {
                objTbl.deleteRow(objTbl.rows.length - 1);
                flen--;
            }
        }
        </script></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#EEEEEE></td></tr>
<? } ?>



</table></td>
</tr></table>

<table width="<?=$width?>" border="0" cellspacing="0" cellpadding="0">
<tr>
    <td height="10" background="<?=$board_skin_path?>/img/write_down_bg.gif"></td>
</tr>
<tr>
    <td align="center" valign="top">
        <input type=image id="btn_submit" src="<?=$board_skin_path?>/img/btn_write.gif" border=0 accesskey='s' onfocus='this.blur()'> &nbsp; <a href="#" onclick="history.go(0)" onfocus='this.blur()'><img id="btn_list" src='<?=$board_skin_path?>/img/btn_write2.gif' border='0'></a>
</td>
</tr>
</table>
</form>

<script language="javascript">

function onlyNumber(objtext1){
var inText = objtext1.value;
var ret;

for (var i = 0; i < inText.length; i++) {
ret = inText.charCodeAt(i);
if (!((ret > 47) && (ret < 58))) {
alert("숫자만을 입력하세요");
objtext1.value = "";
objtext1.focus();
return false;
}
}
if (objtext1.value.length==6) {
document.form1.RNI_idnum2.focus() ;
}
return true;
}

with (document.fwrite) {
    if (typeof(wr_1) != "undefined")
        wr_1.focus();
    else if (typeof(wr_name) != "undefined")
        wr_name.focus();
    else if (typeof(wr_subject) != "undefined")
        wr_subject.focus();
    else if (typeof(wr_content) != "undefined")
        wr_content.focus();

    if (typeof(ca_name) != "undefined")
        if (w.value == "u")
            ca_name.value = "<?=$write[ca_name]?>";
}

function html_auto_br(obj) {
    if (obj.checked) {
        result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
        if (result)
            obj.value = "html2";
        else
            obj.value = "html1";
    }
    else
        obj.value = "";
}

function fwrite_check(f) {
    var s = "";
    if (s = word_filter_check(f.wr_subject.value)) {
        alert("제목에 금지단어('"+s+"')가 포함되어있습니다");
        return;
    }

    if (s = word_filter_check(f.wr_content.value)) {
        alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
        return;
    }

    if (char_min > 0 || char_max > 0) {
        var cnt = parseInt(document.getElementById('char_count').innerHTML);
        if (char_min > 0 && char_min > cnt) {
            alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
            return;
        }
        else if (char_max > 0 && char_max < cnt) {
            alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
            return;
        }
    }

    if (typeof(f.wr_key) != "undefined") {
        if (hex_md5(f.wr_key.value) != md5_norobot_key) {
            alert("자동등록방지용 빨간글자가 순서대로 입력되지 않았습니다.");
            f.wr_key.focus();
            return;
        }
    }

    <?
    if ($is_dhtml_editor) {
        echo cheditor3('wr_content');
        echo "if (!document.getElementById('wr_content').value) { alert('내용을 입력하십시오.'); return; } ";
    }
    ?>

    document.getElementById('btn_submit').disabled = true;
 
    f.action = "./write_update.php";

}
</script>

<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript">
window.onload=function() {
    drawFont();
}
</script>

------------------------------------------

오류떠서 전송버튼이 작동을 안해요..ㅠ
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로