write.skin에서 글쓰기 버튼이 안먹히는 이유 질문드립니다. > 그누4 질문답변

그누4 질문답변

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

write.skin에서 글쓰기 버튼이 안먹히는 이유 질문드립니다. 정보

write.skin에서 글쓰기 버튼이 안먹히는 이유 질문드립니다.

본문

write.skin입니다. 글작성하고 '글쓰기'버튼 클릭하면 아무반응이없습니다.
'목록'버튼은 먹히는데요..
어느부분이 잘못된 것인지요..??


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

?><title>for</title>
<style type="text/css">
<!--
.style1 {
 font-size: 12px;
 font-weight: bold;
 color: #FFFFFF;
}
-->
</style>
<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 language="javascript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대

function sel_math(){
 f=document.fwrite;
 f.wr_35.value = Number(f.wr_37.value)+Number(f.wr_39.value)+Number(f.wr_41.value)+Number(f.wr_43.value);
}

function sel_math(){
 f=document.fwrite;
 f.wr_35.value = Number(f.wr_37.value)+Number(f.wr_39.value)+Number(f.wr_41.value)+Number(f.wr_43.value);
}
</script>
</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 cellpadding=0 cellspacing=0><tr><td>


<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;">:: 계산 ::</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=100% cellpadding="0" cellspacing="0">
   <? if ($is_category && $is_admin) { ?>
   <tr bgcolor="#FFFFFF">
    <td width="100" align="center">카테고리</td>
    <td><select name=ca_name required0. itemname="현재상황"><option value="">선택하세요<?=$category_option?>                        </option>
</select></td>
            </tr>
   <? } ?>      
            </table>
<table width="100%" align=center cellpadding=0 cellspacing=0>
<td>
  <table width="100%" cellpadding=0 cellspacing=0>
   <tr>
    <td valign="top"></td>
   </tr>
  </table>  </td>
 <tr>
  <td>
  <table width="100%" cellpadding=0 cellspacing=0>
    <tr bgcolor="#FFFFFF">
    <td valign="top"></td>
   </tr>
  </table>  </td>
 </tr>
 <tr>
  <td>
  <table width="100%" cellpadding=0 cellspacing=0>
   <tr bgcolor="#FFFFFF">
    <td valign="top"><table width="100%" align=center cellpadding=10 cellspacing=1 bgcolor="#cccccc"><tr bgcolor="#FFFFFF"><td><table width="100%" align=center cellpadding=10 cellspacing=1 bgcolor="#cccccc">
                 
                  <tr bgcolor="#FFFFFF">
                    <td width="100" bgcolor="#EEEEEE">합계</td>
                    <td><input class="field" name=wr_35 size=15 itemname="합계" value="<?=$write[wr_35]?>" readonly title='A,B,C를 입력하시면 자동으로 입력됩니다.' />
                      원</td>
                  </tr>
                 
                                  
                  <tr bgcolor="#FFFFFF">
                    <td colspan="2">
                    <table width="100%" cellpadding="5" cellspacing="1" bgcolor="#FF9966">
                    <tr bgcolor="#FFFFFF">
                    <td width="100" bgcolor="#EEEEEE" align="center">A</td>
                    <td><select name=wr_37 itemname="선택">
            <option value="">=선택=
                        </option>
<option onblur="javascript:sel_math();" value="10000" <?if($wr_37 == "10000") echo "selected"; ?>>10,000
                        </option>
<option onblur="javascript:sel_math();" value="20000" <?if($wr_37 == "20000") echo "selected"; ?>>20,000
                        </option>
<option onblur="javascript:sel_math();" value="30000" <?if($wr_37 == "30000") echo "selected"; ?>>30,000              
                        </option>
<option onblur="javascript:sel_math();" value="40000" <?if($wr_37 == "40000") echo "selected"; ?>>40,000
                        </option>
<option onblur="javascript:sel_math();" value="50000" <?if($wr_37 == "50000") echo "selected"; ?>>50,000</option>
            </select>
                      원,</td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td width="100" bgcolor="#EEEEEE" align="center">B</td>
                    <td><select name=wr_39 itemname="선택">
            <option value="">=선택=
                        </option>
<option onblur="javascript:sel_math();" value="10000" <?if($wr_39 == "10000") echo "selected"; ?>>10,000
                        </option>
<option onblur="javascript:sel_math();" value="20000" <?if($wr_39 == "20000") echo "selected"; ?>>20,000
                        </option>
<option onblur="javascript:sel_math();" value="30000" <?if($wr_39 == "30000") echo "selected"; ?>>30,000              
                        </option>
<option onblur="javascript:sel_math();" value="40000" <?if($wr_39 == "40000") echo "selected"; ?>>40,000
                        </option>
<option onblur="javascript:sel_math();" value="50000" <?if($wr_39 == "50000") echo "selected"; ?>>50,000</option>
            </select>
                      원,</td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td width="100" bgcolor="#EEEEEE" align="center">C</td>
                    <td><input class="field" name=wr_41 style="width:120;" itemname="잔금" onblur="javascript:sel_math();" value="<?=$write[wr_41]?>" />
                      원,</td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td width="100" bgcolor="#EEEEEE" align="center">D</td>
                    <td><input class="field" name=wr_43 style="width:120;" itemname="잔금" onblur="javascript:sel_math();" value="<?=$write[wr_43]?>" />
                      원,</td>
                  </tr>
                 
                 
                    </table></td>
                  </tr>
                 
                </table></td>
    </tr>
    </table>    
                </td>
       </tr>
          </table> 
             </td>
             </tr>
 <tr><td></td></tr>
 
 <tr><td height="20"></td></tr>
 <tr>
  <td>

  <table width="100%" align=center cellpadding=10 cellspacing=1 bgcolor="CCCCCC">
   <tr bgcolor="#FFFFFF">
    <td width="100" align="center">문의내용 </td>
    <td>
    <? if (!$is_dhtml_editor) { ?>
    <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/btn_up.gif"></span>
      <span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/btn_init.gif"></span>
      <span style="cursor: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/btn_down.gif"></span></td>
     <td width=50% align=right><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
    </tr>
    </table><? } ?><? if ($write_min || $write_max) { ?>
    <script language="javascript"> check_byte('wr_content', 'char_count'); </script><?}?><textarea id="wr_content" name="wr_content" class=tx style='width:100%; word-break:break-all;' rows=15 itemname="내용" required<? if ($is_dhtml_editor) echo ' geditor '; ?><? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
    </td>
   </tr>
   <? if ($is_norobot) { ?>
   <tr bgcolor="#FFFFFF">
    <td>
    <?//=$norobot_str?>
    <?
    // 이미지 생성이 가능한 경우 자동등록체크코드를 이미지로 만든다.
    if (function_exists("imagecreate")) {
     echo "<img src='$g4[bbs_path]/norobot_image.php' border='0'>";
     $norobot_msg = "* 왼쪽의 자동등록방지 코드를 입력하세요.";
    }
    else {
     echo $norobot_str;
     $norobot_msg = "* 왼쪽의 글자중 <FONT COLOR='red'>빨간글자</font>만 순서대로 입력하세요.";
    }
    ?></td>
    <td><input class='field' type=input size=10 name=wr_key itemname="자동등록방지" required>  <?=$norobot_msg?></td>
   </tr>
   <? } ?>
  </table>  </td>
 </tr>
</table>

</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>

</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 (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;
            }
            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;
        }
    }

    var geditor_status = document.getElementById("geditor_wr_content_geditor_status");

    if (geditor_status != null)
    {
        if (geditor_status.value == "TEXT") {
            f.html.value = "html2";
        }
        else if (geditor_status.value == "WYSIWYG") {
            f.html.value = "html1";
        }
    }

    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';";
    ?>
    f.submit();
}
</script>

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

댓글 전체

혹시 브라우저가 구글 크롬인가요? 만약 그렇다면..

글 쓰는 <form>에서

action="javascript:fwrite_check(document.fwrite);"

이걸 다음과 같이 바꿔보세요.

onsubmit="return fwrite_check(this);"
움.. 이거와 별개로 때론 보안 프로그램들.. 백신 프로그램들과 충돌이 생겨서 활성화되지 않은 경우도 있습니다.
이거 정리해서 팁란에 한 번 올려봐야겠네요. 저만 그런거 아니었네요(특정 싸이트에서 몇몇 경우 뿐이지만).
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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