최근게시물안 테이블안공백문제 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

최근게시물안 테이블안공백문제 정보

최근게시물안 테이블안공백문제

본문

수고하십니다.
최근게시물을 출력하는데 최근게시물 스킨이 상하공백이 너무 많이 생깁니다.
공백을 좀 없애고 싶습니다. 아래글씨가 탭쪽으로 좀 붙게 만들고 싶은데
답변좀 부탁드립니다.

소스는

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>
입니다.
수고하십시오

댓글 전체

latest.skin.php 부분에서

<style>
.la_he  {  font-family:굴림; font-size:9pt;  color:#636363;}
</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-bottom:3px;'><img src='<?=$latest_skin_path?>/img/latest_icon.gif' width='9' height='9' border='0'></td>
  <td width='<?=$latest_width-90?>' style='padding-bottom:3px;' class='la_he'>


요정도 로만 수정을 해주셔도 12픽셀을 줄이겠네요
<table width='<?=$latest_width?>' cellpadding='0' cellspacing='0' border='0' valign='top'>
 <tr>
  <td height='3' colspan='3'></td>
 </tr>


<--

 <tr>
  <td height='3' colspan='3'></td>
 </tr>

이부분 삭제
전체 66,558 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT