게시판을 하나 만들었는데...작성이 안되요...봐주세요

게시판을 하나 만들었는데...작성이 안되요...봐주세요

QA

게시판을 하나 만들었는데...작성이 안되요...봐주세요

본문

글쓰기에는 $wr_id 값 어쩌구.. 계속 뜨네요....

아 그리구 wr_11 까지 썼는데

게시된 글을 확인하려면 어떤 파일을 수정해야 되나요


<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($is_dhtml_editor) {
    include_once("$g4[path]/lib/cheditor4.lib.php");
    echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
    echo cheditor1('wr_content', '100%', '250');
}
$etc8_exp = explode("|",$write[wr_8]); 
$etc8_exp00  = $etc8_exp[0]; 
$etc8_exp01  = $etc8_exp[1]; 
$etc8_exp02  = $etc8_exp[2]; 
$etc8_exp03  = $etc8_exp[3]; 
$etc8_exp04  = $etc8_exp[4]; 
$etc8_exp05  = $etc8_exp[5]; 
$etc9_exp = explode("|",$write[wr_9]);
$etc9_exp00 = $etc9_exp[0];
$etc9_exp01 = $etc9_exp[1];
$etc9_exp02 = $etc9_exp[2];
$etc9_exp03 = $etc9_exp[3];
$etc9_exp04 = $etc9_exp[4];
$etc9_exp05 = $etc9_exp[5];
$etc9_exp06 = $etc9_exp[6];
$etc9_exp07 = $etc9_exp[7];
$etc9_exp08 = $etc9_exp[8];
$etc9_exp09 = $etc9_exp[9];
$etc9_exp10 = $etc9_exp[10];
$etc9_exp11 = $etc9_exp[11];
$etc9_exp12 = $etc9_exp[12];
$etc9_exp13 = $etc9_exp[13];
$etc9_exp14 = $etc9_exp[14];
$etc9_exp15 = $etc9_exp[15];
$etc9_exp16 = $etc9_exp[16];
$etc9_exp17 = $etc9_exp[17];
$etc9_exp18 = $etc9_exp[18];
$etc9_exp19 = $etc9_exp[19];
$etc9_exp20 = $etc9_exp[20];
$etc9_exp21 = $etc9_exp[21];
$etc9_exp22 = $etc9_exp[22];
$etc9_exp23 = $etc9_exp[23];
$etc9_exp24 = $etc9_exp[24];
$etc9_exp25 = $etc9_exp[25];
$etc9_exp26 = $etc9_exp[26];
$etc9_exp27 = $etc9_exp[27];
$etc9_exp28 = $etc9_exp[28];
$etc9_exp29 = $etc9_exp[29];
$etc9_exp30 = $etc9_exp[30];
$etc9_exp31 = $etc9_exp[31];
$etc9_exp32 = $etc9_exp[32];
$etc9_exp33 = $etc9_exp[33];
$etc9_exp34 = $etc9_exp[34];
$etc9_exp35 = $etc9_exp[35];
?>
<div style="font-size:1px; line-height:1px; height:14px;"> </div>
<style type="text/css">
.write_head { height:30px; text-align:center; color:#8492A0; }
.field { border:1px solid #ccc; }
</style>
<script type="text/javascript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>
<form name="fwrite" method="post" onsubmit="return fwrite_submit(this);" 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?>">
<input type=hidden name=etc8_exp00 value="<?=$member[mb_nick]?>"> 
<input type=hidden name=etc8_exp01 value="<?=$member[mb_id]?>"> 
<input type=hidden name=etc8_exp02 value="<?=$member[mb_name]?>"> 
<input type=hidden name=etc8_exp03 value="<?=$member[mb_hp]?>"> 
<input type=hidden name=etc8_exp04 value="<?=$member[mb_tel]?>"> 
<input type=hidden name=etc8_exp05 value="<?=$member[mb_addr1]?>">
<table width="731" align=center cellpadding=0 cellspacing=0><tr>                                    <td width="731">
<div style="background-image:url('<?=$board_skin_path?>/img/title_bg.gif'); background-repeat:repeat-x; border-width:1px; border-color:rgb(208,208,208); border-style:solid; height:34px;">
                    <div style="font-weight:bold; font-size:14px; margin-top:7px; margin-right:0; margin-bottom:0; margin-left:10px;">
                        <p align="center">:: 순천대학교 원룸::</p>
                    </div>
</div>
<div style="font-size:1px; line-height:1px; background-image:url('<?=$board_skin_path?>/img/title_shadow.gif'); background-repeat:repeat-x; height:3px;"></div>

                <table width="99%" border="0" cellspacing="0" cellpadding="0" height="716">
                    <colgroup width=90>
                    <colgroup width=''>
                    <tr>
                        <td colspan="2" style="background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x; height:3px;" width="723"></td></tr>
                    <? if ($is_name) { ?>
                    <tr><td class=write_head width="84">· 이 름</td>
                        <td width="639"><input class='ed' maxlength=20 size=15 name=wr_name itemname="이름" required value="<?=$name?>"></td> </tr>

                    <tr><td colspan="2" height=1 bgcolor=#e7e7e7 width="723"></td></tr>
                    <? } ?>
                    <? if ($is_password) { ?>
                    <tr><td class=write_head width="84">· 패스워드</td>
                   <td width="639"><input class='ed' type=password maxlength=20 size=15 name=wr_password itemname="패스워드" <?=$password_required?>></td>
                    </tr>
                    <tr><td colspan="2" height=1 bgcolor=#e7e7e7 width="723"></td></tr>
                    <? } ?>
                    <? if ($is_email) { ?>
                    <tr><td class=write_head width="84">· 이메일</td>
                    <td width="639"><input class='ed' maxlength=100 size=50 name=wr_email email itemname="이메일" value="<?=$email?>"></td></tr>

                    <tr><td colspan="2" height=1 bgcolor=#e7e7e7 width="723"></td></tr>
                    <? } ?>
                    <? if ($is_homepage) { ?>
                    <tr><td class=write_head width="84">· 홈페이지</td>
                    <td width="639"><input class='ed' size=50 name=wr_homepage itemname="홈페이지" value="<?=$homepage?>"></td></tr>
                    <tr><td colspan="2" height=1 bgcolor=#e7e7e7 width="723"></td></tr>
                    <? } ?>
                    <? 
$option = "";
$option_hidden = "";
if ($is_notice || $is_html || $is_secret || $is_mail) { 
    $option = "";
    if ($is_notice) { 
        $option .= "<input type=checkbox name=notice value='1' $notice_checked>공지 ";
    }
    if ($is_html) {
        if ($is_dhtml_editor) {
            $option_hidden .= "<input type=hidden value='html1' name='html'>";
        } else {
            $option .= "<input onclick='html_auto_br(this);' type=checkbox value='$html_value' name='html' $html_checked><span class=w_title>html</span> ";
        }
    }
    if ($is_secret) {
        if ($is_admin || $is_secret==1) {
            $option .= "<input type=checkbox value='secret' name='secret' $secret_checked><span class=w_title>비밀글</span> ";
        } else {
            $option_hidden .= "<input type=hidden value='secret' name='secret'>";
        }
    }
    
    if ($is_mail) {
        $option .= "<input type=checkbox value='mail' name='mail' $recv_email_checked>답변메일받기 ";
    }
}
echo $option_hidden;
if ($option) {
?>
                    <tr><td class=write_head width="84">· 옵 션</td>
                        <td width="639"><?=$option?></td></tr>
                    <tr> <td colspan="2" height=1 bgcolor=#e7e7e7 width="723"></td></tr>
                    <? } ?>
                    <? if ($is_category) { ?>
                    <tr> <td class=write_head width="84">· 위 치</td>
                        <td width="639"><select name=ca_name required itemname="분류">
                                <option>선택하세요<?=$category_option?></option>
                                <option value="학교정문">학교정문</option>
                                <option value="공대후문">공대후문</option>
                                <option value="기숙사후문">기숙사후문</option>
</select></td></tr>
                    <tr><td colspan="2" height=1 bgcolor=#e7e7e7 width="723"></td></tr>
                    <? } ?>
                    <tr><td class=write_head width="84">· 제 목</td>
                        <td width="639"><input class='ed' style="width:100%;" name=wr_subject id="wr_subject" itemname="제목" required value="<?=$subject?>"></td></tr>
<tr><td colspan="2" height=1 bgcolor=#e7e7e7 width="723"></td></tr>
<td height="11" class="write_head" width="84">· 건물명</td>
                    <td height="23" width="639">
                        <p><input class=ed style="width:60%;" name=wr_1 itemname="건물명" value="<?=$write[wr_1]?>" style="ime-mode:active" required></p> </td>
                <tr><td colspan="2" height=1 bgcolor=#e7e7e7 width="723"></td></tr>
                <tr><td class=write_head style="height:20px;" width="84">· 매물구분</td>
                    <td class=write_main bgcolor="#ffffff" width="639">

 <select name=ca_name required itemname="매물구분">
                            <option>선택하세요<?=$category_option?></option>
                            <option value="원룸">원룸</option>
                            <option value="투룸">투룸</option>
                            <option value="주인세대">주인세대</option>
                            <option value="오피스텔">오피스텔</option>
                            <option value="상가/아파트">상가/아파트</option>
</select> 
 </td> </tr>
                <tr><td class=write_head style="height:60px;" width="84" height="120">· 거래구분</td>
                    <td class=write_main bgcolor="#ffffff" width="639" height="120">
                        <table width="100%" align=center cellpadding=0 cellspacing=0 height="99">
 
                <tr><td height="16" width="75">  매물형태 </td>
                                <td width="457" height="16">
 <input type="checkbox" name="wr_trade1" value="월세(임대)" checked>월세(임대)
    <input type="checkbox" name="wr_trade2" value="전세">전세</td> </tr>
 
 
               <tr><td colspan="2" background="<?=$board_skin_path?>/img/line_dot04.gif" height="1" width="532"></td>
</tr>
                 <tr><td height="32" rowspan="2" width="75"> 월세가 </td>
                 <td width="457">         <p>보증금<input class=ed style="width:20%;" name=wr_2 itemname="보증금" value="<?=$write[wr_2]?>" style="ime-mode:active" size="16">
만원,  월세
<input class=ed style="width:20%;" name=wr_3 itemname="월세" value="<?=$write[wr_3]?>" style="ime-mode:active"  size="16">
만원</p></td> </tr>
                 <tr> <td height="9" width="459">  <p>보증금
<input class=ed style="width:20%;" name=wr_4 itemname="보증금" value="<?=$write[wr_4]?>" style="ime-mode:active" size="16"> 만원,사글세<input class=ed style="width:20%;" name=wr_5 itemname="사글세" value="<?=$write[wr_5]?>" style="ime-mode:active"  size="16"> 만원</p></td> </tr>
                            <tr><td colspan="2" background="<?=$board_skin_path?>/img/line_dot04.gif" height="1" width="532"></td></tr>
  
                            <tr> <td height="7" width="75"> 전세가 </td>
                                <td width="457" height="7"> <p>전세금
<input class=ed style="width:20%;" name=wr_6 itemname="보증금" value="<?=$write[wr_6]?>" style="ime-mode:active" size="16"> 만원</p>
</td> </tr>
                            <tr> <td colspan="2" background="<?=$board_skin_path?>/img/line_dot04.gif" height="1" width="532"></td></tr>
 
  <tr><td width="75" height="11"> 월관리비</td>
                                <td width="457" height="23">
   <p><input class=ed style="width:60%;" name=wr_7 itemname="관리비" value="<?=$write[wr_7]?>" style="ime-mode:active" required size="16"> 만원</p> </td> </tr> </table> </td></tr>

                    <tr><td width="84" height="65" class="write_head" style="height:60px;">· 상세정보</td>
                        <td width="639" height="65" bgcolor="white" class="write_main">
                            <table width="100%">
                     <tr>
                       <td> 방/욕실</td>
                                    <td> 방 
         <input name=wr_8 value="<?=$write[wr_8]?>" style=width:10% itemname="방" class="input" numeric>개 
              / 욕실 <input name=wr_9 value="<?=$write[wr_9]?>" style=width:10% itemname="욕실" class="input" numeric>개</td> </tr>
                                <tr><td colspan="2" background="<?=$board_skin_path?>/img/line_dot04.gif" height="1"></td>
</tr>
                                <tr><td> 층정보</td>
                                    <td>전체<input name=wr_10 value="<?=$write[wr_10]?>" style=width:10% itemname="전체층" class="input" style="ime-mode:active">층
              <b>중</b>
                                    <input name=wr_11 value="<?=$write[wr_11]?>" style=width:10% itemname="몇층" class="input" numeric>층</td></tr> </table> </td> </tr>

                    <tr> <td class=write_head style="height:60px;" height="157" width="84">· 시설정보</td>
                        <td class=write_main bgcolor="ffffff" style="PADDING:4 4 4 4" valign="top" height="157" width="631">
                            <table width="100%" border="0" cellpadding="1" cellspacing="1" height="142">
                                <tr bgcolor="#FFFFFF">
                                    <td height="14"><b>가전</b></td>
                                    <td height="14"><input type=checkbox name="etc9_exp00" value="냉장고" <?if($etc9_exp[0]):?> checked<?endif;?> checked>
                    냉장고</td>
                                    <td height="14"><input type=checkbox name="etc9_exp01" value="에어컨" <?if($etc9_exp[1]):?> checked<?endif;?> checked>
                    에어컨</td>
                                    <td height="14"> <input type=checkbox name="etc9_exp02" value="TV" <?if($etc9_exp[2]):?> checked<?endif;?> checked>
                   TV</td>
                                    <td height="14"><input type=checkbox name="etc9_exp03" value="전자렌지" <?if($etc9_exp[3]):?> checked<?endif;?>>
                   전자렌지</td>
                                    <td height="14"><input type=checkbox name="etc9_exp04" value="세탁기" <?if($etc9_exp[4]):?> checked<?endif;?> checked>
                    세탁기</td>
                                    <td height="14"><input type=checkbox name="etc9_exp05" value="정수기" <?if($etc9_exp[5]):?> checked<?endif;?>>
                    정수기</td> </tr>

         <tr><td colspan="7" background="<?=$board_skin_path?>/img/line_dot04.gif" height="1"></td></tr>
         <tr bgcolor="#FFFFFF">
                                    <td height="12"><b>가구</b></td>
                                    <td height="12"><input type=checkbox name="etc9_exp06" value="붙박이장" <?if($etc9_exp[6]):?> checked<?endif;?> checked> 붙박이장</td>
                                    <td height="12"><input type=checkbox name="etc9_exp07" value="옷장" <?if($etc9_exp[7]):?> checked<?endif;?>> 옷장</td>
                                    <td height="12"><input type=checkbox name="etc9_exp08" value="책상" <?if($etc9_exp[8]):?> checked<?endif;?>> 책상</td>
                                    <td height="12"><input type=checkbox name="etc9_exp09" value="의자" <?if($etc9_exp[9]):?> checked<?endif;?>>   의자</td>
                                    <td height="12"> <input type=checkbox name="etc9_exp10" value="침대" <?if($etc9_exp[10]):?> checked<?endif;?>> 침대</td>
                                    <td height="12"><input type=checkbox name="etc9_exp11" value="신발장" <?if($etc9_exp[11]):?> checked<?endif;?>>  신발장</td> </tr>

             <tr><td colspan="7" background="<?=$board_skin_path?>/img/line_dot04.gif" height="1"></td></tr>
             <tr bgcolor="#FFFFFF">
             <td height="2"><b>주방/욕실</b></td>
             <td height="2"><input type=checkbox name="etc9_exp12" value="씽크대" <?if($etc9_exp[12]):?> checked<?endif;?> checked> 씽크대</td>
                                    <td height="2"> <input type=checkbox name="etc9_exp13" value="가스렌지" <?if($etc9_exp[13]):?> checked<?endif;?> checked> 가스렌지</td>
                                    <td height="2"><input type=checkbox name="etc9_exp14" value="주방후드" <?if($etc9_exp[14]):?> checked<?endif;?>> 주방후드</td>
                                    <td height="2"><input type=checkbox name="etc9_exp15" value="세면대" <?if($etc9_exp[15]):?> checked<?endif;?>> 세면대</td>
                                    <td height="2"> <input type=checkbox name="etc9_exp16" value="욕실환구" <?if($etc9_exp[16]):?> checked<?endif;?>>욕실환구</td>
                                    <td height="2"> <input type=checkbox name="etc9_exp17" value="비데" <?if($etc9_exp[17]):?> checked<?endif;?>>비데</td> </tr>

               <tr> <td colspan="7" background="<?=$board_skin_path?>/img/line_dot04.gif" height="1"></td></tr>
                                <tr bgcolor="#FFFFFF">
               <td height="10"><b>보안</b></td>
       <td height="10"><input type=checkbox name="etc9_exp18" value="CCTV" <?if($etc9_exp[18]):?> checked<?endif;?> checked>CCTV</td>
      <td height="10"><input type=checkbox name="etc9_exp19" value="방범창" <?if($etc9_exp[19]):?> checked<?endif;?>>방범창</td>
       <td height="10"> <input type=checkbox name="etc9_exp20" value="번호키" <?if($etc9_exp[20]):?> checked<?endif;?> checked> 번호키</td>
         <td height="10"> <input type=checkbox name="etc9_exp21" value="카드키" <?if($etc9_exp[21]):?> checked<?endif;?>> 카드키</td>
          <td height="10"> <input type=checkbox name="etc9_exp22" value="소화기" <?if($etc9_exp[22]):?> checked<?endif;?>> 소화기</td>
           <td height="10"><input type=checkbox name="etc9_exp23" value="주차시설" <?if($etc9_exp[23]):?> checked<?endif;?>> 주차시설</td></tr>

                   <tr><td colspan="7" background="<?=$board_skin_path?>/img/line_dot04.gif" height="1"></td> </tr>
                   <tr bgcolor="#FFFFFF">
                    <td height="10"><b>기타</b></td>
                     <td height="10"><input type=checkbox name="etc9_exp24" value="도시가스" <?if($etc9_exp[24]):?> checked<?endif;?> checked>도시가스</td>
                                    <td height="10"><input type=checkbox name="etc9_exp25" value="베란다" <?if($etc9_exp[25]):?> checked<?endif;?> checked>베란다</td>
                                    <td height="10"> <input type=checkbox name="etc9_exp26" value="방음" <?if($etc9_exp[26]):?> checked<?endif;?> checked> 방음</td>
                                    <td height="10"> <input type=checkbox name="etc9_exp27" value="채광" <?if($etc9_exp[27]):?> checked<?endif;?>>채광</td>
                                    <td height="10"> <input type=checkbox name="etc9_exp28" value="옥상" <?if($etc9_exp[28]):?> checked<?endif;?> checked>옥상</td>
                                    <td height="10"><input type=checkbox name="etc9_exp29" value="심야전기" <?if($etc9_exp[29]):?> checked<?endif;?>> 심야전기</td> </tr>

            <tr><td colspan="7" background="<?=$board_skin_path?>/img/line_dot04.gif" height="1"></td></tr>
             <tr bgcolor="#FFFFFF">
              <td><b>주변시설</b></td>
                                    <td><input type=checkbox name="etc9_exp30" value="할인마트" <?if($etc9_exp[30]):?> checked<?endif;?> checked>할인마트</td>
                                    <td><input type=checkbox name="etc9_exp31" value="편의점" <?if($etc9_exp[31]):?> checked<?endif;?>>  편의점</td>
                                    <td> <input type=checkbox name="etc9_exp32" value="식당" <?if($etc9_exp[32]):?> checked<?endif;?>>식당</td>
                                    <td> <input type=checkbox name="etc9_exp33" value="미용실" <?if($etc9_exp[33]):?> checked<?endif;?>>미용실</td>
                                    <td> <input type=checkbox name="etc9_exp34" value="세탁소" <?if($etc9_exp[34]):?> checked<?endif;?>>세탁소</td>
                                    <td><input type=checkbox name="etc9_exp35" value="정류장" <?if($etc9_exp[35]):?> checked<?endif;?>>정류장</td> </tr> </table> </td></tr>
                <? if ($is_link) { ?>
                <? for ($i=1; $i<=$g4[link_count]; $i++) { ?>
                <? } ?>
                <? } ?>
                <? if ($is_file) { ?>
                    <tr>
                        <td class=write_head width="84" height="103">
· 추가내용</td>
                    <td style='padding:5 0 5 0;' width="639" height="103">        <? if ($is_dhtml_editor) { ?>
            <?=cheditor2('wr_content', $content);?>
        <? } else { ?>
        <table width=100% cellpadding=0 cellspacing=0>
        <tr>
         <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=tx style='width:100%; word-break:break-all;' rows=5 itemname="내용" required 
        <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
        <? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_content', 'char_count'); </script><?}?>
        <? } ?>
                    </td>
                    </tr>
                <tr>
                    <td colspan="2" height=1 bgcolor=#e7e7e7 width="723"></td>
                </tr>
                <? } ?>
                <? if ($is_trackback) { ?>
                <tr>
                    <td class=write_head width="84" height="3">트랙백주소</td>
                    <td width="639" height="3"><input class='ed' size=50 name=wr_trackback itemname="트랙백" value="<?=$trackback?>">
                        <? if ($w=="u") { ?><input type=checkbox name="re_trackback" value="1">핑 보냄<? } ?></td>
                </tr>
                <tr>
                    <td colspan="2" height=1 bgcolor=#e7e7e7 width="723"></td>
                </tr>
                <? } ?>
                <? if ($is_guest) { ?>
                <tr>
                    <td class=write_head width="84"><img id='kcaptcha_image' /></td>
                    <td width="639"><input class='ed' type=input size=10 name=wr_key itemname="자동등록방지" required>  왼쪽의 글자를 입력하세요.</td>
                </tr>
                <tr>
                    <td colspan="2" height=1 bgcolor=#e7e7e7 width="723"></td>
                </tr>
                <? } ?>
            </table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
    <td width="100%" align="center" valign="top" style="padding-top:30px;">
        <input type=image id="btn_submit" src="<?=$board_skin_path?>/img/btn_write.gif" border=0 accesskey='s'> 
        <a href="./board.php?bo_table=<?=$bo_table?>"><img id="btn_list" src="<?=$board_skin_path?>/img/btn_list.gif" border=0></a></td>
</tr>
</table>
        </td>
</tr></table>
</form>


<script type="text/javascript" src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
<script type="text/javascript">
<?
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
if ($is_admin) 
{
    echo "
    if (typeof(document.fwrite.ca_name) != 'undefined')
    {
        document.fwrite.ca_name.options.length += 1;
        document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].value = '공지';
        document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].text = '공지';
    }";
} 
?>
with (document.fwrite) 
{
    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_submit(f) 
{
    /*
    var s = "";
    if (s = word_filter_check(f.wr_subject.value)) {
        alert("제목에 금지단어('"+s+"')가 포함되어있습니다");
        return false;
    }
    if (s = word_filter_check(f.wr_content.value)) {
        alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
        return false;
    }
    */
    if (document.getElementById('char_count')) {
        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 false;
            } 
            else if (char_max > 0 && char_max < cnt) {
                alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
                return false;
            }
        }
    }
    if (document.getElementById('tx_wr_content')) {
        if (!ed_wr_content.outputBodyText()) { 
            alert('내용을 입력하십시오.'); 
            ed_wr_content.returnFalse();
            return false;
        }
    }
    <?
    if ($is_dhtml_editor) echo cheditor3('wr_content');
    ?>
    var subject = "";
    var content = "";
    $.ajax({
        url: "<?=$board_skin_path?>/ajax.filter.php",
        type: "POST",
        data: {
            "subject": f.wr_subject.value,
            "content": f.wr_content.value
        },
        dataType: "json",
        async: false,
        cache: false,
        success: function(data, textStatus) {
            subject = data.subject;
            content = data.content;
        }
    });
    if (subject) {
        alert("제목에 금지단어('"+subject+"')가 포함되어있습니다");
        f.wr_subject.focus();
        return false;
    }
    if (content) {
        alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
        if (typeof(ed_wr_content) != "undefined") 
            ed_wr_content.returnFalse();
        else 
            f.wr_content.focus();
        return false;
    }
    if (!check_kcaptcha(f.wr_key)) {
        return false;
    }
    document.getElementById('btn_submit').disabled = true;
    document.getElementById('btn_list').disabled = true;
    <?
    if ($g4[https_url])
        echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';";
    else
        echo "f.action = './write_update.php';";
    ?>
    
    return true;
}
</script>
<script type="text/javascript" src="<?="$g4[path]/js/board.js"?>"></script>
<script type="text/javascript"> window.onload=function() { drawFont(); } </script>

이 질문에 댓글 쓰기 :

답변 3

그누4를 쓰시나보군요 기본스킨에서는 아마 잘 될겁니다
게시판도 계속 업그레이드를 하기때문에 예전 스킨이랑 안맞는 부분이 있을 수 있습니다.
그부분을 찾아 고쳐주시면 되는데 하시다 잘안되면 그누4에서 검색하면 아마 나올것 같습니다.
참고로 wr_10까지가 기본적으로 사용가능하고 그이상을 쓰려면 필드생성과 소스수정을 해주셔야 합니다.
글쎄요... 그것은 다른 문제가 해결되고 나서 관련자료를 찾아보고 난 다음에 하는 것이 아닐까요?
옛날게시판인듯한데 wr값이없다고 나오는건

질답찾아보시면 나와요ㅎ

If문에서 사용하지않는것이 드러잇어서...

그이상 여분필드  추가도 검색하면나와용
답변을 작성하시기 전에 로그인 해주세요.
전체 61,332
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT