방명록 스킨 수정중...list.skin.php 정보
방명록 스킨 수정중...list.skin.php본문
현재 방명록스킨이구요.
글을 쓰면 글이 위에 올라와야 하는데..
맨밑으로 가 있습니다.
다른메뉴 갔다가 돌아오면 정상으로 맨 위에 올라와 있고요..
소스 첨부할테니 좀 도와주세요^^
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 8;
$cmt_width = $width - 100;
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
if ($member[mb_id]) {
$name = $member[mb_nick];
$email = $member[mb_email];
$homepage = set_http($member[mb_homepage]);
if($is_admin) {
$wr_password = $write[wr_password];
}
}
?>
<style>
<!--
a.text:link, a.text:visited, a.text:active { color:#A8A8A8; text-decoration:none;}
a.text:hover { color:#FFBECC; text-decoration:none;}
.s11 { font-family:Tahoma,Verdana,돋움; font-size:11px;}
.color_pink1 { color:#F99FA6; }
.color_pink2 { color:#EFA8AE; }
.color_gray1 { color:#BCBCBC; }
.color_gray2 { color:#999999; }
.ed { background-color:#FFF6F6; border:1px solid #FFE6E6;}
.vc_pad1 { PADDING-LEFT: 6px; PADDING-top: 5px; PADDING-BOTTOM: 5px; }
.vc_pad2 { PADDING-RIGHT: 6px; PADDING-top: 4px; PADDING-BOTTOM: 4px; }
.ctlh { font-family:맑은 고딕,돋움,Tahoma,Verdana,굴림; font-size:12px; color:#CCFFFF; }
-->
</style>
<style>
.in_bg { font-family:Tahoma,굴림; font-size:9pt; color:#FFFFFF; background-color:#4F4F4F; border:1 solid #656565; }
.te_bg { font-family:Tahoma,굴림; font-size:9pt; color:#3A3C3B; background-color:#3A3C3B; border:1 solid #656565;
SCROLLBAR-FACE-COLOR: #e1e1e1; SCROLLBAR-HIGHLIGHT-COLOR: #f9f9f9; SCROLLBAR-SHADOW-COLOR: #999999; SCROLLBAR-3DLIGHT-COLOR: #999999; SCROLLBAR-ARROW-COLOR: #ffffff; SCROLLBAR-TRACK-COLOR: #e9e9e9; SCROLLBAR-DARKSHADOW-COLOR: #f9f9f9 overflow-x:hidden; overflow-y:auto; }
</style>
<input type=hidden name=w value="<?=$w?>">
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0>
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><? include ("$board_skin_path/write.skin.php"); ?></td>
</tr>
<!-- 공지사항 시작 -->
<? if($board[bo_10]) { ?>
<tr><td height="10"></td></tr>
<tr>
<td align="center">
<table width="320" height="50" cellpadding=0 cellspacing=0 style="border:1 #e7e7e7 solid">
<tr>
<td bgcolor=#F9F7F9 style="padding:8" <?=$board[bo_9]?>><?=$board[bo_10]?></td>
</tr>
</table>
</td>
</tr>
<? } ?>
<!-- 공지사항 끝 -->
<tr><td height="10"></td></tr>
<tr>
<td align="center">
<!-- 게시물 리스트 시작 -->
<?
$lists = array();
for ($i=0; $i<count($list); $i++) {
$lists[$i] = $list[$i];
}
?>
<? for ($ii=0; $ii < count($lists); $ii++) {
$profile = get_member($lists[$ii][mb_id]);
include "$board_skin_path/inc.list_main.php";
$secret_msg="";
$reply_allow="";
$wr_homepage = set_http($lists[$ii][wr_homepage]);
if($lists[$ii][wr_option]=="secret") {
if($member[mb_id] == $lists[$ii][mb_id] || $is_admin) {
$reply_allow = "yes";
$secret_msg = "<br><br><font color=#FF89A3>(관리자와 글쓴이에게만 보이는 비밀글입니다.)</font>";
$a_update = str_replace("w=u","w=u&mode=secret",$a_update);
} else {
$lists[$ii][wr_content] = "<font color=#FF89A3>글쓴이와 관리자만 볼 수 있습니다.";
if(!$lists[$ii][mb_id]) {
$lists[$ii][wr_content] .= "<br><br> 비회원으로 쓰신 글은 글쓴이확인이 불가능하므로 내용확인이 불가능합니다.";
}
$lists[$ii][wr_content] .= "</font>";
//$lists[$ii][name] = "<font color=#ff0000>비공개</font>";
$reply_allow = "no";
$secret_msg = "";
}
}
?>
<table width="<?=$width?>" border="0" cellspacing="0" cellpadding="0" style='table-layout:fixed;'>
<tr>
<td>
<table width="700px" border="0" cellspacing="0" cellpadding="0" style='table-layout:fixed;'>
<form name="fboardlist" method="post" action="" style="margin:0">
<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" height="1"></td></tr><tr><td colspan="2" height="1"></td></tr>
<tr>
<td width="99%" height="28" class="s11" align="left"><font class="color_pink2">No.<?=$lists[$ii][num]?></font> <?=$lists[$ii][name]?> <? if ($lists[$ii][wr_homepage] && $reply_allow != "no") { echo "<a href='{$wr_homepage}' target='_blank'><img src='{$board_skin_path}/img/home.gif' border='0'></a>"; } ?></td>
<td width="20%" align="right" class="w_padding3; vc_pad2"><?=$show_update_begin?><?=$a_update?><img src="<?=$board_skin_path?>/img/btn_edit.gif" alt="수정" border="0" align="absmiddle" title="수정하기"></a><?=$show_update_end?> <?=$show_delete_begin?><?=$a_delete?><img src="<?=$board_skin_path?>/img/btn_del.gif" alt="삭제" border="0" align="absmiddle" title="삭제하기"></a><?=$show_delete_end?></td>
</tr>
<tr><td colspan="2" height="1" ></td></tr>
<tr><td colspan="2" height="1"></td></tr>
<tr><td height=6 colspan=2></td></tr>
<tr>
<td width="100%" colspan="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="60" valign="top" align="left">
<?
// 링크
if (($lists[$ii][mb_id] == "ganel" || $lists[$ii][mb_id] == "chie00") && $lists[$ii][wr_option]!="secret") {
echo "<img src='{$board_skin_path}/icon/{$lists[$ii][mb_id]}.gif'>";
}
else if ($lists[$ii][link][1]) {
echo "<img src='{$board_skin_path}/icon/{$lists[$ii][wr_link1]}.gif'>";
}
else {
echo "<img src='{$board_skin_path}/icon/icon1.gif'>";
}
?></td>
<td class="vc_pad1" align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="35" height="20" style="font-size:0pt; line-height:1px;"><img src="<?=$board_skin_path?>/images/talkbox_03.gif" width="35" height="20" border="0" /></td>
<td style="background:url(<?=$board_skin_path?>/images/talkbox_04.gif) repeat-x; font-size:0pt; line-height:1px;" height="20"></td>
<td width="16" height="20" style="font-size:0pt; line-height:1px;"><img src="<?=$board_skin_path?>/images/talkbox_06.gif" width="16" height="20" border="0" /></td>
</tr>
<tr>
<td valign="top" style="background:url(<?=$board_skin_path?>/images/talkbox_11.gif) repeat-y; "><img src="<?=$board_skin_path?>/images/talkbox_08.gif" width="35" height="17" /></td>
<td bgcolor="#111111" valign="top" ><? echo nl2br(url_auto_link($lists[$ii][wr_content])); ?><? echo $secret_msg; ?><br><br></td>
<td style="background:url(<?=$board_skin_path?>/images/talkbox_12.gif) repeat-y" valign="top"></td>
</tr>
<tr>
<td valign="top" style="background:url(<?=$board_skin_path?>/images/talkbox_11.gif) repeat-y"></td>
<td bgcolor="#111111" align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
<td height="18" colspan="2" align="right" class="s11 color_pink2"><?=date("F j, Y, g:i a", strtotime($lists[$ii][wr_datetime]))?> <? if ($is_ip_view) { echo "| {$lists[$ii][wr_ip]} "; } ?><? if($is_admin || $lists[$ii][comment_cnt]) { ?>| <? if($is_admin) { ?><a href="javascript:comment_wri('wri', '<?=$lists[$ii][wr_id]?>');"><? } ?><font class="s11 color_pink1"><? if($lists[$ii][comment_cnt]) { ?>답변 <?=$lists[$ii][comment_cnt]?> <? } else { ?>답변 달기 <? } ?></font><? if($is_admin) { ?></a><? } ?><? } ?></td>
</tr></table><? echo $secret_msg; ?></td>
<td style="background:url(<?=$board_skin_path?>/images/talkbox_12.gif) repeat-y"></td>
</tr>
<tr>
<td style="font-size:1pt; line-height:0px;"><img src="<?=$board_skin_path?>/images/talkbox_15.gif" width="35" height="16" /></td>
<td style="background:url(<?=$board_skin_path?>/images/talkbox_16.gif) repeat-x; font-size:1pt; line-height:1px;"></td>
<td style="font-size:1pt; line-height:0px;"><img src="<?=$board_skin_path?>/images/talkbox_17.gif" width="16" height="16" /></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</form>
<tr>
<td colspan="2" align=right>
<table width="88%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!-- 게시물 내용 보기 끝 -->
<?
$wr_id = $lists[$ii][wr_id];
include ("$board_skin_path/view_comment.php");
?>
</td>
</tr>
</table>
</td>
</tr>
<tr><td colspan="2" height="1" style="background-color:#111111;"></td></tr>
<tr><td colspan="2" height="1" style="background-color:#444444;;"></td></tr>
</table>
</td>
</tr>
<tr>
<td height="16"></td>
</tr>
</table>
<?
}
// 필터
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";
if (!$member[mb_id]) // 비회원일 경우에만
echo "<script language='javascript' src='$g4[path]/js/md5.js'></script>\n";
?>
<? if (count($lists) == 0) { echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td align=center colspan='2' height=100 class='content contentbg'>자료가 없습니다.</td></tr></table>"; } ?>
<!-- 페이지 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center" height=30 valign=bottom>
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' border=0 title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><font class=\"s11 color_gray1\">$1</font></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font class=\"s11 color_pink1\">$1</font></b>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' border=0 title='다음검색'></a>"; } ?>
</td>
</tr>
</table>
<!-- 버튼 링크 -->
<form name=fsearch method=get style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width="50%" height="40">
<? if ($list_href) { ?><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0"></a><? } ?>
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0"></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0"></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0"></a>
<? } ?>
</td>
<td width="50%" align="right">
<input type="hidden" name=sfl value='wr_subject||wr_content'><input type="hidden" name=sop value="and">
<input name=stx maxlength=15 size=20 itemname="검색어" required value="<?=$stx?>" class="in_bg">
<input type=image src="<?=$board_skin_path?>/img/search_btn.gif" border=0 align=absmiddle></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script language="JavaScript">
//if ("<?=$sca?>") document.fcategory.sca.value = "<?=$sca?>";
if ("<?=$stx?>") {
document.fsearch.sfl.value = "<?=$sfl?>";
document.fsearch.sop.value = "<?=$sop?>";
}
</script>
<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('<?=$board[bo_image_width]?>');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
window.onload = resize_image;
</script>
<? 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; // 개별 페이지 접근 불가
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 8;
$cmt_width = $width - 100;
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
if ($member[mb_id]) {
$name = $member[mb_nick];
$email = $member[mb_email];
$homepage = set_http($member[mb_homepage]);
if($is_admin) {
$wr_password = $write[wr_password];
}
}
?>
<style>
<!--
a.text:link, a.text:visited, a.text:active { color:#A8A8A8; text-decoration:none;}
a.text:hover { color:#FFBECC; text-decoration:none;}
.s11 { font-family:Tahoma,Verdana,돋움; font-size:11px;}
.color_pink1 { color:#F99FA6; }
.color_pink2 { color:#EFA8AE; }
.color_gray1 { color:#BCBCBC; }
.color_gray2 { color:#999999; }
.ed { background-color:#FFF6F6; border:1px solid #FFE6E6;}
.vc_pad1 { PADDING-LEFT: 6px; PADDING-top: 5px; PADDING-BOTTOM: 5px; }
.vc_pad2 { PADDING-RIGHT: 6px; PADDING-top: 4px; PADDING-BOTTOM: 4px; }
.ctlh { font-family:맑은 고딕,돋움,Tahoma,Verdana,굴림; font-size:12px; color:#CCFFFF; }
-->
</style>
<style>
.in_bg { font-family:Tahoma,굴림; font-size:9pt; color:#FFFFFF; background-color:#4F4F4F; border:1 solid #656565; }
.te_bg { font-family:Tahoma,굴림; font-size:9pt; color:#3A3C3B; background-color:#3A3C3B; border:1 solid #656565;
SCROLLBAR-FACE-COLOR: #e1e1e1; SCROLLBAR-HIGHLIGHT-COLOR: #f9f9f9; SCROLLBAR-SHADOW-COLOR: #999999; SCROLLBAR-3DLIGHT-COLOR: #999999; SCROLLBAR-ARROW-COLOR: #ffffff; SCROLLBAR-TRACK-COLOR: #e9e9e9; SCROLLBAR-DARKSHADOW-COLOR: #f9f9f9 overflow-x:hidden; overflow-y:auto; }
</style>
<input type=hidden name=w value="<?=$w?>">
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0>
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><? include ("$board_skin_path/write.skin.php"); ?></td>
</tr>
<!-- 공지사항 시작 -->
<? if($board[bo_10]) { ?>
<tr><td height="10"></td></tr>
<tr>
<td align="center">
<table width="320" height="50" cellpadding=0 cellspacing=0 style="border:1 #e7e7e7 solid">
<tr>
<td bgcolor=#F9F7F9 style="padding:8" <?=$board[bo_9]?>><?=$board[bo_10]?></td>
</tr>
</table>
</td>
</tr>
<? } ?>
<!-- 공지사항 끝 -->
<tr><td height="10"></td></tr>
<tr>
<td align="center">
<!-- 게시물 리스트 시작 -->
<?
$lists = array();
for ($i=0; $i<count($list); $i++) {
$lists[$i] = $list[$i];
}
?>
<? for ($ii=0; $ii < count($lists); $ii++) {
$profile = get_member($lists[$ii][mb_id]);
include "$board_skin_path/inc.list_main.php";
$secret_msg="";
$reply_allow="";
$wr_homepage = set_http($lists[$ii][wr_homepage]);
if($lists[$ii][wr_option]=="secret") {
if($member[mb_id] == $lists[$ii][mb_id] || $is_admin) {
$reply_allow = "yes";
$secret_msg = "<br><br><font color=#FF89A3>(관리자와 글쓴이에게만 보이는 비밀글입니다.)</font>";
$a_update = str_replace("w=u","w=u&mode=secret",$a_update);
} else {
$lists[$ii][wr_content] = "<font color=#FF89A3>글쓴이와 관리자만 볼 수 있습니다.";
if(!$lists[$ii][mb_id]) {
$lists[$ii][wr_content] .= "<br><br> 비회원으로 쓰신 글은 글쓴이확인이 불가능하므로 내용확인이 불가능합니다.";
}
$lists[$ii][wr_content] .= "</font>";
//$lists[$ii][name] = "<font color=#ff0000>비공개</font>";
$reply_allow = "no";
$secret_msg = "";
}
}
?>
<table width="<?=$width?>" border="0" cellspacing="0" cellpadding="0" style='table-layout:fixed;'>
<tr>
<td>
<table width="700px" border="0" cellspacing="0" cellpadding="0" style='table-layout:fixed;'>
<form name="fboardlist" method="post" action="" style="margin:0">
<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" height="1"></td></tr><tr><td colspan="2" height="1"></td></tr>
<tr>
<td width="99%" height="28" class="s11" align="left"><font class="color_pink2">No.<?=$lists[$ii][num]?></font> <?=$lists[$ii][name]?> <? if ($lists[$ii][wr_homepage] && $reply_allow != "no") { echo "<a href='{$wr_homepage}' target='_blank'><img src='{$board_skin_path}/img/home.gif' border='0'></a>"; } ?></td>
<td width="20%" align="right" class="w_padding3; vc_pad2"><?=$show_update_begin?><?=$a_update?><img src="<?=$board_skin_path?>/img/btn_edit.gif" alt="수정" border="0" align="absmiddle" title="수정하기"></a><?=$show_update_end?> <?=$show_delete_begin?><?=$a_delete?><img src="<?=$board_skin_path?>/img/btn_del.gif" alt="삭제" border="0" align="absmiddle" title="삭제하기"></a><?=$show_delete_end?></td>
</tr>
<tr><td colspan="2" height="1" ></td></tr>
<tr><td colspan="2" height="1"></td></tr>
<tr><td height=6 colspan=2></td></tr>
<tr>
<td width="100%" colspan="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="60" valign="top" align="left">
<?
// 링크
if (($lists[$ii][mb_id] == "ganel" || $lists[$ii][mb_id] == "chie00") && $lists[$ii][wr_option]!="secret") {
echo "<img src='{$board_skin_path}/icon/{$lists[$ii][mb_id]}.gif'>";
}
else if ($lists[$ii][link][1]) {
echo "<img src='{$board_skin_path}/icon/{$lists[$ii][wr_link1]}.gif'>";
}
else {
echo "<img src='{$board_skin_path}/icon/icon1.gif'>";
}
?></td>
<td class="vc_pad1" align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="35" height="20" style="font-size:0pt; line-height:1px;"><img src="<?=$board_skin_path?>/images/talkbox_03.gif" width="35" height="20" border="0" /></td>
<td style="background:url(<?=$board_skin_path?>/images/talkbox_04.gif) repeat-x; font-size:0pt; line-height:1px;" height="20"></td>
<td width="16" height="20" style="font-size:0pt; line-height:1px;"><img src="<?=$board_skin_path?>/images/talkbox_06.gif" width="16" height="20" border="0" /></td>
</tr>
<tr>
<td valign="top" style="background:url(<?=$board_skin_path?>/images/talkbox_11.gif) repeat-y; "><img src="<?=$board_skin_path?>/images/talkbox_08.gif" width="35" height="17" /></td>
<td bgcolor="#111111" valign="top" ><? echo nl2br(url_auto_link($lists[$ii][wr_content])); ?><? echo $secret_msg; ?><br><br></td>
<td style="background:url(<?=$board_skin_path?>/images/talkbox_12.gif) repeat-y" valign="top"></td>
</tr>
<tr>
<td valign="top" style="background:url(<?=$board_skin_path?>/images/talkbox_11.gif) repeat-y"></td>
<td bgcolor="#111111" align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
<td height="18" colspan="2" align="right" class="s11 color_pink2"><?=date("F j, Y, g:i a", strtotime($lists[$ii][wr_datetime]))?> <? if ($is_ip_view) { echo "| {$lists[$ii][wr_ip]} "; } ?><? if($is_admin || $lists[$ii][comment_cnt]) { ?>| <? if($is_admin) { ?><a href="javascript:comment_wri('wri', '<?=$lists[$ii][wr_id]?>');"><? } ?><font class="s11 color_pink1"><? if($lists[$ii][comment_cnt]) { ?>답변 <?=$lists[$ii][comment_cnt]?> <? } else { ?>답변 달기 <? } ?></font><? if($is_admin) { ?></a><? } ?><? } ?></td>
</tr></table><? echo $secret_msg; ?></td>
<td style="background:url(<?=$board_skin_path?>/images/talkbox_12.gif) repeat-y"></td>
</tr>
<tr>
<td style="font-size:1pt; line-height:0px;"><img src="<?=$board_skin_path?>/images/talkbox_15.gif" width="35" height="16" /></td>
<td style="background:url(<?=$board_skin_path?>/images/talkbox_16.gif) repeat-x; font-size:1pt; line-height:1px;"></td>
<td style="font-size:1pt; line-height:0px;"><img src="<?=$board_skin_path?>/images/talkbox_17.gif" width="16" height="16" /></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</form>
<tr>
<td colspan="2" align=right>
<table width="88%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!-- 게시물 내용 보기 끝 -->
<?
$wr_id = $lists[$ii][wr_id];
include ("$board_skin_path/view_comment.php");
?>
</td>
</tr>
</table>
</td>
</tr>
<tr><td colspan="2" height="1" style="background-color:#111111;"></td></tr>
<tr><td colspan="2" height="1" style="background-color:#444444;;"></td></tr>
</table>
</td>
</tr>
<tr>
<td height="16"></td>
</tr>
</table>
<?
}
// 필터
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";
if (!$member[mb_id]) // 비회원일 경우에만
echo "<script language='javascript' src='$g4[path]/js/md5.js'></script>\n";
?>
<? if (count($lists) == 0) { echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td align=center colspan='2' height=100 class='content contentbg'>자료가 없습니다.</td></tr></table>"; } ?>
<!-- 페이지 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center" height=30 valign=bottom>
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' border=0 title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><font class=\"s11 color_gray1\">$1</font></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><font class=\"s11 color_pink1\">$1</font></b>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' border=0 title='다음검색'></a>"; } ?>
</td>
</tr>
</table>
<!-- 버튼 링크 -->
<form name=fsearch method=get style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width="50%" height="40">
<? if ($list_href) { ?><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0"></a><? } ?>
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0"></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0"></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0"></a>
<? } ?>
</td>
<td width="50%" align="right">
<input type="hidden" name=sfl value='wr_subject||wr_content'><input type="hidden" name=sop value="and">
<input name=stx maxlength=15 size=20 itemname="검색어" required value="<?=$stx?>" class="in_bg">
<input type=image src="<?=$board_skin_path?>/img/search_btn.gif" border=0 align=absmiddle></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script language="JavaScript">
//if ("<?=$sca?>") document.fcategory.sca.value = "<?=$sca?>";
if ("<?=$stx?>") {
document.fsearch.sfl.value = "<?=$sfl?>";
document.fsearch.sop.value = "<?=$sop?>";
}
</script>
<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('<?=$board[bo_image_width]?>');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
window.onload = resize_image;
</script>
<? 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>
<? } ?>
댓글 전체
해당 게시판 관리자페이지 들어가 보시면
"리스트 정렬 필드" 셀렉트박스가 있는데
그 값이 "wr_datetime asc : 날짜 이전것 부터" 로 설정되어있지는 않은지 확인해 보시고
"wr_num, wr_reply : 기본" 또는 "wr_datetime desc : 날짜 최근것 부터"로 변경해 보시기 바랍니다.
"리스트 정렬 필드" 셀렉트박스가 있는데
그 값이 "wr_datetime asc : 날짜 이전것 부터" 로 설정되어있지는 않은지 확인해 보시고
"wr_num, wr_reply : 기본" 또는 "wr_datetime desc : 날짜 최근것 부터"로 변경해 보시기 바랍니다.
AKvH님 말씀대로 하나하나씩 변경해 보았는데.
마찬가지네요...도대체 뭔지..?
마찬가지네요...도대체 뭔지..?
저도 같은 스킨을 사용중입니다.
이 방법이 정확한 방법인지 아닌지 저는 모릅니다만....;;;
어쩌다 보니 되긴합니다...-_-;;
스킨에 포함된 파일중에 write_update.skin.php 를 열어보시면 아래와 같이 되어 있습니다.
// 자신만의 코드를 넣어주세요.
goto_url("./board.php?bo_table=$bo_table" . $qstr);
이 부분을 아래처럼 고쳐주세요.
goto_url("./board.php?bo_table=$bo_table");
맨뒤에 $qstr 을 지운겁니다.
통박으로 하다보니 된건데..(제가 늘 이렇습니다만...)
저만 되는건지 도투락님도 되는건지는 모르겠습니다..^^;;
이 방법이 정확한 방법인지 아닌지 저는 모릅니다만....;;;
어쩌다 보니 되긴합니다...-_-;;
스킨에 포함된 파일중에 write_update.skin.php 를 열어보시면 아래와 같이 되어 있습니다.
// 자신만의 코드를 넣어주세요.
goto_url("./board.php?bo_table=$bo_table" . $qstr);
이 부분을 아래처럼 고쳐주세요.
goto_url("./board.php?bo_table=$bo_table");
맨뒤에 $qstr 을 지운겁니다.
통박으로 하다보니 된건데..(제가 늘 이렇습니다만...)
저만 되는건지 도투락님도 되는건지는 모르겠습니다..^^;;
앗..시하님 방가와요^^
시하님 스킨 잘 쓰고 있습니다.
그리고 시하님 덕분에 문제 해결 되었습니다.
스킨을 왜 저렇게 만들었나 제작자 원망하고 있었는데...ㅜ.ㅜ
한방에 해결해 주셔서 정말정말 감사합니다^^ 꾸벅~
시하님 스킨 잘 쓰고 있습니다.
그리고 시하님 덕분에 문제 해결 되었습니다.
스킨을 왜 저렇게 만들었나 제작자 원망하고 있었는데...ㅜ.ㅜ
한방에 해결해 주셔서 정말정말 감사합니다^^ 꾸벅~