컴퓨터조립견적서 스킨 에러!!!!!!!!! > 그누4 질문답변

그누4 질문답변

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

컴퓨터조립견적서 스킨 에러!!!!!!!!! 정보

컴퓨터조립견적서 스킨 에러!!!!!!!!!

본문

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 :

사이트웹님의st_comas 컴퓨터조립 견적서 스킨을 사용 하려고 합니다.
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=96194&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EA%B2%AC%EC%A0%81

적용 결과 3가지 오류가 납니다 ㅠㅠ

1. 'ed_wr_content.config'은(는) null 이거나 개체가 아닙니다.
2.  ed_fwrite'이(가) 정의되지 않았습니다.
3. 'wr_subject.value'은(는) null 이거나 개체가 아닙니다.
    3번 같은 경우는 글을 다 쓰고 글쓰기 버튼을 누르면 나타나는 문제구요ㅠㅠ

저와 같은 분들이 계신데 해결을 못보신거 같아보여요 ㅠㅠ
2번은 하실말씀의 입력칸? 문제 인거 같은데 어렵네요ㅠㅠ

일반적인 오류는 검색을 해서 수정하는시늉이라도 낼 수 있는데
검색해봐도 모르겠는 문제라 고수님들께 도움을 요청합니다ㅠㅠ

 어딜 수정해야 하나요? 어딜 수정해야 오류가 사라질까요 ㅠㅠㅠ

=================================================================================
===================================================================================
====================================================================================

완벽하진 않지만 검색에 수정을 거듭에 거듭 현 최신 그누에서 잘 나오도록 수정했습니다.
혹시나 저 같은 사람이 있을까 하여 제가 수정한 부분 남깁니다 ..
완벽한게 아니라 이것저것 수정하다보니 된거라 장담을 못합니다 ㅠㅠㅠ



일단 스킨을 올린 후 여분 필드를 추가 해주셔야 합니다.

http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=28056&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EC%97%AC%EB%B6%84%ED%95%84%EB%93%9C

위의 팁을 활용하여 필드 54까지 추가해서 늘려주시고
write.skin.php를 제가 올린 소스와 비교해서 바꿔주세요. (저는 안쓰는거 몇개는 뺐음돠 ㅎㅎㅎ)
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가


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

//휴대전화
$hp = explode("-",$write[wr_1]);
$hp1  = $hp[0];
$hp2  = $hp[1];
$hp3  = $hp[2];

//전화번호
$tel = explode("-",$write[wr_2]);
$tel1  = $tel[0];
$tel2  = $tel[1];
$tel3  = $tel[2];

//우편번호
$ex3_filed = explode("-",$write[wr_3]);
$ext3_00  = $ex3_filed[0];
$ext3_01  = $ex3_filed[1];
?>

<SCRIPT language="JAVASCRIPT">
// 숫자만 입력가능하게. 다음에서 가져왔음  ^-^;
function autoCommaWithString(obj) {

if (!isNumeric(obj.value)) {
alert("숫자만 입력할 수 있습니다.");
    obj.value = "";
    obj.focus();
    return;


if (obj.value == "") {
    obj.focus();
    return;
}

obj.value = setMoneyFormat(obj);
obj.focus();
return;

}

function isNumeric(str) {  // 숫자인지 체크하는 함수
for (var i = 0; i < str.length; i++){
    ch = str.charAt(i);
    if ((ch >= "0" && ch <= "9") || ch == ",") ;
    else return false;
}
return true;
}

function setMoneyFormat(obj) {
if (obj.value == "") return;

var tmpNum = getPureNumberString(obj);
var j = 0;
var szComma = "";
var nLength = tmpNum.length;

// for (var i = tmpNum.length-1; i >= 0; i--, j++) {
//     ch = tmpNum.charAt(i);
//     if (j > 0 && j % 3 == 0 && j < tmpNum.length) {
//         szComma = "," + szComma;
//     }
//     szComma = ch + szComma;
// }

// 협객 수정.
for( var i = 1 ; i <= nLength  ; i++)
    {
    szComma = tmpNum.charAt( nLength-i) + szComma;

    if( ( i%3 == 0) && ( nLength-i != 0))
        szComma = "," + szComma;
    }
       
return szComma;
}

function getPureNumberString( obj)
{
if (obj.value == "") return "";
var tmpNum = "";

for (var i = 0; i < obj.value.length; i++)
{
    ch = obj.value.charAt(i);
    if ("," != ch) tmpNum = tmpNum + ch;
}

return tmpNum;
}
</SCRIPT>
<script Language="Javascript">
//이스크립트는 수량증가 수량감소해당하는 스크립트입니다.
document.write('<st'+'yle>');
document.write('td {font-size:12px; font-family:굴림; text-decoration:none; }');
document.write('A:link,A:active,A:visited{text-decoration:none;font-size:12PX;color:#333333;}');
document.write('A:hover {text-decoration:none; color:ff9900}');
document.write('font { font-size: 9pt; }');
document.write('.cnj_input {background-color:rgb(240,240,240);border-width:1pt; height:16pt;cursor:hand;}');
document.write('.cnj_input2 {border-width:1; border-color:rgb(204,204,204); border-style:solid;cursor:hand;}');
document.write('.cnj_input3 { border-width:1; border-style:solid; border-color:#000000; color:#0084D4; background-color:white;cursor:hand;}');
document.write('.cnj_input4 { scrollbar-face-color: #FFCC33;scrollbar-shadow-color: #ffffff;scrollbar-highlight-color: #F3f3f3;scrollbar-3dlight-color: #ffffff;scrollbar-darkshadow-color: #F3f3f3;scrollbar-track-color: #ffffff;scrollbar-arrow-color: #f9f9f9;cursor:hand; }');
document.write('</st'+'yle>');
function count_change(menu_count_add, n) {
  var f = document.fwrite;
  if (f.menu01[n].selectedIndex==0) return

  var cnj_menu_count = f.menu_count[n].value;
  if(menu_count_add==0){
      cnj_menu_count++;
  }else if(menu_count_add==1){
      if(cnj_menu_count> 1) cnj_menu_count--;
  }
  f.menu_count[n].value = cnj_menu_count;

  //my_total(document.fwrite); //필요없음.. 아래 함수 호출
  selCheck(n);
}

//추가된 함수
function selCheck(n){
 frm = document.fwrite;
 obj = frm.menu01[n];
 if (obj.selectedIndex==0) {
  frm.menu_sum[n].value = 0;
 }
 else {
  selv = obj[obj.selectedIndex].value;
  cntv = frm.menu_count[n].value;
  sel_sum = parseInt(selv) * parseInt(cntv);
  frm.menu_sum[n].value = sel_sum;
 }
 my_total();
}

function my_total(){
 frm = document.fwrite;
 //menu01_sum을
 //menu_sum으로 변경...왜? 배열로 처리하는게 편하니까.
 total_price = 0;
 for (var i=0; i<frm.menu_sum.length;i++){
  total_price += eval(frm.menu_sum[i].value);
 }
 frm.total.value = total_price;
}
 
</script>
<script>

function lee(i)
{
if(i == '0')
{
document.fwrite.pay_1.value="";
document.fwrite.pay_1.disabled = true;
document.fwrite.pay_2.value="";
document.fwrite.pay_2.disabled = true;
}else
{
document.fwrite.pay_1.disabled = false;
document.fwrite.pay_2.disabled = false;
}
}
</script>
<div style="height:14px; line-height:1px; font-size:1px;">&nbsp;</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?>">

<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td>
<div style="border:1px solid #ddd; height:34px; background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x;">
<div style="font-weight:bold; font-size:14px; margin:7px 0 0 10px;">:: <?=$title_msg?> ::</div>
</div>
<div style="height:3px; background:url(<?=$board_skin_path?>/img/title_shadow.gif) repeat-x; line-height:1px; font-size:1px;"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<colgroup width=90>
<colgroup width=''>
<tr><td colspan="2" style="background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x; height:3px;"></td></tr>
<? if ($is_admin == "super" || $is_auth) { ?>
<tr>
    <td style='height:30px;' align=center><b>신청현황</b></td>
    <td><input type=radio name="wr_10" value="확인중" <? if( $u=w || $write[wr_10] == "확인중")  echo "checked"; ?>>확인중
<input type=radio name="wr_10" value="조립중" <? if($write[wr_10] == "조립중")  echo "checked"; ?>>조립중
<input type=radio name="wr_10" value="검사중" <? if($write[wr_10] == "검사중")  echo "checked"; ?>>검사중
<input type=radio name="wr_10" value="배송중" <? if($write[wr_10] == "배송중")  echo "checked"; ?>>배송중
<input type=radio name="wr_10" value="배송완료" <? if($write[wr_10] == "배송완료")  echo "checked"; ?>>배송완료
</tr>

<? } ?>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head>제 목</td>
    <td><input class="field" style="width:100%;" name=wr_subject id="wr_subject" itemname="제목" value="<?=$subject?>"></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>

<? if ($is_name) { ?>
<tr>
    <td class=write_head>이 름</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 class=write_head>패스워드</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 class=write_head>이메일</td>
    <td>&nbsp;</td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>

<? if ($is_homepage) { ?>
<tr>
    <td class=write_head>홈페이지</td>
    <td><input class='ed' size=50 name=wr_homepage itemname="홈페이지" value="<?=$homepage?>"></td></tr>
<? } ?>
<tr>
    <td style='height:30px;' align=center><b>휴대전화</b></td>
    <td>
<select name='hp1' class='ed'  itemname='휴대전화' required>
        <option value='010' <? if($hp1 == "010") echo "selected"; ?>>010</option>
        <option value='011' <? if($hp1 == "011") echo "selected"; ?>>011</option>
        <option value='016' <? if($hp1 == "016") echo "selected"; ?>>016</option>
        <option value='017' <? if($hp1 == "017") echo "selected"; ?>>017</option>
        <option value='018' <? if($hp1 == "018") echo "selected"; ?>>018</option>
        <option value='019' <? if($hp1 == "019") echo "selected"; ?>>019</option>
      </select> -
      <input class='ed' maxlength=100 size=50 name=wr_email email itemname="이메일" value="<?=$email?>" />
      <input name='hp2' class=ed value='<?=$hp2?>' type='text' size='4' maxlength='4'  itemname='휴대전화 두번째자리' required class=input>  -
      <input name='hp3' class=ed value='<?=$hp3?>' type='text' size='4' maxlength='4'  itemname='휴대전화 세번째자리' required class=input>
</td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>

<tr>
    <td style='height:30px;' align=center><b>전화번호</b></td>
    <td>
<select name='tel1' class='ed'  itemname='전화번호'>
        <option value='02' <? if($tel1 == "02") echo "selected"; ?>>02</option>
        <option value='031' <? if($tel1 == "031") echo "selected"; ?>>031</option>
        <option value='032' <? if($tel1 == "032") echo "selected"; ?>>032</option>
        <option value='033' <? if($tel1 == "033") echo "selected"; ?>>033</option>
        <option value='041' <? if($tel1 == "041") echo "selected"; ?>>041</option>
        <option value='042' <? if($tel1 == "042") echo "selected"; ?>>042</option>
        <option value='043' <? if($tel1 == "043") echo "selected"; ?>>043</option>
        <option value='051' <? if($tel1 == "051") echo "selected"; ?>>051</option>
        <option value='052' <? if($tel1 == "052") echo "selected"; ?>>052</option>
        <option value='053' <? if($tel1 == "053") echo "selected"; ?>>053</option>
        <option value='054' <? if($tel1 == "054") echo "selected"; ?>>054</option>
        <option value='055' <? if($tel1 == "055") echo "selected"; ?>>055</option>
        <option value='061' <? if($tel1 == "061") echo "selected"; ?>>061</option>
        <option value='062' <? if($tel1 == "062") echo "selected"; ?>>062</option>
        <option value='063' <? if($tel1 == "063") echo "selected"; ?>>063</option>
        <option value='064' <? if($tel1 == "064") echo "selected"; ?>>064</option>
<!-- <option value='0505' <? if($tel1 == "0505") echo "selected"; ?>>0505</option> -->
      </select> -
      <input name='tel2' class=ed value='<?=$tel2?>' type='text' size='4' maxlength='4'  itemname='전화번호 두번째자리' class=input>  -
      <input name='tel3' class=ed value='<?=$tel3?>' type='text' size='4' maxlength='4'  itemname='전화번호 세번째자리' class=input>
</td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>

<tr>
    <td style='height:30px;' align=center><b>&nbsp;우편번호</b></td>
    <td>
<input class=ed size="4" name=ext3_00 itemname="우편번호 앞자리"  readonly value="<?=$ext3_00?>" required> -
<input class=ed size="4" name=ext3_01 itemname="우편번호 뒷자리"  readonly value="<?=$ext3_01?>" required>
&nbsp;<a href="javascript:;" onclick="win_zip('fwrite', 'ext3_00', 'ext3_01', 'wr_4', 'wr_4');"><img src="<?=$board_skin_path?>/img/addrsearch.gif" border=0 align="absmiddle"></a>
</td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>

<tr>
    <td style='height:30px;' align=center><b>&nbsp;주소</b></td>
    <td><input class="ed" style="width:100%; height:20px;" name=wr_4 id="wr_4" itemname="주소"  value="<?=$write[wr_4]?>"  required></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></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>공지&nbsp;";
    }

    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>&nbsp;";
        }
    }

    if ($is_secret) {
        if ($is_admin || $is_secret==1) {
            $option .= "<input type=checkbox value='secret' name='secret' $secret_checked><span class=w_title>비밀글</span>&nbsp;";
        } else {
            $option_hidden .= "<input type=hidden value='secret' name='secret'>";
        }
    }
   
    if ($is_mail) {
        $option .= "<input type=checkbox value='mail' name='mail' $recv_email_checked>답변메일받기&nbsp;";
    }
}

echo $option_hidden;
if ($option) {
?>
<tr>
    <td class=write_head>옵 션</td>
    <td><?=$option?></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>

<? if ($is_category) { ?>
<tr>
    <td class=write_head>분 류</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 colspan=2 height=1><div><img src="<?=$board_skin_path?>/img/coma.gif" border=0></div></td>
</tr>

<tr>
    <td style='height:30px;'><!--&nbsp;희망견적가--></td>
    <td><b>상품 주문입력란 물품명을 선택하시고/수량을선택하시면, 해당금액이 나옵니다.</b></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head style='height:30px;'>프로세서<!--&nbsp;희망견적가--></td>
    <td><? include_once("$board_skin_path/sh01.php"); ?></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head style='height:30px;'>메인보드<!--&nbsp;희망견적가--></td>
    <td><? include_once("$board_skin_path/sh02.php"); ?></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head style='height:30px;'>메모리<!--&nbsp;희망견적가--></td>
    <td><? include_once("$board_skin_path/sh03.php"); ?></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head style='height:30px;'>비디오카드<!--&nbsp;희망견적가--></td>
    <td><? include_once("$board_skin_path/sh04.php"); ?></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head style='height:30px;'>하드디스크<!--&nbsp;희망견적가--></td>
    <td><? include_once("$board_skin_path/sh05.php"); ?></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head style='height:30px;'>케이스<!--&nbsp;희망견적가--></td>
    <td><? include_once("$board_skin_path/sh06.php"); ?></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head style='height:30px;'>파워<!--&nbsp;희망견적가--></td>
    <td><? include_once("$board_skin_path/sh07.php"); ?></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head style='height:30px;'>ODD/FDD<!--&nbsp;희망견적가--></td>
    <td><? include_once("$board_skin_path/sh08.php"); ?></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head style='height:30px;'>운영체제<!--&nbsp;희망견적가--></td>
    <td><? include_once("$board_skin_path/sh09.php"); ?></td>
</tr>
<tr><td class=write_head style='height:20px;'></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>

<tr>
<td colspan=2 height=1><div><img src="<?=$board_skin_path?>/img/comb.gif" border=0></div></td>
</tr>
<tr>
    <td style='height:30px;'><!--&nbsp;희망견적가--></td>
    <td><b>상품 주문입력란 물품명을 선택하시고/수량을선택하시면, 해당금액이 나옵니다.</b></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head style='height:30px;'>LCD모니터<!--&nbsp;희망견적가--></td>
    <td><? include_once("$board_skin_path/sh10.php"); ?></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head style='height:30px;'>키보드<!--&nbsp;희망견적가--></td>
    <td><? include_once("$board_skin_path/sh11.php"); ?></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head style='height:30px;'>마우스<!--&nbsp;희망견적가--></td>
    <td><? include_once("$board_skin_path/sh12.php"); ?></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head style='height:30px;'>복합기<!--&nbsp;희망견적가--></td>
    <td><? include_once("$board_skin_path/sh13.php"); ?></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head style='height:30px;'>스피커<!--&nbsp;희망견적가--></td>
    <td><? include_once("$board_skin_path/sh14.php"); ?></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
    <td class=write_head style='height:30px;'><b>총합계</b></td>
    <td><font size="2"><input type=text name='wr_53' id="total" readonly size="30" value="0원" maxlength="3" style=" font-style:normal; font-weight:bold; font-size:20; color:rgb(255,153,0); border-width:3px; border-style:solid;" ONKEYUP="javascript:autoCommaWithString(this)"><?if($w=="u") echo "<script language='javascript'>document.getElementById('wr_53').value='$write[wr_53]';</script>";?>&nbsp;&nbsp;<b>VAT(포함)</b>
</font></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>

<tr>
    <td style='height:150px;' class=write_head><b>하실말씀</b></td><br>
    <td><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 type="text/javascript"> check_byte('wr_content', 'char_count'); </script><?}?></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr>
<td colspan=2 height=1><div><img src="<?=$board_skin_path?>/img/comc.gif" border=0></div></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>

<? if ($is_link) { ?>
<? for ($i=1; $i<=$g4[link_count]; $i++) { ?>
<tr>
    <td w class=write_head>링크 #<?=$i?></td>
    <td><input type='text' class='ed' size=50 name='wr_link<?=$i?>' itemname='링크 #<?=$i?>' value='<?=$write["wr_link{$i}"]?>'></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 type="text/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><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></td></tr>
<? } ?>

<? if ($is_guest) { ?>
<tr>
    <td class=write_head><img id='kcaptcha_image' /></td>
    <td>&nbsp;<input class='ed' type=input size=10 name=wr_key itemname="자동등록방지" required>&nbsp;&nbsp;왼쪽의 글자를 입력하세요.</td>
</tr>
<tr><td height=1 bgcolor=#e7e7e7></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 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)
{
    <?
    if ($g4[https_url])
        echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';";
    else
        echo "f.action = './write_update.php';";
    ?>
    /*
    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;


   
    return true;
}
</script>

<script type="text/javascript" src="<?="$g4[path]/js/board.js"?>"></script>
<script type="text/javascript"> window.onload=function() { drawFont(); } </script>
======================
위소스대로 리스트, 뷰화면에 <?=cf_$name?>을 <?=$name?>으로 변경해주고 하면 정상적으로 잘 나옵니다.

댓글 전체

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

회원로그인

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