알라뷰의 설 기념_2 탭메뉴 더블용 질문드립니다. 정보
알라뷰의 설 기념_2 탭메뉴 더블용 질문드립니다.본문
알라뷰의 설 기념_2 탭메뉴 더블용 최신글 스킨을 했습니다.
그런데 아래 첨부이미지와 같이 하나의 게시글인 여러번 나오기도하고
제목은 안나오고 날짜만 나오기도합니다.
아래처럼제목은 안나오고 날짜만 나오는 게시판에 글을 적으면
위와 같이 중복되어서 나오더라구요.. 이거 어떡해 해야할지.. ㅡㅜ
오류 사이트입니다. http://www.nungin.or.kr/edasom/
고수님들 부탁드립니다. ㅡㅜ

댓글 전체
리스트를 불러오는 소스입니다. bada_tab.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$tab_img = "{$g4[path]}/tab_img"; //이미지 경로
$tab_width = "350"; //탭메뉴 폭
$tab_gr = "게시판"; //그룹명 또는 아무끼나 맴대루
$tab_bo1 = "f05"; //공지사항
$tab_bo2 = "f05"; //공지사항
$tab_bo3 = "f02"; //열린게시판
$tab_bo4 = "f06"; //나눔소식
?><head>
<script language="javascript">
function tab_img_change(t){
for(var i = 1; i <= 4; i++) {
img = document.getElementById('tab_bar'+i);
img.src = "<?=$tab_img?>/tab"+i+"_off.gif";
eval("document.getElementById('tab_view"+i+"')").style.display="none";
if ( t == i ) {
img.src = "<?=$tab_img?>/tab"+i+"_on.gif";
eval("document.getElementById('tab_view"+i+"')").style.display="";
}
}
}
</script>
</head>
<!-- <style>
.la { font-family:굴림; font-size:9pt; color:#636363;}
</style> -->
<table width='<?=$tab_width?>' cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=40 height=29 background='<?=$tab_img?>/tabbar_bg.gif'><img id="tab_bar1" style="cursor:pointer;" onmouseover="tab_img_change(1)" src="<?=$tab_img?>/tab1_on.gif" width="40" height="29" border="0" /></td>
<td width='<?=$tab_width-185?>' background='<?=$tab_img?>/tabbar_bg.gif' style='padding-top:3px;' class='la'><b><?=$tab_gr?></b></td>
<td width=68 background='<?=$tab_img?>/tabbar_bg.gif'><a href="http://www.nungin.or.kr/edasom/bbs/board.php?bo_table=f05"><img id="tab_bar2" style="cursor:pointer;" onmouseover="tab_img_change(2)" src="<?=$tab_img?>/tab2_off.gif" width="68" height="29" border="0" /></a></td>
<td width=67 background='<?=$tab_img?>/tabbar_bg.gif'><a href="http://www.nungin.or.kr/edasom/bbs/board.php?bo_table=f02"><img id="tab_bar3" style="cursor:pointer;" onmouseover="tab_img_change(3)" src="<?=$tab_img?>/tab3_off.gif" width="67" height="29" border="0" /></a></td>
<td width=67 background='<?=$tab_img?>/tabbar_bg.gif'><a href="http://www.nungin.or.kr/edasom/bbs/board.php?bo_table=f06"><img id="tab_bar4" style="cursor:pointer;" onmouseover="tab_img_change(4)" src="<?=$tab_img?>/tab4_off.gif" width="67" height="29" border="0" /></a></td>
<td width=6 background='<?=$tab_img?>/tabbar_bg.gif'><img src='<?=$tab_img?>/tabbar_right.gif' width=6 height=29 border=0></td>
</tr>
<tr>
<td colspan='5'>
<div id="tab_view1">
<?=latest('bara_latest',$tab_bo1, 4, 100); //제목길이는 최신글 스킨에서 수정요 ?>
</div>
<div id="tab_view2" style="display: none">
<?=latest('bara_latest',$tab_bo2, 4, 100);?>
</div>
<div id="tab_view3" style="display: none">
<?=latest('bara_latest',$tab_bo3, 4, 100);?>
</div>
<div id="tab_view4" style="display: none">
<?=latest('bara_latest',$tab_bo4, 4, 100);?>
</div>
</td>
</tr>
</table>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$tab_img = "{$g4[path]}/tab_img"; //이미지 경로
$tab_width = "350"; //탭메뉴 폭
$tab_gr = "게시판"; //그룹명 또는 아무끼나 맴대루
$tab_bo1 = "f05"; //공지사항
$tab_bo2 = "f05"; //공지사항
$tab_bo3 = "f02"; //열린게시판
$tab_bo4 = "f06"; //나눔소식
?><head>
<script language="javascript">
function tab_img_change(t){
for(var i = 1; i <= 4; i++) {
img = document.getElementById('tab_bar'+i);
img.src = "<?=$tab_img?>/tab"+i+"_off.gif";
eval("document.getElementById('tab_view"+i+"')").style.display="none";
if ( t == i ) {
img.src = "<?=$tab_img?>/tab"+i+"_on.gif";
eval("document.getElementById('tab_view"+i+"')").style.display="";
}
}
}
</script>
</head>
<!-- <style>
.la { font-family:굴림; font-size:9pt; color:#636363;}
</style> -->
<table width='<?=$tab_width?>' cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=40 height=29 background='<?=$tab_img?>/tabbar_bg.gif'><img id="tab_bar1" style="cursor:pointer;" onmouseover="tab_img_change(1)" src="<?=$tab_img?>/tab1_on.gif" width="40" height="29" border="0" /></td>
<td width='<?=$tab_width-185?>' background='<?=$tab_img?>/tabbar_bg.gif' style='padding-top:3px;' class='la'><b><?=$tab_gr?></b></td>
<td width=68 background='<?=$tab_img?>/tabbar_bg.gif'><a href="http://www.nungin.or.kr/edasom/bbs/board.php?bo_table=f05"><img id="tab_bar2" style="cursor:pointer;" onmouseover="tab_img_change(2)" src="<?=$tab_img?>/tab2_off.gif" width="68" height="29" border="0" /></a></td>
<td width=67 background='<?=$tab_img?>/tabbar_bg.gif'><a href="http://www.nungin.or.kr/edasom/bbs/board.php?bo_table=f02"><img id="tab_bar3" style="cursor:pointer;" onmouseover="tab_img_change(3)" src="<?=$tab_img?>/tab3_off.gif" width="67" height="29" border="0" /></a></td>
<td width=67 background='<?=$tab_img?>/tabbar_bg.gif'><a href="http://www.nungin.or.kr/edasom/bbs/board.php?bo_table=f06"><img id="tab_bar4" style="cursor:pointer;" onmouseover="tab_img_change(4)" src="<?=$tab_img?>/tab4_off.gif" width="67" height="29" border="0" /></a></td>
<td width=6 background='<?=$tab_img?>/tabbar_bg.gif'><img src='<?=$tab_img?>/tabbar_right.gif' width=6 height=29 border=0></td>
</tr>
<tr>
<td colspan='5'>
<div id="tab_view1">
<?=latest('bara_latest',$tab_bo1, 4, 100); //제목길이는 최신글 스킨에서 수정요 ?>
</div>
<div id="tab_view2" style="display: none">
<?=latest('bara_latest',$tab_bo2, 4, 100);?>
</div>
<div id="tab_view3" style="display: none">
<?=latest('bara_latest',$tab_bo3, 4, 100);?>
</div>
<div id="tab_view4" style="display: none">
<?=latest('bara_latest',$tab_bo4, 4, 100);?>
</div>
</td>
</tr>
</table>
잘되는데요?
새로 작성하는거는 리스트에 잘 타나납니다 ㅡ.ㅡ;;
게시판 공지사항 최신리스트 보시면 날짜만 나오고 제목이 안나옵니다. 게시판을 보면 게시글들이 존재하구요 ㅡ.,ㅡ;
게시판 공지사항 최신리스트 보시면 날짜만 나오고 제목이 안나옵니다. 게시판을 보면 게시글들이 존재하구요 ㅡ.,ㅡ;
모두 정상적입니다.
공지부분 안나오는것은
최신글스킨에서 공지출력을 빼버려서...
latest.skin.php
꺽쇠부분을 바꾸어보세요
<?
$style = "font-family:돋움; font-size:9pt; color:#636363;";
if ($list[$i][icon_new])
$style = "style='font-family:돋움; font-size:9pt; color:#006F00;' ";
$subject = "<span $style>".cut_str($list[$i][subject],27)."</span>"; //제목 글자수 자르기
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}' title='{$list[$i][subject]}' onfocus='this.blur()'>";
if ($list[$i]['is_notice'])
echo "<strong>{$subject}</strong>";
else
echo "{$subject}";
if ($list[$i]['comment_cnt'])
echo " <span style='font-size:8pt; color:#9A9A9A;'>{$list[$i][comment_cnt]}</span>";
echo " " . $list[$i][icon_new];
echo "</a>";
?>
공지부분 안나오는것은
최신글스킨에서 공지출력을 빼버려서...
latest.skin.php
꺽쇠부분을 바꾸어보세요
<?
$style = "font-family:돋움; font-size:9pt; color:#636363;";
if ($list[$i][icon_new])
$style = "style='font-family:돋움; font-size:9pt; color:#006F00;' ";
$subject = "<span $style>".cut_str($list[$i][subject],27)."</span>"; //제목 글자수 자르기
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}' title='{$list[$i][subject]}' onfocus='this.blur()'>";
if ($list[$i]['is_notice'])
echo "<strong>{$subject}</strong>";
else
echo "{$subject}";
if ($list[$i]['comment_cnt'])
echo " <span style='font-size:8pt; color:#9A9A9A;'>{$list[$i][comment_cnt]}</span>";
echo " " . $list[$i][icon_new];
echo "</a>";
?>
앗 감사합니다.
제가 상단 스타일 부분을 수정한다고 깰짝데다 그부분이 지어졌었네요. ㅡㅜ;;
이제 잘 나옵니다
제가 상단 스타일 부분을 수정한다고 깰짝데다 그부분이 지어졌었네요. ㅡㅜ;;
이제 잘 나옵니다