테스트 사이트 - 개발 중인 베타 버전입니다

최근게시물 공백문제

· 11년 전 · 3168 · 2
공백.jpg
수고하십니다.
최근게시물을 출력하는데 최근게시물 스킨이 상하공백이 너무 많이 생깁니다.
수정하는곳을 찾기가 힘든데 답변좀 부탁드립니다.

소스는

latest.skin.php
--------------------------------------

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$latest_width = "330"; //탭메뉴 폭과 같게
?>

<style>
.la_he { font-family:굴림; font-size:9pt; color:#636363;line-height:80%;}
</style>

<table width='<?=$latest_width?>' cellpadding='0' cellspacing='0' border='0' valign='top'>
<tr>
<td height='3' colspan='3'></td>
</tr>

<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td width='20' height='25' style='padding-left:5px; padding-top:3px;'><img src='<?=$latest_skin_path?>/img/latest_icon.gif' width='9' height='9' border='0'></td>
<td width='<?=$latest_width-90?>' style='padding-top:3px;' class='la_he'>

<?
$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],20)."</span>"; //제목 글자수 자르기

echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}' title='{$list[$i][subject]}' onfocus='this.blur()'>{$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>";
?>

</td>
<td width='70' align='center' class='la_he' style='padding-top:3px;'><span style='font-size:8pt; color:#999999;'><?=$list[$i][datetime]?></span>
</td>
</tr>
<tr><td height='1' colspan='3' background='<?=$latest_skin_path?>/img/line.gif'></td></tr>
<? } ?>

<? if (count($list) == 0) { ?><tr><td colspan=3 align=center height=100><font color=#6A6A6A>게시물이 없습니다.</font></td></tr><? } ?>

</tr>
</table>
--------------------------------------------------------------
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 = "330"; //탭메뉴 폭

$tab_gr = "bk21"; //그룹명 또는 아무끼나 맴대루

$tab_bo1 = "archives"; //처음 출력될 게시판 ID
$tab_bo2 = "cost"; //공지 게시판 ID
$tab_bo3 = "forums"; //질답 게시판 ID
$tab_bo4 = "result"; //질답 게시판 ID
?>


<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=74 valign='top' background='<?=$tab_img?>/tabbar_bg.gif'>
<a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo1?>">
<img id="tab_bar1" style="cursor:pointer;" onMouseOver="tab_img_change(1)" src="<?=$tab_img?>/tab1_off.gif" width="74" height="26" border="0">
</a>
</td>
<td width=74 background='<?=$tab_img?>/tabbar_bg.gif'>
<a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo2?>">
<img id="tab_bar2" style="cursor:pointer;" onMouseOver="tab_img_change(2)" src="<?=$tab_img?>/tab2_off.gif" width="74" height="26" border="0">
</a>
</td>
<td width=74 background='<?=$tab_img?>/tabbar_bg.gif'>
<a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo3?>">
<img id="tab_bar3" style="cursor:pointer;" onMouseOver="tab_img_change(3)" src="<?=$tab_img?>/tab3_off.gif" width="74" height="26" border="0">
</a>
</td>
<td width=74 background='<?=$tab_img?>/tabbar_bg.gif'>
<a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo4?>">
<img id="tab_bar4" style="cursor:pointer;" onMouseOver="tab_img_change(4)" src="<?=$tab_img?>/tab4_off.gif" width="74" height="26" border="0">
</a>
</td>
<td width='<?=$tab_width-296?>' background='<?=$tab_img?>/tabbar_bg.gif' style='padding-top:3px;' class='la'><b><?//=$tab_gr?></b></td>
</tr>
<tr>
<td colspan='5'>
<div id="tab_view1">
<?=latest('bara_latest',$tab_bo1, 5, 100); //제목길이는 최신글 스킨에서 수정요 ?>
</div>
<div id="tab_view2" style="display: none">
<?=latest('bara_latest',$tab_bo2, 5, 100);?>
</div>
<div id="tab_view3" style="display: none">
<?=latest('bara_latest',$tab_bo3, 5, 100);?>
</div>
<div id="tab_view4" style="display: none">
<?=latest('bara_latest',$tab_bo4, 5, 100);?>
</div>
</td>
</tr>
</table>
입니다.
수고하십시오

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 2개

제가 bada_tab 최근 게시물을 쓰는데... 복사해서 테스트해 봤는데... 이상없이 잘 출력됩니다. ^^
틀린점은 daba_tab.php의 68라인
<?=latest('bara_latest',$tab_bo1, 5, 100);?> 을 보면 5줄 출력되어야 하는데 4개만 출력됩니다. ^^
제가 테스트할땐 5개 잘나와요~~ 나머지 1개가 공백일 가능성이.... ^^
11년 전
답변감사합니다. 아래글자와 붙게끔 저 공백을 없애고 4줄만 사용하고 싶은데 아시면 답변좀 부탁드립니다.

게시글 목록

번호 제목
284113
284104
284099
284097
284096
284092
284090
284085
284084
284080
284077
284073
284070
284061
284058
284056
284050
284048
284047
284046