글쓰기버튼이 안되요.하단에는 페이지오류가 있습니다.? > 그누4 질문답변

그누4 질문답변

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

글쓰기버튼이 안되요.하단에는 페이지오류가 있습니다.? 정보

글쓰기버튼이 안되요.하단에는 페이지오류가 있습니다.?

본문

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


  include $board_skin_path."/setup.php";

  // include_once("$g4[path]/lib/cheditor.lib.php");
    include_once ("$g4[path]/lib/cheditor4.lib.php");
echo"<script src='{$g4[cheditor4_path]}/cheditor.js'></script>";
  echo cheditor1('wr_content', '100%', '150');
 


if ($w == '') {
    $write[wr_1] = date("Y-m-d H:i", strtotime($g4[time_ymd]." 00:00") + 60*60*24);
    $write[wr_2] = date("Y-m-d H:i", strtotime($write[wr_1]) + 60*60*24*7);

    $write[wr_3] = $board[bo_1]; // 참여 포인트 기본값
    $write[wr_4] = $board[bo_2]; // 입찰 최소 포인트 기본값
    $write[wr_5] = $board[bo_3]; // 입찰 최대 포인트 기본값
    $write[wr_6] = $board[bo_4]; // 하루 참여 횟수 기본값
    $write[wr_7] = 0;
    $write[wr_8] = 0;
}


if($is_admin !='super'){
if($write[wr_8]=='2' ||$write[wr_8]=='3'){
echo "<script>window.alert('경매가 종료/유찰되었을 경우 내용을 수정할 수 없습니다.');history.go(-1);</script>";
exit();
}
}

if($w !=""){
$q=explode("|",$subject);
$subject_text=$q[0];
$subject_text_2=$q[1];
$now_buy_price=$q[2];
$item_1=stripslashes($q[3]);
$item_2=stripslashes($q[4]);
$item_3=stripslashes($q[5]);
$item_4=stripslashes($q[6]);
$item_5=stripslashes($q[7]);
$item_6=stripslashes($q[8]);
$item_7=stripslashes($q[9]);
$item_8=stripslashes($q[10]);
$item_9=stripslashes($q[11]);
$item_10=stripslashes($q[12]);
$item_11=stripslashes($q[13]);
$item_12=stripslashes($q[14]);
$item_13=stripslashes($q[15]);
$item_14=stripslashes($q[16]);
$item_15=stripslashes($q[17]);
$item_16=stripslashes($q[18]);
$item_17=stripslashes($q[19]);
$item_18=stripslashes($q[20]);
$item_19=stripslashes($q[21]);
$item_20=stripslashes($q[22]);
$item_21=stripslashes($q[23]);
$item_22=stripslashes($q[24]);
$item_23=stripslashes($q[25]);
$item_24=stripslashes($q[26]);
$item_25=stripslashes($q[27]);
$item_26=stripslashes($q[28]);
$item_27=stripslashes($q[29]);
$item_28=stripslashes($q[30]);
$item_29=stripslashes($q[31]);
$item_30=stripslashes($q[32]);
}



//양식값을 선택하면 웹에디터에 포함
if($select_type != ""){
$sql_type="select * from g4_auction_memo where au_id={$select_type} ";
$result_type=mysql_query($sql_type);
$memo=mysql_fetch_array($result_type);



}



?>
<style type="text/css">
.write_head { padding:5px 0 5px 20px; height:30px; background-color:#F9F9F9; width:130px; font-weight:bold; color:#000; font-family:dotum; line-height:15px; }
.write_main { padding:5px 0 5px 10px; }
.write_size { color:#999999; font-size:11px; font-weight:normal; margin-left:10px; }
.style1 {color: #660000}
</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?>">
<input type=hidden name=wr_7    value="<?=$write[wr_7]?>">
<input type=hidden name=wr_8    value="<?=$write[wr_8]?>">
<input type=hidden name=wr_9    value="<?=$write[wr_9]?>">
<input type=hidden name=wr_10    value="<?=$write[wr_10]?>">

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

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<colgroup width=100>
<colgroup width=''>
<tr><td colspan=2 height=2 bgcolor="#0A7299"></td></tr>
<tr><td style='padding-left:20px' colspan=2 height=38 bgcolor="#FBFBFB"><strong><?=$title_msg?></strong></td></tr>
<tr><td colspan="2" style="background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x; height:3px;"></td></tr>
<? if ($is_name) { ?>
<tr>
    <td class=write_head>· 이름</td>
    <td class=write_main><input class='field_pub_01' 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 class=write_head>· 패스워드</td>
    <td class=write_main><input class='field_pub_01' 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 class=write_head>· 이메일</td>
    <td class=write_main><input class='field_pub_01' 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 class=write_head>· 홈페이지</td>
    <td class=write_main><input class='field_pub_01' size=50 name=wr_homepage itemname="홈페이지" value="<?=$homepage?>"></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>

<? if ($is_notice || $is_html || $is_secret || $is_mail) { ?>
<tr>
    <td class=write_head>· 옵션</td>
    <td class=write_main><? if ($is_notice) { ?><input type=checkbox name=notice value="1" <?=$notice_checked?>>공지&nbsp;<? } ?>
        <? 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=w_title>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=#e7e7e7></td></tr>
<? } ?>

<? if ($is_category) { ?>
<tr>
    <td class=write_head>· 서비스지역</td>
    <td class=write_main><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 class=write_head >· 제공업체</td>
    <td class=write_main>
        <input name="wr_subject_2" type="text" class="field_pub_01" id="wr_subject_1" style="width:200;" value="<?=$subject_text_2?>
" itemname="제공업체" required="required" />
    </td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head>· 제목</td>
    <td class=write_main>
        <input name="wr_subject" type="text" class="field_pub_01" id="wr_subject" style="width:100%;" value="<?=$subject_text?>
" itemname="제목" required="required" /></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>

<?if($setup[au_now_buy]=='Y'){?>
<tr>
    <td class=write_head style="height:25px;">· 즉구금액</td>
    <td class=write_main>
        <input class="field_pub_01" style="width:100;" name=now_buy_price id="now_buy_price" value="<?=$now_buy_price?>">원
        </td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<?}////즉구신청?>


<tr>
    <td class=write_head>· 경매시작일시</td>
    <td class=write_main>
        <input type=text size=20 name=wr_1 id=wr_1 value="<?=$write[wr_1]?>" itemname="경매시작일시" required>
        <input type=button value="오늘자정" onclick="document.getElementById('wr_1').value='<?=date("Y-m-d 00:00", $g4[server_time]+60*60*24)?>';">
    </td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head>· 경매종료일시</td>
    <td class=write_main>
        <input type=text size=20 name=wr_2 id=wr_2 value="<?=$write[wr_2]?>" itemname="경매종료일시" required>
        <input name="button" type="button"  onclick="end_date(10)"  value="10일" />
        <input name="button" type="button"  onclick="end_date(20)" value="20일"/>
        <input name="button" type="button"  onclick="end_date(30)" value="30일"/>
        [세부날짜 변경시 직접입력]    </td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head>· 참여포인트</td>
    <td class=write_main>
        <input type=hidden size=7 name=wr_3  value="<?=$setup[au_point1]?>" >
<?=$setup[au_point1]?>&nbsp;

포인트
    </td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head>· 입찰포인트</td>
    <td class=write_main>
        <input type=text size=7 name=wr_4 id=wr_4 value="<?=$write[wr_4]?>" itemname="입찰 최소 포인트" required numeric> ~
        <input type=text size=7 name=wr_5 id=wr_5 value="<?=$write[wr_5]?>" itemname="입찰 최대 포인트" required numeric>
        포인트
    [경매입찰 최저 시작가와 최고가 기준치 설정] </td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head>· 하루입찰제한</td>
    <td class=write_main>
        <input type=hidden size=7 name=wr_6  value="<?=$setup[au_limit]?>" >
<?=$setup[au_limit]?>
        번
    </td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>

<tr>
    <td class=write_head>· 내용</td>
    <td class=write_main style='padding:5px;'>

<?include $board_skin_path."/include/write.inc.php"; ?>

        <? if ($is_dhtml_editor) { ?>
          <?=cheditor2('wr_content', $content);?>
        <? } 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=tx style='width:100%; 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=#e7e7e7></td></tr>



<tr>
    <td class=write_head>· 업체 URL</td>
    <td class=write_main><input type='text' class='field_pub_01' size=50 name='wr_link1' itemname='업체 URL' value='<?=$write["wr_link1"]?>'></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>

<tr>
    <td class=write_head>· 상품 URL</td>
    <td class=write_main><input type='text' class='field_pub_01' size=50 name='wr_link2' itemname='상품 URL' value='<?=$write["wr_link2"]?>'></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>



<!----------------->
<? if ($is_file) { ?>
<tr>
    <td class=write_head>
        <table cellpadding=0 cellspacing=0>
        <tr>
            <td class=write_head style="padding-top:10px; line-height:20px;">
                파일첨부<br>
                <span onclick="add_file();" style="cursor:pointer;"><img src="<?=$board_skin_path?>/img/btn_file_add.gif"></span>
                <span onclick="del_file();" style="cursor:pointer;"><img src="<?=$board_skin_path?>/img/btn_file_minus.gif"></span>
            </td>
        </tr>
        </table>
    </td>
    <td style='padding:5 0 5 0;'><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='ed' 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='ed' 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=#e7e7e7></td></tr>
<? } ?>
<!----------------->

<? if ($is_trackback) { ?>
<tr>
    <td class=write_head>· 트랙백주소</td>
    <td class=write_main><input class='field_pub_01' 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></td></tr>
<? } ?>

<? if ($is_norobot) { ?>
<tr>
    <td class=write_head>· <?=$norobot_str?></td>
    <td class=write_main><input class='field_pub_01' 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 colspan=2 height=2 bgcolor="#0A7299"></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'>&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>
</table>

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

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

    document.getElementById('btn_submit').disabled = true;
    document.getElementById('btn_list').disabled = true;

    <?

  if ($g4[https_url])
        echo "f.action = '$board_skin_path/write_auction_update.php';";
else
        echo "f.action = '$board_skin_path/write_auction_update.php';";



    ?>
    f.submit();
}

function end_date(day)
{
    var wr_1 = document.getElementById("wr_1");
    var wr_2 = document.getElementById("wr_2");

    var tmp = wr_1.value.split(" ");
    var date = tmp[0].split("-");
    var time = tmp[1].split(":");

    var yyyy = date[0];
    var mm = --date[1];
    var dd = Number(date[2]) + Number(day);

    var hh = time[0];
    var ii = time[1];

    oDate = new Date(yyyy, mm, dd)

    yyyy = oDate.getFullYear();
    mm = oDate.getMonth() + 1;
    dd = oDate.getDate();

    if (String(mm).length == 1) mm = "0" + mm;
    if (String(dd).length == 1) dd = "0" + dd;

    wr_2.value = yyyy + "-" + mm + "-" + dd + " " + hh + ":" + ii;
}




</script>
<script>
function fitemformcheck(f)
{
 
  var f = document.fwrite;



    <?=cheditor3('content')."\n";?>
   
    return true;
}
</script>

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

댓글 전체

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

회원로그인

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