게시판 글 줄 사이 간격 조절 > 그누4 질문답변

그누4 질문답변

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

게시판 글 줄 사이 간격 조절 정보

게시판 글 줄 사이 간격 조절

본문

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
 
$tagsArray = explode(",",$view[wr_10]);
$tags = '';
for($ti=0; $ti<count($tagsArray); $ti++) {
 $tagTemp = trim($tagsArray[$ti]);
 $tagText = urlencode($tagTemp);
 if($tagKey == $tagTemp) {
  $tags .= "<a href='$g4[bbs_path]/search.php?sfl=wr_subject||wr_content||wr_10&sop=and&stx=$tagText'><span style='background-color:yellow'>$tagTemp</span></a> ";     
 } else {
  $tags .= "<a href='$g4[bbs_path]/search.php?sfl=wr_subject||wr_content||wr_10&sop=and&stx=$tagText' target='_blank'>$tagTemp</a> ";
 }
}
?>
<style type="text/css">
<!--
@import url("../../../webbus01.css");
-->
</style>
<!--프린트공간 시작 소스코드 시작-->
<link href="css/webbus01.css" rel="stylesheet" type="text/css" />
<div id='print_table'>
<!--프린트공간 시작 소스코드 끝-->

<!-- 게시글 보기 시작 -->
<table width="100%" align="center" cellpadding="0" cellspacing="0"><tr><td>
<div style="border-top:1px solid #ddd; border-bottom:1px solid #eee; clear:both; height:34px; background-color:FCFCFC; repeat-x;">
    <table border=0 cellpadding=0 cellspacing=0 width=100%>
    <tr>
        <td style="padding:8px 0 0 6px;">
            <div style="color:#333333; font-size:13px; font-family:돋움; font-weight:bold; word-break:break-all;">
            <?=cut_hangul_last(get_text($view[wr_subject]))?>
            </div>
        </td>
        <td align="right" style="padding:6px 6px 0 0;" width=250>
<?
    ob_start();
    ?>
    <? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_modify.gif' border='0' align='absmiddle'></a> "; } ?>
    <? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>
    <? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>
    <?
    $link_buttons = ob_get_contents();
    ob_end_flush();
    ?>
</td>
    </tr>
    </table>
</div>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr>
    <td height=40>
        <div style="float:left;"><span class="gray8s">작성자:</span> <span class="gray6s"><strong><?=$view[wr_name]?></strong></span>&nbsp;<!--IP주소 부분숨기기소스-->
<span class="gray6s">
<? if ($is_ip_view) {
            $ip0 = explode(".",$ip);
            $ip_guest = $ip0[0] .".♡.".$ip0[2].".".$ip0[3];
            $ip_admin = $ip0[0] .".".$ip0[1].".".$ip0[2].".".$ip0[3];
            if($member[mb_level] >= 10) { echo $ip_admin; } else { echo $ip_guest; }
          }
          ?>
  </span>
  <!--IP주소 부분숨기기소스 끝-->
</div>
        <div class="gray6s" style="float:right;"> 조회 : <span class="gray8s"><strong><?=number_format($view[wr_hit])?></strong></span>
        <? if ($is_good) { ?>&nbsp;<img src="<?=$board_skin_path?>/img/icon_good.gif" align=absmiddle><span class="oranges"><strong><?=number_format($view[wr_good])?></strong></span><? } ?>
        <? if ($is_nogood) { ?>&nbsp;<img src="<?=$board_skin_path?>/img/icon_nogood.gif" align=absmiddle><span class="gray8s"><?=number_format($view[wr_nogood])?></span><? } ?>
&nbsp;</div>
    </td>
</tr>
<tr>
<td style="height:1px; bgcolor:#eeeeee;"></td>
</tr>
<tr>
<td style="height:3px; background:url(<?=$board_skin_path?>/img/title_shadow.gif) repeat-x; line-height:1px; font-size:1px;"></td>
</tr>
<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
    if ($view[file][$i][source] && !$view[file][$i][view]) {
        $cnt++;
        echo "<tr><td height=30 background=\"$board_skin_path/img/view_dot.gif\">";
        echo "&nbsp;&nbsp;<img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle>";
        echo "<a href=\"javascript:file_download('{$view[file][$i][href]}', '{$view[file][$i][source]}');\" title='{$view[file][$i][content]}'>";
        echo "&nbsp;<span style=\"color:#888;\">{$view[file][$i][source]} ({$view[file][$i][size]})</span>";
        echo "&nbsp;<span style=\"color:#ff6600; font-size:11px;\">[{$view[file][$i][download]}]</span>";
        echo "&nbsp;<span style=\"color:#d3d3d3; font-size:11px;\">DATE : {$view[file][$i][datetime]}</span>";
        echo "</a></td></tr>";
    }
}

// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++) {
    if ($view[link][$i]) {
        $cnt++;
        $link = cut_str($view[link][$i], 70);
        echo "<tr><td height=30 background=\"$board_skin_path/img/view_dot.gif\">";
        echo "&nbsp;&nbsp;<img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle>";
        echo "<a href='{$view[link_href][$i]}' target=_blank>";
        echo "&nbsp;<span style=\"color:#888;\">{$link}</span>";
        echo "&nbsp;<span style=\"color:#ff6600; font-size:11px;\">[{$view[link_hit][$i]}]</span>";
        echo "</a></td></tr>";
    }
}
?>
<tr>
    <td height="150" style="word-break:break-all; padding:10px;">
        <?
        // 파일 출력
        for ($i=0; $i<=count($view[file]); $i++) {
            if ($view[file][$i][view])
                echo $view[file][$i][view] . "<p>";
        }
        ?>

        <!-- 내용 출력 -->
        <span id="writeContents"><?=$view[content];?></span>
       
        <?//echo $view[rich_content]; // 과 같은 코드를 사용할 경우?>
        <!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>

        <? if ($nogood_href) {?>
        <div style="width:72px; height:55px; background:url(<?=$board_skin_path?>/img/good_bg.gif) no-repeat; text-align:center; float:right;">
        <div style="color:#888; margin:7px 0 5px 0;">비추천 : <?=number_format($view[wr_nogood])?></div>
        <div><a href="<?=$nogood_href?>" target="hiddenframe"><img src="<?=$board_skin_path?>/img/icon_nogood.gif" align="absmiddle" border="0"></a></div>
        </div>
        <? } ?>

        <? if ($good_href) {?>
        <div style="width:72px; height:55px; background:url(<?=$board_skin_path?>/img/good_bg.gif) no-repeat; text-align:center; float:right;">
        <div style="color:#888; margin:7px 0 5px 0;"><span style='color:crimson;'>추천 : <?=number_format($view[wr_good])?></span></div>
        <div><a href="<?=$good_href?>" target="hiddenframe"><img src="<?=$board_skin_path?>/img/icon_good.gif" align="absmiddle" border="0"></a></div>
        </div>
        <? } ?>

</td>
</tr>
<? if ($view[wr_10]) { echo "<tr><td align='left' style='border-bottom:0px solid #E7E7E7; padding:5px 13;'><img src='{$board_skin_path}/img/icon_tag.gif'>&nbsp;$tags</td></tr>"; } // 태그 출력 ?>
<? if ($is_signature) { echo "<tr><td align='left' style='border-bottom:1px solid #E7E7E7; padding:5px 0;'>서명:$signature</td></tr>"; } // 서명 출력 ?>
</table>
<!--########### 이전글, 다음글 시작 : yesmoa 님의 스킨 소스에서 발췌 ###############--> 
<? if (!$board[bo_use_list_view]) { ?>
<table width=100% align=center border=0 cellpadding=0 cellspacing=0> 
  <tr><td height=1 bgcolor=#ececec></td></tr>
  <? if ($prev_href) { echo "<tr><td height=25> <img src='$board_skin_path/img/001.gif' align='absmiddle'> <a class='b1' href=\"$prev_href\"> $prev_wr_subject</a></td></tr>"; } ?> 
 
  <? if ($next_href) { echo "<tr><td height=25> <img src='$board_skin_path/img/003.gif' align='absmiddle'> <a class='b1' href=\"$next_href\"> $next_wr_subject</a></td></tr>"; } ?> 
  <tr><td height=1 bgcolor=#ececec></td></tr> 
</table> 
<? } ?> 
<!--########### 이전글, 다음글 끝 ###############-->

<!--관련글출력-->
<!--관련글출력 끝-->
<br>

<?
// 코멘트 입출력
include_once("./view_comment.php");
?>

<div style="height:1px; line-height:1px; font-size:1px; background-color:#ddd; clear:both;">&nbsp;</div>

<div style="clear:both; height:43px;">
    <div style="float:left; margin-top:10px;">
    <? if ($prev_href) {
echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\" id=\"btn_list\"><img src='{$board_skin_path}/img/btn_prev1.gif' align=absmiddle border='0' title='이전글보기'></a>"; } else { echo "<img src='{$board_skin_path}/img/btn_prev1no.gif' align=absmiddle border='0' title='글이 없습니다'>"; } ?><? echo "<a href=\"$list_href\" id=\"btn_list\"><img src='{$board_skin_path}/img/btn_list1.gif' align=absmiddle border='0'  title='목록보기'></a>"; ?><? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\" id=\"btn_list\"><img src='{$board_skin_path}/img/btn_next1.gif' align=absmiddle border='0'  title='다음글보기'></a>"; } else { echo "<img src='{$board_skin_path}/img/btn_next1no.gif' align=absmiddle border='0' title='글이 없습니다'>"; } ?>
    </div>

    <!-- 링크 버튼 -->
    <div style="float:right; margin-top:10px;">
    <?
    ob_start();
    ?>
    <? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a> "; } ?>
    <? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a> "; } ?>

    <? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_list_search.gif' border='0' align='absmiddle'></a> "; } ?>
    <? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
    <? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_modify.gif' border='0' align='absmiddle'></a> "; } ?>
    <? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>
    <? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>
    <? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
    <?
    $link_buttons = ob_get_contents();
    ob_end_flush();
    ?>
    </div>
</div>

<!--<div style="height:2px; line-height:1px; font-size:1px; background-color:#dedede; clear:both;">&nbsp;</div>-->

</td></tr></table><br>
<!--프린트공간 끝 소스코드 시작-->
</div>
<!--프린트공간 끝 소스코드 끝-->

<script language="JavaScript">
function file_download(link, file) {
    <? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
    document.location.href=link;
}
</script>

<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript">
window.onload=function() {
    resizeBoardImage(<?=(int)$board[bo_image_width]?>);
    drawFont();
}
</script>
<!-- 게시글 보기 끝 -->

--------------------
제가 쓰는 게시판 스킨의 view.skin.php 파일 내용입니다.
어느 부분을 바꿔야 사이 줄 사이 간격이 늘어날까요???

댓글 전체

줄 사이 간격이 글자 간격 말하는 건가요?

style 로 하시면 되겠는데요...
<td height="150" style="word-break:break-all; padding:10px;line-height:160%">
% 대신 px로 해도 됩니다.

새해 복 많이 받으세요
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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