신청게시판에 오류가 생기는데요.. 정보
신청게시판에 오류가 생기는데요..본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 : www.wednlife.co.kr 팝업창
이벤트 신청받는 팝업창을 띄우고있는데요
페이지에 오류가 있다고 자꾸 나와서요..
다행히 접수는 정상적으로 되긴하지만..
오류메세지 안나오게 할 수 없을까요??
오류메세지는 187줄에 ~~컨트롤로 이동시킬수 없습니다 이런식으로 나오는데..
그 부분의 줄을 제가 임의로 수정해볼려고했더니 제대로 작동이 안되서요..
어떤부분이 정확히 문제인지 모르니 이렇게 도움 요청드려봅니다
이벤트 팝업창 소스 내용도 올려볼께요
많은 도움 부탁드리겠습니다..(__)
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor.lib.php");
echo "<script src='$g4[editor_path]/cheditor.js'></script>";
echo cheditor1('wr_content', $content);
}
//연락처
$tel = explode("-",$write[wr_1]);
$tel1 = $tel[0];
$tel2 = $tel[1];
$tel3 = $tel[2];
?>
<title>event</title>
<script language="javascript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<script language="JavaScript">
<!--
var text = 'Luso Event';//아래 상태바에 링크경로대신 나타날 메시지
function status_msg()
{
window.status = text;
timerID= setTimeout("status_msg()", 0);//값이 0일경우 링크주소가 보이지않음
}
window.onload=status_msg;
//-->
</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 value="secret" name="secret">
<table width="100%" align=left cellpadding=0 cellspacing=0 background="http://www.wednlife.co.kr/images/pop1.jpg">
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<colgroup width=100>
<colgroup width=''>
<tr><td colspan=2 height=2></td></tr>
<tr valign="bottom"><td height=639 colspan=2 valign="top"><table width="454" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="21" height="318"> </td>
<td width="433"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
<!-- <strong><?=$title_msg?></strong> --></td>
</tr>
<tr>
<td width="156" height="39" style='padding-left:115px; height:30px;'> </td>
<td width="1982"><input type=hidden class=ed maxlength=20 size=15 name=wr_name itemname="예약자성명" value="신청"></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>
<? } ?> -->
<!-- <? if ($is_notice || $is_html || $is_secret || $is_mail) { ?>
<tr>
<td style='padding-left:20px; height:30px;'>· 옵션</td>
<td><? if ($is_notice) { ?><input type=checkbox name=notice value="1" <?=$notice_checked?>>공지 <? } ?>
<? 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>
<? } ?>
<? } ?>
<? if ($is_secret) { ?>
<? if ($is_admin || $is_secret==1) { ?>
<input type=checkbox value="secret" name="secret" <?=$secret_checked?>><span class=w_title>비밀글</span>
<? } else { ?>
<input type=hidden value="secret" name="secret">
<? } ?>
<? } ?>
<? if ($is_mail) { ?><input type=checkbox value="mail" name="mail" <?=$recv_email_checked?>>답변메일받기 <? } ?></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?> -->
<? if ($is_category) { ?>
<tr>
<td style='padding-left:80px; height:30px;'> </td>
<td><select name=ca_name required itemname="분류"><option value="">선택하세요<?=$category_option?></select></td></tr>
<tr><td colspan=2 height=1></td></tr>
<? } ?>
<!-- <tr>
<td style='padding-left:20px; height:30px;'>· 휴대전화</td>
<td style='padding-left:0px;'>
<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 name='hp2' class=ed value='<?=$hp2?>' type='text' size='4' maxlength='4' onkeydown='onlyNumber(this);' itemname='휴대전화 두번째자리' required class=input> -
<input name='hp3' class=ed value='<?=$hp3?>' type='text' size='4' maxlength='4' onkeydown='onlyNumber(this);' itemname='휴대전화 세번째자리' required class=input>
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr> -->
<tr>
<td style='padding-left:100px; height:30px;'> </td>
<td><input class=ed style="width:130;" name=wr_subject id="wr_subject" itemname="상품명" required value="<?=$subject?>"></td></tr>
<? if ($is_name) { ?>
<tr><td colspan=2 height=1></td></tr>
<? } ?>
<tr>
<td style='padding-left:125px;'> </td>
<td style='padding-left:0px;'>
<select name='tel1' class='ed' itemname='연락처'>
<option value='010' <? if($tel1 == "010") echo "selected"; ?>>010</option>
<option value='011' <? if($tel1 == "011") echo "selected"; ?>>011</option>
<option value='016' <? if($tel1 == "016") echo "selected"; ?>>016</option>
<option value='017' <? if($tel1 == "017") echo "selected"; ?>>017</option>
<option value='018' <? if($tel1 == "018") echo "selected"; ?>>018</option>
<option value='019' <? if($tel1 == "019") echo "selected"; ?>>*** 개인정보보호를 위한 휴대폰번호 노출방지 ***' <? if($tel1 == "0505") echo "selected"; ?>>0505</option> -->
</select> -
<input name='tel2' class=ed value='<?=$tel2?>' type='text' size='4' maxlength='4' onkeydown='onlyNumber(this);' itemname='연락처 두번째자리' class=input> -
<input name='tel3' class=ed value='<?=$tel3?>' type='text' size='4' maxlength='4' onkeydown='onlyNumber(this);' itemname='연락처 세번째자리' class=input>
</td>
</tr>
<!-- <tr>
<td style='padding-left:20px; height:30px;'>· 입금액</td>
<td><input class=ed style="width:200;" name=wr_5 id="wr_5" itemname="입금액" required value="<?=$write[wr_5]?>"> 원</td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr> -->
<!-- <tr>
<td style='padding-left:20px; height:30px;'>· 제목</td>
<td><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></td></tr> -->
<tr>
<td style='padding-left:155px;'> </td>
<td style='padding:5 0 5 0;'>
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('fwrite', 'wr_content', '100%', '350');?>
<? } else { ?> <textarea name="wr_content" rows=1 class=tx id="wr_content" style='width:130; word-break:break-all;' style="overflow:hidden" itemname="내용"
<? 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>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="200" align="center" valign="top">
<input type=image id="btn_submit" accesskey='s' src="<?=$board_skin_path?>/img/bt2_1.gif" width="119" height="30" border=0>
<? if($is_admin == "super"){ ?>
<a href="./board.php?bo_table=<?=$bo_table?>"><img src="<?=$board_skin_path?>/img/bt2_2.gif" width="119" height="30" border=0 id="btn_list"></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 (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;
<? if($is_admin == "super"){ ?>
document.getElementById('btn_list').disabled = true;
<? } ?>
f.action = "./write_update.php";
f.submit();
}
</script>
<!-- <script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript">
window.onload=function() {
drawFont();
}
</script> -->
<script>
function onlyNumber(objtext1){
var inText = objtext1.value;
var ret;
for (var i = 0; i < inText.length; i++) {
ret = inText.charCodeAt(i);
if (!((ret > 47) && (ret < 58))) {
alert("숫자만을 입력하세요");
objtext1.value = "";
objtext1.focus();
return false;
}
}
if (objtext1.value.length==8) {
document.form1.RNI_idnum2.focus() ;
}
return true;
}
</script>
<BR>
오류 주소 : www.wednlife.co.kr 팝업창
이벤트 신청받는 팝업창을 띄우고있는데요
페이지에 오류가 있다고 자꾸 나와서요..
다행히 접수는 정상적으로 되긴하지만..
오류메세지 안나오게 할 수 없을까요??
오류메세지는 187줄에 ~~컨트롤로 이동시킬수 없습니다 이런식으로 나오는데..
그 부분의 줄을 제가 임의로 수정해볼려고했더니 제대로 작동이 안되서요..
어떤부분이 정확히 문제인지 모르니 이렇게 도움 요청드려봅니다
이벤트 팝업창 소스 내용도 올려볼께요
많은 도움 부탁드리겠습니다..(__)
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor.lib.php");
echo "<script src='$g4[editor_path]/cheditor.js'></script>";
echo cheditor1('wr_content', $content);
}
//연락처
$tel = explode("-",$write[wr_1]);
$tel1 = $tel[0];
$tel2 = $tel[1];
$tel3 = $tel[2];
?>
<title>event</title>
<script language="javascript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<script language="JavaScript">
<!--
var text = 'Luso Event';//아래 상태바에 링크경로대신 나타날 메시지
function status_msg()
{
window.status = text;
timerID= setTimeout("status_msg()", 0);//값이 0일경우 링크주소가 보이지않음
}
window.onload=status_msg;
//-->
</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 value="secret" name="secret">
<table width="100%" align=left cellpadding=0 cellspacing=0 background="http://www.wednlife.co.kr/images/pop1.jpg">
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<colgroup width=100>
<colgroup width=''>
<tr><td colspan=2 height=2></td></tr>
<tr valign="bottom"><td height=639 colspan=2 valign="top"><table width="454" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="21" height="318"> </td>
<td width="433"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
<!-- <strong><?=$title_msg?></strong> --></td>
</tr>
<tr>
<td width="156" height="39" style='padding-left:115px; height:30px;'> </td>
<td width="1982"><input type=hidden class=ed maxlength=20 size=15 name=wr_name itemname="예약자성명" value="신청"></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>
<? } ?> -->
<!-- <? if ($is_notice || $is_html || $is_secret || $is_mail) { ?>
<tr>
<td style='padding-left:20px; height:30px;'>· 옵션</td>
<td><? if ($is_notice) { ?><input type=checkbox name=notice value="1" <?=$notice_checked?>>공지 <? } ?>
<? 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>
<? } ?>
<? } ?>
<? if ($is_secret) { ?>
<? if ($is_admin || $is_secret==1) { ?>
<input type=checkbox value="secret" name="secret" <?=$secret_checked?>><span class=w_title>비밀글</span>
<? } else { ?>
<input type=hidden value="secret" name="secret">
<? } ?>
<? } ?>
<? if ($is_mail) { ?><input type=checkbox value="mail" name="mail" <?=$recv_email_checked?>>답변메일받기 <? } ?></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?> -->
<? if ($is_category) { ?>
<tr>
<td style='padding-left:80px; height:30px;'> </td>
<td><select name=ca_name required itemname="분류"><option value="">선택하세요<?=$category_option?></select></td></tr>
<tr><td colspan=2 height=1></td></tr>
<? } ?>
<!-- <tr>
<td style='padding-left:20px; height:30px;'>· 휴대전화</td>
<td style='padding-left:0px;'>
<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 name='hp2' class=ed value='<?=$hp2?>' type='text' size='4' maxlength='4' onkeydown='onlyNumber(this);' itemname='휴대전화 두번째자리' required class=input> -
<input name='hp3' class=ed value='<?=$hp3?>' type='text' size='4' maxlength='4' onkeydown='onlyNumber(this);' itemname='휴대전화 세번째자리' required class=input>
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr> -->
<tr>
<td style='padding-left:100px; height:30px;'> </td>
<td><input class=ed style="width:130;" name=wr_subject id="wr_subject" itemname="상품명" required value="<?=$subject?>"></td></tr>
<? if ($is_name) { ?>
<tr><td colspan=2 height=1></td></tr>
<? } ?>
<tr>
<td style='padding-left:125px;'> </td>
<td style='padding-left:0px;'>
<select name='tel1' class='ed' itemname='연락처'>
<option value='010' <? if($tel1 == "010") echo "selected"; ?>>010</option>
<option value='011' <? if($tel1 == "011") echo "selected"; ?>>011</option>
<option value='016' <? if($tel1 == "016") echo "selected"; ?>>016</option>
<option value='017' <? if($tel1 == "017") echo "selected"; ?>>017</option>
<option value='018' <? if($tel1 == "018") echo "selected"; ?>>018</option>
<option value='019' <? if($tel1 == "019") echo "selected"; ?>>*** 개인정보보호를 위한 휴대폰번호 노출방지 ***' <? if($tel1 == "0505") echo "selected"; ?>>0505</option> -->
</select> -
<input name='tel2' class=ed value='<?=$tel2?>' type='text' size='4' maxlength='4' onkeydown='onlyNumber(this);' itemname='연락처 두번째자리' class=input> -
<input name='tel3' class=ed value='<?=$tel3?>' type='text' size='4' maxlength='4' onkeydown='onlyNumber(this);' itemname='연락처 세번째자리' class=input>
</td>
</tr>
<!-- <tr>
<td style='padding-left:20px; height:30px;'>· 입금액</td>
<td><input class=ed style="width:200;" name=wr_5 id="wr_5" itemname="입금액" required value="<?=$write[wr_5]?>"> 원</td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr> -->
<!-- <tr>
<td style='padding-left:20px; height:30px;'>· 제목</td>
<td><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></td></tr> -->
<tr>
<td style='padding-left:155px;'> </td>
<td style='padding:5 0 5 0;'>
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('fwrite', 'wr_content', '100%', '350');?>
<? } else { ?> <textarea name="wr_content" rows=1 class=tx id="wr_content" style='width:130; word-break:break-all;' style="overflow:hidden" itemname="내용"
<? 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>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="200" align="center" valign="top">
<input type=image id="btn_submit" accesskey='s' src="<?=$board_skin_path?>/img/bt2_1.gif" width="119" height="30" border=0>
<? if($is_admin == "super"){ ?>
<a href="./board.php?bo_table=<?=$bo_table?>"><img src="<?=$board_skin_path?>/img/bt2_2.gif" width="119" height="30" border=0 id="btn_list"></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 (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;
<? if($is_admin == "super"){ ?>
document.getElementById('btn_list').disabled = true;
<? } ?>
f.action = "./write_update.php";
f.submit();
}
</script>
<!-- <script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript">
window.onload=function() {
drawFont();
}
</script> -->
<script>
function onlyNumber(objtext1){
var inText = objtext1.value;
var ret;
for (var i = 0; i < inText.length; i++) {
ret = inText.charCodeAt(i);
if (!((ret > 47) && (ret < 58))) {
alert("숫자만을 입력하세요");
objtext1.value = "";
objtext1.focus();
return false;
}
}
if (objtext1.value.length==8) {
document.form1.RNI_idnum2.focus() ;
}
return true;
}
</script>
<BR>
댓글 전체
<input type=hidden class=ed maxlength=20 size=15 name=wr_name itemname="예약자성명" value="신청">
보시면 type이 hidden으로 되어있어서 그렇습니다.
어딘가에서 따로 타입을 바꿔주시는지 잘 모르겠습니다만, 어차피 보여지는 거라면
그냥 textbox? 이런걸로 바꾸시면 에러없이 잘 될것 같네요
보시면 type이 hidden으로 되어있어서 그렇습니다.
어딘가에서 따로 타입을 바꿔주시는지 잘 모르겠습니다만, 어차피 보여지는 거라면
그냥 textbox? 이런걸로 바꾸시면 에러없이 잘 될것 같네요