어떤에러인가 해결방법은? 정보
어떤에러인가 해결방법은?본문
위 그림은 어떤에러인가요
그리고 마지막 글자가 나타나질 않는데 왜그런가요?
??로 나오고 마지막글자가 다가 나와야 하는데
해결방법이 없습니까?
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?=$board_skin?>/style.css" type="text/css">
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<link rel="stylesheet" href="<?=$board_skin?>/style.css" type="text/css">
<table width=100% border=0 align=center cellpadding=0 cellspacing=1 align=center>
<form name="fwrite" method="post" action="javascript:fwrite_check(document.fwrite);" enctype="multipart/form-data" autocomplete="off">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<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=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=before value='<?=$last_word?>'>
<input type=hidden name=wr_subject value='제목'>
<form name="fwrite" method="post" action="javascript:fwrite_check(document.fwrite);" enctype="multipart/form-data" autocomplete="off">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<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=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=before value='<?=$last_word?>'>
<input type=hidden name=wr_subject value='제목'>
<tr>
<td style='padding-left:40px' align=center>
<? if ($is_name) { ?>이름
<input type=text name='wr_name' size=20 maxlength=20 required itemname='이름' value='<?=$w_name?>' class=input>
<? } ?>
</td>
<td colspan=2 align=left>
<? if ($is_passwd) { ?>비밀번호
<input type=password name='wr_passwd' required size=20 maxlength=20 <?=$required_passwd?> itemname='암호' class=input>
<? } ?>
</td>
</tr>
<td style='padding-left:40px' align=center>
<? if ($is_name) { ?>이름
<input type=text name='wr_name' size=20 maxlength=20 required itemname='이름' value='<?=$w_name?>' class=input>
<? } ?>
</td>
<td colspan=2 align=left>
<? if ($is_passwd) { ?>비밀번호
<input type=password name='wr_passwd' required size=20 maxlength=20 <?=$required_passwd?> itemname='암호' class=input>
<? } ?>
</td>
</tr>
<tr>
<td colspan=3 align=center>
<TEXTAREA id=wr_content class=w_textarea name=wr_content style='width:95%; line-height:150%; word-break:break-all;' rows=3 itemname="내용" required onKeyPress="hangul();"><?=$content?><?=$last_word?></TEXTAREA>
</td>
</tr>
<td colspan=3 align=center>
<TEXTAREA id=wr_content class=w_textarea name=wr_content style='width:95%; line-height:150%; word-break:break-all;' rows=3 itemname="내용" required onKeyPress="hangul();"><?=$content?><?=$last_word?></TEXTAREA>
</td>
</tr>
<tr>
<td colspan=3 align=center>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=80 valign=bottom></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#ffb048' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p01.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#88cc38' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p02.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#f8c400' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p03.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#40b0d8' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p04.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#508cff' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p05.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#ff68b8' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p06.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#d058ff' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p07.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#ff5860' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p08.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#a8a8a8' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p09.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#c0bc28' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p10.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#78a4c0' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p11.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#d874a0' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p12.gif' border=0></td>
<td width=150 align=center valign=bottom><input type=image src='<?="$board_skin_path/pen/write.gif"?>' border=0 align=absmiddle></td>
</tr>
</table>
</td>
</tr>
<td colspan=3 align=center>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=80 valign=bottom></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#ffb048' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p01.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#88cc38' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p02.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#f8c400' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p03.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#40b0d8' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p04.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#508cff' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p05.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#ff68b8' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p06.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#d058ff' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p07.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#ff5860' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p08.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#a8a8a8' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p09.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#c0bc28' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p10.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#78a4c0' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p11.gif' border=0></td>
<td width=25 align=center><input type='radio' name='wr_link1' value='#d874a0' onfocus=blur()><BR><img src='<?=$board_skin_path?>/pen/p12.gif' border=0></td>
<td width=150 align=center valign=bottom><input type=image src='<?="$board_skin_path/pen/write.gif"?>' border=0 align=absmiddle></td>
</tr>
</table>
</td>
</tr>
<tr><td colspan=3 height=10></td></tr>
<? if ($is_norobot) { ?>
<tr>
<td width="15%" height="30" align="center"><?=$norobot_str?></td>
<td width="1" valign="bottom"><img src="<?=$board_skin_path?>/img/gray_line.gif" width="1" height="10"></td>
<td width="84%" class=w_padding><INPUT class=w_text type=input size=10 name=wr_key itemname="자동등록방지" required> <font class="mystyle">* 왼쪽의 글자중 <FONT COLOR="red">빨간글자만</FONT> 순서대로 입력하세요.</FONT></TD>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3 align=middle></td></tr>
</table>
<script language="Javascript">
function hangul(){
if((event.keyCode < 12592) || (event.keyCode > 12687))
event.returnValue = false
}
function fwrite_check(f){
var after;
after = f.wr_content.value.substring(0,1);
if(f.before.value != after){
alert("첫글자는 이전 끝글자와 같아야 합니다!!");
f.wr_content.focus();
return;
}
alert("첫글자는 이전 끝글자와 같아야 합니다!!");
f.wr_content.focus();
return;
}
if (typeof(f.wr_key) != "undefined") {
if (hex_md5(f.wr_key.value) != md5_norobot_key) {
alert("자동등록방지용 빨간글자가 순서대로 입력되지 않았습니다.");
f.wr_key.focus();
return;
}
}
if (hex_md5(f.wr_key.value) != md5_norobot_key) {
alert("자동등록방지용 빨간글자가 순서대로 입력되지 않았습니다.");
f.wr_key.focus();
return;
}
}
f.action = "./write_update.php";
f.submit();
}
</script>
f.submit();
}
</script>
댓글 전체
트랙백 주소 : http://sir.co.kr/bbs/tb.php/g4_skin_board/2440
이스킨을 사용했습니다.
이스킨을 사용했습니다.
<? if ($is_norobot) { ?>
와 관련한
<?}?>를
자바스크립트 윗줄의 </tr> 다음에 넣어 보세요
와 관련한
<?}?>를
자바스크립트 윗줄의 </tr> 다음에 넣어 보세요
zestar 님 고맙습니다 그러니 해결이 되네요 ㅎㅎ 감사 합니다
그런데 마지막 글자가 ??로 나오는데 어떻게 해야 하나요.
그런데 마지막 글자가 ??로 나오는데 어떻게 해야 하나요.
그건 view.skin.php 파일을 봐야 알 수 있을 것 같네요.
그건 view.skin.php 파일을 봐야 알 수 있을 것 같네요.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
goto_url("./board.php?bo_table=$bo_table" . $qstr);
?>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
goto_url("./board.php?bo_table=$bo_table" . $qstr);
?>
lis.skin.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$select_table = $g4[write_prefix] .$bo_table;
$sql2 = "select wr_content from $select_table order by wr_id DESC";
$row2 = sql_fetch($sql2);
$last_word = substr("$row2[wr_content]",-2,2);
?>
<table width="95%" border="0" cellspacing="0" cellpadding="0" height=40>
<tr>
<td width="70%" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <img src="<?=$board_skin_path?>/img/mk.gif" align="absmiddle"> <a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>'><font size=4><strong><?=$board[bo_subject]?></strong></font></a>
</td>
</tr>
</table>
</td>
<td width="30%" valign="middle" align=right>
<table align="center" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td style="font-size:10pt;font-family:돋움;" width="100%">
<font class=w_font>게시물 <?=number_format($total_count)?>건</font>
<? if($admin_href) { ?>
<a href="javascript:void(window.open('<?=$admin_href?>','sirini_admin_open','width=980,height=700,menubar=no,scrollbars=yes,resizable=yes'));" onfocus="this.blur()">관리화면 </a>
<? }?>
<a href="javascript:void(window.open('<?=$board_skin_path?>/sirini.gadget.get.rss.php?bo_table=<?=$bo_table?>&route=<?=$_SERVER[REQUEST_URI]?>','gadget_rss','width=700,height=600,menubar=no,scrollbars=yes,resizable=yes'));" onfocus="this.blur()"><img src="<?=$board_skin_path?>/img/xml.gif" border="0" alt="RSS" title="이 게시판의 최근 글목록을 봅니다." align="absmiddle"></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width=95% border=0 cellpadding=0 cellspacing=0 align=center background="<?=$board_skin_path?>/img/top_03.gif">
<tr><td height=15></td></tr>
<tr>
<td style='padding-left:5px'>
<? if ($is_checkbox) { ?>
<INPUT onclick="if (this.checked) all_checked(true); else all_checked(false);" type=checkbox>
<? } ?>
'<font color=red><span><b><?=$last_word?></b></span></font>'
(으)로 시작하시고 한글만 입력되도록 하였습니다. 펜을 선택하지 않으면 검은색으로 출력!! </td>
</tr>
<tr><td height=10></td></tr>
</table>
<? include "inc.write_top.php";?>
<? for ($i=0; $i<count($list); $i++) { //리플 위치 조정을 위한 include
include "inc.list_main.php";
?>
<table width=95% border=0 cellpadding=3 cellspacing=0 align=center>
<form name="fboardlist" method="post">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<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="page" value="<?=$page?>">
<input type="hidden" name="sw" value="">
<tr><td colspan=2 width="<?=$width?>" height=1 background='<?=$board_skin_path?>/img/line_width.gif'></td></tr>
<tr>
<td colspan=2 width=100% align=center>
<table width=100% border=0 cellpadding=0 cellspacing=0 align=center>
<tr>
<? if ($is_checkbox) { ?>
<td width="40" align="center" valign="middle"><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></td>
<? } ?>
<td width=30 align=left valign=top>
<font color='<?=$list[$i][wr_link1]?>'><?=$list[$i][wr_id]?></font>
</td>
<td align=left valign=top>
<font color='<?=$list[$i][wr_link1]?>'><?=$list[$i][wr_content]?></font> <?=$list[$i][icon_new]?>
<?=$show_delete_begin?>
<?=$a_delete?><img src='<?=$board_skin_path?>/img/delete.gif' width='9' height='9' border='0' alt='삭제하기'></a>
<?=$show_delete_end?>
</td>
<td width=120 align=right valign=top>
<font color='<?=$list[$i][wr_link1]?>'><?=$list[$i][wr_datetime]?></font>
</td>
<td width=70 align=right valign=top>
<?=$list[$i][mb_icon]?><font color='#000000'><?=$list[$i][name]?></font>
</td>
</tr>
</table>
</td>
</tr><!-- 본문내용 끝-->
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan=2 align=center height=100 class='content contentbg'>자료가 없습니다.</td></tr>"; } ?>
<tr><td colspan=2 width="<?=$r_width?>" height=1 background='<?=$board_skin_path?>/img/line_width.gif'></td></tr>
</form>
</table>
<!-- 페이지 표시 시작 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="37" align="center" valign="middle" background="<?=$board_skin_path?>/img/number_line2.gif">
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center">
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' width=50 height=20 border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<font style=\"font-family:돋움; font-size:9pt; color:#797979\">$1</font>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<font style=\"font-family:돋움; font-size:9pt; color:orange;\">$1</font>", $write_pages);
?>
<strong><?=$write_pages?></strong>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' width=50 height=20 border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0" align="absmiddle"></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0" align="absmiddle"></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0" align="absmiddle"></a>
<? } ?>
<? if ($is_checkbox) { ?>
<script language="JavaScript">
function all_checked(sw){
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
function check_confirm(str){
var f = document.fboardlist;
var chk_count = 0;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}
if (!chk_count) {
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
// 선택한 게시물 삭제
function select_delete(){
var f = document.fboardlist;
str = "삭제";
if (!check_confirm(str))
return;
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;
f.action = "./delete_all.php";
f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw){
var f = document.fboardlist;
if (sw == "copy")
str = "복사";
else
str = "이동";
if (!check_confirm(str))
return;
var sub_win = window.open("", "move", "left=50, top=50, width=396, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$select_table = $g4[write_prefix] .$bo_table;
$sql2 = "select wr_content from $select_table order by wr_id DESC";
$row2 = sql_fetch($sql2);
$last_word = substr("$row2[wr_content]",-2,2);
?>
<table width="95%" border="0" cellspacing="0" cellpadding="0" height=40>
<tr>
<td width="70%" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <img src="<?=$board_skin_path?>/img/mk.gif" align="absmiddle"> <a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>'><font size=4><strong><?=$board[bo_subject]?></strong></font></a>
</td>
</tr>
</table>
</td>
<td width="30%" valign="middle" align=right>
<table align="center" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td style="font-size:10pt;font-family:돋움;" width="100%">
<font class=w_font>게시물 <?=number_format($total_count)?>건</font>
<? if($admin_href) { ?>
<a href="javascript:void(window.open('<?=$admin_href?>','sirini_admin_open','width=980,height=700,menubar=no,scrollbars=yes,resizable=yes'));" onfocus="this.blur()">관리화면 </a>
<? }?>
<a href="javascript:void(window.open('<?=$board_skin_path?>/sirini.gadget.get.rss.php?bo_table=<?=$bo_table?>&route=<?=$_SERVER[REQUEST_URI]?>','gadget_rss','width=700,height=600,menubar=no,scrollbars=yes,resizable=yes'));" onfocus="this.blur()"><img src="<?=$board_skin_path?>/img/xml.gif" border="0" alt="RSS" title="이 게시판의 최근 글목록을 봅니다." align="absmiddle"></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width=95% border=0 cellpadding=0 cellspacing=0 align=center background="<?=$board_skin_path?>/img/top_03.gif">
<tr><td height=15></td></tr>
<tr>
<td style='padding-left:5px'>
<? if ($is_checkbox) { ?>
<INPUT onclick="if (this.checked) all_checked(true); else all_checked(false);" type=checkbox>
<? } ?>
'<font color=red><span><b><?=$last_word?></b></span></font>'
(으)로 시작하시고 한글만 입력되도록 하였습니다. 펜을 선택하지 않으면 검은색으로 출력!! </td>
</tr>
<tr><td height=10></td></tr>
</table>
<? include "inc.write_top.php";?>
<? for ($i=0; $i<count($list); $i++) { //리플 위치 조정을 위한 include
include "inc.list_main.php";
?>
<table width=95% border=0 cellpadding=3 cellspacing=0 align=center>
<form name="fboardlist" method="post">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<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="page" value="<?=$page?>">
<input type="hidden" name="sw" value="">
<tr><td colspan=2 width="<?=$width?>" height=1 background='<?=$board_skin_path?>/img/line_width.gif'></td></tr>
<tr>
<td colspan=2 width=100% align=center>
<table width=100% border=0 cellpadding=0 cellspacing=0 align=center>
<tr>
<? if ($is_checkbox) { ?>
<td width="40" align="center" valign="middle"><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></td>
<? } ?>
<td width=30 align=left valign=top>
<font color='<?=$list[$i][wr_link1]?>'><?=$list[$i][wr_id]?></font>
</td>
<td align=left valign=top>
<font color='<?=$list[$i][wr_link1]?>'><?=$list[$i][wr_content]?></font> <?=$list[$i][icon_new]?>
<?=$show_delete_begin?>
<?=$a_delete?><img src='<?=$board_skin_path?>/img/delete.gif' width='9' height='9' border='0' alt='삭제하기'></a>
<?=$show_delete_end?>
</td>
<td width=120 align=right valign=top>
<font color='<?=$list[$i][wr_link1]?>'><?=$list[$i][wr_datetime]?></font>
</td>
<td width=70 align=right valign=top>
<?=$list[$i][mb_icon]?><font color='#000000'><?=$list[$i][name]?></font>
</td>
</tr>
</table>
</td>
</tr><!-- 본문내용 끝-->
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan=2 align=center height=100 class='content contentbg'>자료가 없습니다.</td></tr>"; } ?>
<tr><td colspan=2 width="<?=$r_width?>" height=1 background='<?=$board_skin_path?>/img/line_width.gif'></td></tr>
</form>
</table>
<!-- 페이지 표시 시작 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="37" align="center" valign="middle" background="<?=$board_skin_path?>/img/number_line2.gif">
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center">
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' width=50 height=20 border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<font style=\"font-family:돋움; font-size:9pt; color:#797979\">$1</font>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<font style=\"font-family:돋움; font-size:9pt; color:orange;\">$1</font>", $write_pages);
?>
<strong><?=$write_pages?></strong>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' width=50 height=20 border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0" align="absmiddle"></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0" align="absmiddle"></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0" align="absmiddle"></a>
<? } ?>
<? if ($is_checkbox) { ?>
<script language="JavaScript">
function all_checked(sw){
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
function check_confirm(str){
var f = document.fboardlist;
var chk_count = 0;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}
if (!chk_count) {
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
// 선택한 게시물 삭제
function select_delete(){
var f = document.fboardlist;
str = "삭제";
if (!check_confirm(str))
return;
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;
f.action = "./delete_all.php";
f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw){
var f = document.fboardlist;
if (sw == "copy")
str = "복사";
else
str = "이동";
if (!check_confirm(str))
return;
var sub_win = window.open("", "move", "left=50, top=50, width=396, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>