반응 없는 글쓰기버튼 정보
반응 없는 글쓰기버튼본문
연혁게시판인데요..
글쓰기버튼을 눌르면 정상적으로 되는듯 한데..
글을 확인해 보면 데이타 업뎃이 않되있어욤..
그것도 잘되다가 이제와 않되는건 또..ㅡㅡ;;; 먼일일까욤?
write.skin.php 내용입니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($w == "") {
$is_name = false;
$is_password = false;
if (!$member[mb_id] || ($is_admin && $w == 'u' && $member[mb_id] != $write[mb_id])) {
$is_name = true;
$is_password = true;
}
$password_required = "required";
$subject = $board[bo_insert_subject];
include_once("./norobot.inc.php");
}
?>
<!--상좌테두리-->
<table cellpadding="0" cellspacing="0" width="<?=$width?>" align=center>
<tr>
<td width="10" height="10" background="<?=$board_skin_path?>/img2/l_top.gif"></td>
<td width="" height="10" background="<?=$board_skin_path?>/img2/cen_top.gif"></td>
<td width="11" height="10" background="<?=$board_skin_path?>/img2/r_top.gif"></td>
</tr>
<tr>
<td width="10" height="" background="<?=$board_skin_path?>/img2/l_cen.gif"></td>
<td width="" height="" align="center" style="padding:5px 5px 5px 5px;">
<script language="javascript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>
<!-- 김선용 2005.4 - ff(불여우) 에서는 innerhtml 사용시 폼이 <table> 아래에 있으면 인식하지 못합니다. -->
<form name="fwrite" method="post" onsubmit="javascript:fwrite_check(document.fwrite);" enctype="multipart/form-data" style="margin:0px;" autocomplete="off">
<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="100%" align=center cellpadding=0 cellspacing=0><tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<? if ($is_name) { ?>
<tr>
<td width="30" style='padding-left:2px; height:25px;'>이름</td>
<td><input class=ed maxlength=16 size=15 name=wr_name itemname="이름" required value="<?=$name?>">
<? } ?>
<? if ($is_password) { ?>
비밀번호
<input class=ed type=password maxlength=16 size=15 name=wr_password itemname="패스워드" <?=$password_required?>>
<? } ?>
<? if ($is_norobot) { ?>
<?=$norobot_str?>
<input class=ed type=input size=10 name=wr_key itemname="자동등록방지" required> * 왼쪽의 글자중 <font color="red">빨간글자만</font> 입력하세요.
<td></td>
</tr>
<? } ?>
<tr>
<td colspan=3>
<table><tr><td>연대
<? if(!$sca && $w =="u") { ?>
<select name=ca_name required itemname="분류"><option value="">선택하세요<?=$category_option?></select>
<?} else { ?>
<input class=ed value="<?=$sca?>" name="ca_name">
<?}?>
</td>
<td>날짜</td><td><input class=ed style="width:100px; height:20px;" name=wr_subject itemname="날짜" required value="<?=$subject?>" ></td></tr></table>
</td>
</tr>
<tr>
<td width="30" style='padding-left:2px; height:25px;'>내용</td>
<td> <textarea id="wr_content" name="wr_content" class=tx style='width:400px; word-break:break-all;' rows=3 itemname="내용" required ><?=$content?></textarea></td>
<td width="50" align="center">
<input type=image id="btn_submit" src="<?=$board_skin_path?>/img/btn_write.gif" border=0 accesskey='s' align="absmiddle">
</td>
</tr>
<? if ($is_file) { ?>
<tr>
<td >파일</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 width="30" style='padding-left:2px; height:2px;'></td>
<td></td>
<td width="50" align="center"></td>
</tr>
</table>
</td></tr></table>
</form>
<script language="javascript">
with (document.fwrite) {
if (typeof(wr_name) != "undefined")
wr_name.focus();
else if (typeof(wr_subject) != "undefined")
wr_subject.focus();
}
function fwrite_check(f)
{
var s = "";
if (s = word_filter_check(f.wr_subject.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;
}
}
document.getElementById('btn_submit').disabled = true;
f.action = "./write_update.php?sca=<?=$sca?>";
f.submit();
}
</script>
<?
if ($w == "") {
if (!$member[mb_id])
echo "<script language='javascript' src='$g4[path]/js/md5.js'></script>\n";
// 필터
echo "<script language='javascript'> var g4_cf_filter = '$config[cf_filter], '; </script>\n";
echo "<script language='javascript' src='$g4[path]/js/filter.js'></script>\n";
}
?>
<!--하우테두리-->
</td>
<td width="10" height="" background="<?=$board_skin_path?>/img2/r_cen.gif"></td>
</tr>
<tr>
<td width="10" height="12" background="<?=$board_skin_path?>/img2/l_tail.gif"></td>
<td width="" height="12" background="<?=$board_skin_path?>/img2/cen_tail.gif"></td>
<td width="10" height="12" background="<?=$board_skin_path?>/img2/r_tail.gif"></td>
</tr>
</table>