게시판 내용을 다 쓰면 쓰기 버튼이 에러가 나요 > 그누4 질문답변

그누4 질문답변

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

게시판 내용을 다 쓰면 쓰기 버튼이 에러가 나요 정보

게시판 내용을 다 쓰면 쓰기 버튼이 에러가 나요

본문

게시판 내용을 다 쓰고  쓰기 버튼을 누르면 에러가 나요
꼭좀 도와 주세요 ㅠ


오류 주소 : http://littlefoxkorea.com/gnuboard4/bbs/write.php?bo_table=style



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

include_once("$g4[path]/lib/cheditor4.lib.php");

if ($w == 'r') $content = '';

if($w=='u'){
$write[wr_1] = explode("│─│",$write[wr_1]);
$write[wr_4] = explode("│─│",$write[wr_4]);
$write[wr_5] = explode("-",$write[wr_5]);
$write[wr_6] = explode("-",$write[wr_6]);
$write[wr_7] = explode("-",$write[wr_7]);
$write[wr_8] = explode("-",$write[wr_8]);
}
?>

<script src="<?=$g4[editor_path]?>/cheditor.js"></script>
<?=cheditor1('wr_content', $write[wr_content]);?>

<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=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 cellspacing="0" cellpadding="0" width="577" align="center" border="0">
  <tbody>
    <tr>
      <td valign="top" height="26"><span style="FONT-SIZE: 9pt"><img height="26" src="/images/good_entry_tit.gif" width="577"></span></td>
    </tr>
    <tr valign="center">
      <td valign="top"><p>&nbsp;</p></td>
    </tr>
    <tr valign="center">
      <td valign="top"><table cellspacing="2" cellpadding="0" width="577" border="0">
        <tbody>
          <tr valign="center">
            <td valign="top"><span style="FONT-SIZE: 9pt"><img height="25" src="/images/old_tit1.gif" width="400" /></span> </td>
          </tr>
          <tr valign="center">
            <td valign="top">

<table cellspacing="0" width="577" border="1" bordercolor="#9FC4E2" bordercolordark="white" bordercolorlight="#9FC4E2">
<? if ($is_name) { ?>
<tr>
<td style='padding-left:20px; height:30px;'>· 이름</td>
<td><input class=ed maxlength=20 size=15 name=wr_name itemname="이름" required value="<?=$name?>"></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>

<? if ($is_password) { ?>
<tr>
<td style='padding-left:20px; height:30px;'>· 패스워드</td>
<td><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></td></tr>
<? } ?>

<? if ($is_email) { ?>
<tr>
<td style='padding-left:20px; height:30px;'>· 이메일</td>
<td><input class=ed maxlength=100 size=50 name=wr_email email itemname="이메일" value="<?=$email?>"></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>

<? if ($is_homepage) { ?>
<tr>
<td style='padding-left:20px; height:30px;'>· 홈페이지</td>
<td><input class=ed size=50 name=wr_homepage itemname="홈페이지" value="<?=$homepage?>"></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>

<tr>
<td width=120 style='padding-left:20px; height:30px;'>· 옵션</td>
<td><? if ($is_notice) { ?><input type=checkbox name=notice value="1" <?=$notice_chdjecked?>>공지&nbsp;<? } ?>
<?/* if ($is_html) { ?><INPUT onclick="html_auto_br(this);" type=checkbox value="<?=$html_value?>" name="html" <?=$html_checked?>><span class=w_title>HTML</span>&nbsp;<? } */?>
<input type='hidden' name='html' value='html1'>
<? if ($is_secret) { ?><input type=checkbox value="secret" name="secret" <?=$secret_checked?>><span class=w_title>비밀글</span>&nbsp;<? } ?>
<? if ($is_mail) { ?><input type=checkbox value="mail" name="mail" <?=$recv_email_checked?>>답변메일받기&nbsp;<? } ?></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>

<? if ($is_category) { ?>
<tr>
<td style='padding-left:20px; height:30px;'>· 분류</td>
<td><select name=ca_name required itemname="분류"><option value="">선택하세요<?=$category_option?></select></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>

 
  <tr>
                <td width="128" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 제 &nbsp;&nbsp;&nbsp;품 &nbsp;&nbsp;명</span></div></td>
                <td width="443" bgcolor="#fafafa" height="25"><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;
                          <input name="wr_subject" class="box" id="title"
style="BACKGROUND-COLOR: #ffffff" value="<?=$subject?>" size="46" maxlength="50" itemname="상품명" required />
                </span></td>
              </tr>
              <tr>
                <td width="128" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 제 조 &nbsp;회 사</span></div></td>
                <td width="443" bgcolor="#fafafa" height="25"><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;
                          <input name="wr_1[0]" class="box" id="title"
style="BACKGROUND-COLOR: #ffffff" value="<?=$write[wr_1][0]?>"  size="46" maxlength="50" itemname="제조회사" required />
                </span></td>
              </tr>
              <tr>
                <td width="128" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 제 품 &nbsp;사 양</span></div></td>
                <td width="443" bgcolor="#fafafa" height="25"><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;
                          <input name="wr_1[1]" class="box" id="title"
style="BACKGROUND-COLOR: #ffffff" value="<?=$write[wr_1][1]?>" size="46" maxlength="20" itemname="제품사양" required />
                </span></td>
              </tr>
              <tr>
                <td width="128" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 제 작 &nbsp;년 도</span></div></td>
                <td width="443" bgcolor="#fafafa" height="25"><p>&nbsp;&nbsp;&nbsp;
                            <select name="wr_1[2]" size="1" itemname="제작년도" required>
                              <option value="선택">선택</option>
                              <?for($i=1990; $i<=date("Y");$i++){
                              if($write[wr_1][2]==$i){
                              $cked = "selected";
                              }
                              echo "<option value=$i $cked>$i</option>";
                             
                              }?>
                            </select>
                </p></td>
              </tr>
              <tr>
                <td width="128" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 판 매 &nbsp;가 격</span></div></td>
                <td width="443" bgcolor="#fafafa" height="25"><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;
                          <input name="wr_1[3]" class="box" id="title"
style="BACKGROUND-COLOR: #ffffff; TEXT-ALIGN: right" value="<?=$write[wr_1][3]?>" size="10" maxlength="10"
itemname="가격" required />
                  원</span></td>
              </tr>
              <tr>
                <td width="128" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 물 품 &nbsp;상 태</span></div></td>
                <td width="443" bgcolor="#fafafa"><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="FONT-SIZE: 9pt">
                  <input class="box" id="title"
style="BACKGROUND-COLOR: #ffffff" name="wr_1[4]" value="<?=$write[wr_1][4]?>" itemname="상품코드" required size="46" />
                </span></p></td>
              </tr>
              <tr>
                <td width="128" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> A/S &nbsp;여 &nbsp;부</span></div></td>
                <td width="443" bgcolor="#fafafa"><span style="FONT-SIZE: 9pt">&nbsp;</span>&nbsp;
                        <input type="radio" value="유" name="wr_2" <?=($write[wr_2]=="유")?"checked":""?>/>
                  <span style="FONT-SIZE: 9pt"> 유 &nbsp;&nbsp;
                    <input
type="radio" value="무" name="wr_2" <?=($write[wr_2]=="무")?"checked":""?>/>
                    무</span></td>
              </tr>
              <tr>
                <td width="128" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 교 육 &nbsp;여 부</span></div></td>
                <td width="443" bgcolor="#fafafa"><p>&nbsp;&nbsp;
                            <input type="radio" value="유" name="wr_3" <?=($write[wr_3]=="유")?"checked":""?>/>
                  <span style="FONT-SIZE: 9pt"> 예 &nbsp;&nbsp;
                    <input
type="radio" value="무" name="wr_3" <?=($write[wr_2]=="무")?"checked":""?>/>
                    아니오</span></p></td>
              </tr>
              <tr>
                <td width="573" background="/images/line_bg1.gif" colspan="2"
height="1"></td>
              </tr>
            </table></td>
          </tr>
          <tr valign="center">
            <td valign="top" height="10"><span style="FONT-SIZE: 9pt">&nbsp;</span></td>
          </tr>
          <tr valign="center">
            <td valign="top"><span style="FONT-SIZE: 9pt"><img height="25"
src="/images/old_tit2.gif" width="400" /></span> </td>
          </tr>
          <tr valign="center">
            <td valign="top"><table cellspacing="0" width="577" border="1" bordercolor="#9FC4E2" bordercolordark="white" bordercolorlight="#9FC4E2">
              <tbody>
                <tr>
                  <td width="130" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 제품이미지1</span></div></td>
                  <td width="441" bgcolor="#fafafa" height="25"><table cellspacing="0" cellpadding="0" width="400" border="0">
                    <tbody>
                      <tr>
                        <td width="21"><span style="FONT-SIZE: 9pt">&nbsp;</span></td>
                        <td width="379"><input class="box" type="file" name='bf_file[]' />
                        <?if($file[0][href]){
                        echo "<input type='checkbox' name='bf_file_del[0]' value='1'><a href='{$file[0][href]}'>{$file[0][source]}({$file[0][size]})</a> 파일 삭제";
                        }
                        ?>
                                  <span style="FONT-SIZE: 9pt">&nbsp; </span></td>
                      </tr>
                    </tbody>
                  </table></td>
                </tr>
                <tr>
                  <td width="130" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 제품이미지2</span></div></td>
                  <td width="441" bgcolor="#fafafa"><table cellspacing="0" cellpadding="0" width="400" border="0">
                    <tbody>
                      <tr>
                        <td width="21"><span style="FONT-SIZE: 9pt">&nbsp;</span></td>
                        <td width="379"><input class="box" type="file" name='bf_file[]' />
                        <?if($file[1][href]){
                        echo "<input type='checkbox' name='bf_file_del[1]' value='1'><a href='{$file[1][href]}'>{$file[1][source]}({$file[1][size]})</a> 파일 삭제";
                        }
                        ?>
                                  <span style="FONT-SIZE: 9pt">&nbsp; </span></td>
                      </tr>
                    </tbody>
                  </table></td>
                </tr>
                <tr>
                  <td width="130" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 제품이미지3</span></div></td>
                  <td width="441" bgcolor="#fafafa"><table cellspacing="0" cellpadding="0" width="400" border="0">
                    <tbody>
                      <tr>
                        <td width="21"><span style="FONT-SIZE: 9pt">&nbsp;</span></td>
                        <td width="379"><input class="box" type="file" name='bf_file[]' />
                        <?if($file[2][href]){
                        echo "<input type='checkbox' name='bf_file_del[2]' value='1'><a href='{$file[2][href]}'>{$file[2][source]}({$file[2][size]})</a> 파일 삭제";
                        }
                        ?>
                                  <span style="FONT-SIZE: 9pt">&nbsp; </span></td>
                      </tr>
                    </tbody>
                  </table></td>
                </tr>
                <tr>
                  <td width="130" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 제품이미지4</span></div></td>
                  <td width="441" bgcolor="#fafafa"><table cellspacing="0" cellpadding="0" width="400" border="0">
                    <tbody>
                      <tr>
                        <td width="20"><span style="FONT-SIZE: 9pt">&nbsp;</span></td>
                        <td width="380"><input class="box" type="file" name='bf_file[]' />
                        <?if($file[3][href]){
                        echo "<input type='checkbox' name='bf_file_del[3]' value='1'><a href='{$file[3][href]}'>{$file[3][source]}({$file[3][size]})</a> 파일 삭제";
                        }
                        ?>
                                  <span style="FONT-SIZE: 9pt">&nbsp; </span></td>
                      </tr>
                    </tbody>
                  </table></td>
                </tr>
                <tr>
                  <td width="130" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="178"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 특 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;징</span></div></td>
                  <td width="441" bgcolor="#fafafa" height="178"><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="FONT-SIZE: 9pt">
                    <?=cheditor2('fwrite', 'wr_content', '100%', '350');?>
                  </span></p></td>
                </tr>
                <tr>
                  <td width="130" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 회 &nbsp;&nbsp;&nbsp;&nbsp;사 &nbsp;&nbsp;&nbsp;명</span></div></td>
                  <td width="441" bgcolor="#fafafa"><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="FONT-SIZE: 9pt">
                    <input class="box" id="title"
style="BACKGROUND-COLOR: #ffffff" name="wr_4[]" value="<?=$write[wr_4][0]?>" itemname="회사명" required size="46" />
                  </span></p></td>
                </tr>
                <tr>
                  <td width="130" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 담 &nbsp;&nbsp;&nbsp;&nbsp;당 &nbsp;&nbsp;&nbsp;자</span></div></td>
                  <td width="441" bgcolor="#fafafa" height="25"><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="FONT-SIZE: 9pt">
                    <input name="wr_4[]" class="box" id="title"
style="BACKGROUND-COLOR: #ffffff" value="<?=$write[wr_4][1]?>" size="20" maxlength="10" itemname="담당자" required />
                  </span></p></td>
                </tr>
                <tr>
                  <td width="130" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 전 &nbsp;화 &nbsp;번 &nbsp;호</span></div></td>
                  <td width="441" bgcolor="#fafafa"><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="FONT-SIZE: 9pt">
                    <input class="box" id="title"
style="BACKGROUND-COLOR: #ffffff" name="wr_5[]" value="<?=$write[wr_5][0]?>" itemname="전화번호" required size="8" maxlength=3 />
                    -
                    <input class="box" id="title"
style="BACKGROUND-COLOR: #ffffff" name="wr_5[]" value="<?=$write[wr_5][1]?>" itemname="전화번호" required size="8" maxlength=4/>
                    &nbsp;-
                    <input class="box" id="title"
style="BACKGROUND-COLOR: #ffffff" name="wr_5[]" value="<?=$write[wr_5][2]?>" itemname="전화번호" required size="8" maxlength=4/>
                  </span></p></td>
                </tr>
                <tr>
                  <td width="130" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 팩 &nbsp;스 &nbsp;번 &nbsp;호</span></div></td>
                  <td width="441" bgcolor="#fafafa"><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="FONT-SIZE: 9pt">
                    <input class="box" id="title"
style="BACKGROUND-COLOR: #ffffff" name="wr_6[]" value="<?=$write[wr_6][0]?>" itemname="팩스번호" required size="8" maxlength=3/>
                    -
                    <input class="box" id="title"
style="BACKGROUND-COLOR: #ffffff" name="wr_6[]" value="<?=$write[wr_6][1]?>" itemname="팩스번호" required size="8"  maxlength=4/>
                    &nbsp;-
                    <input class="box" id="title"
style="BACKGROUND-COLOR: #ffffff" name="wr_6[]" value="<?=$write[wr_6][2]?>" itemname="팩스번호" required size="8" maxlength=4/>
                  </span></p></td>
                </tr>
                <tr>
                  <td width="130" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 핸 &nbsp;&nbsp;&nbsp;&nbsp;드&nbsp;&nbsp;&nbsp;&nbsp;폰</span></div></td>
                  <td width="441" bgcolor="#fafafa"><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="FONT-SIZE: 9pt">
                    <input name="wr_7[]" class="box" id="title"
style="BACKGROUND-COLOR: #ffffff" value="<?=$write[wr_7][0]?>" size="8" maxlength="3" itemname="핸드폰" required />
                    -
                    <input name="wr_7[]" class="box" id="title"
style="BACKGROUND-COLOR: #ffffff" value="<?=$write[wr_7][1]?>" size="8" maxlength="4" itemname="핸드폰" required />
                    &nbsp;-
                    <input name="wr_7[]" class="box" id="title"
style="BACKGROUND-COLOR: #ffffff" value="<?=$write[wr_7][2]?>" size="8" maxlength="4" itemname="핸드폰" required />
                  </span></p></td>
                </tr>
                <tr>
                  <td width="130" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 우 &nbsp;편 &nbsp;번 &nbsp;호</span></div></td>
                  <td width="441" bgcolor="#fafafa"><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="FONT-SIZE: 9pt">
                    <input name="zip1" class="box" id="title"
style="BACKGROUND-COLOR: #ffffff" value="<?=$write[wr_8][0]?>" size="8" maxlength="3" itemname="우편번호" required />
                    -
                    <input name="zip2" class="box" id="title"
style="BACKGROUND-COLOR: #ffffff" value="<?=$write[wr_8][1]?>" size="8" maxlength="3" itemname="우편번호" required />
                    &nbsp;</span>
                              <input name="button" type="button" class="button" onclick="win_zip('fwrite', 'zip1', 'zip2', 'wr_9', 'wr_9');" value="우편번호찾기" />
                  </p></td>
                </tr>
                <tr>
                  <td width="130" background="/images/bbs_tit_bg.jpg" bgcolor="#DDEDFA" height="30"><div align="center"><span style="FONT-SIZE: 9pt"><img height="11"
src="/images/icon.gif" width="11" /> 주 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;소</span></div></td>
                  <td width="441" bgcolor="#fafafa"><span style="FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;
                            <input class="box" id="title"
style="BACKGROUND-COLOR: #ffffff" name="wr_9" value="<?=$write[wr_9]?>" itemname="주소" required size="56" />
                  </span></td>
                </tr>
                <tr>
                  <td width="573" background="/images/line_bg1.gif" colspan="2"
height="1"></td>
                </tr>
                <? if ($is_norobot) { ?>
<tr>
    <td style='padding-left:20px; height:30px;'>· <?=$norobot_str?></td>
    <td><input class=ed type=input size=10 name=wr_key itemname="자동등록방지" required>&nbsp;&nbsp;* 왼쪽의 글자중 <font color="red">빨간글자만</font> 순서대로 입력하세요.</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<tr>
    <td width="100%" align="center" valign="top" colspan=2>
        <input type=image id="btn_submit" src="<?=$board_skin_path?>/img/btn_write.gif" border=0 accesskey='s'>&nbsp;
        <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>
              </tbody>
            </table></td>
          </tr>
          <tr valign="center">
            <td><span style="FONT-SIZE: 9pt">&nbsp;</span></td>
          </tr>
        </tbody>
      </table></td>
    </tr>
  </tbody>
</table>
</FORM>
<script language="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_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;
        }
    }

    <?=cheditor3('wr_content');?>

    f.action = "./write_update.php";
    f.submit();
}
</script>

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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