최신글 2번째부터 가져오기 > 그누4 질문답변

그누4 질문답변

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

최신글 2번째부터 가져오기 정보

최신글 2번째부터 가져오기

본문

아래 latest에서 상요하고 있는 스킨 소스입니다.
썸네일 최신글이구요...

여기에 기능한가지는 더 추가하고 싶습니다.

최신글을 2번째 부터 가져오고 싶습니다...
가능한지 궁금합니다

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

$rows = count($list);
$style_name = "mw-group-$bo_table-$rows-$subject_len";


?>
<style type="text/css">
#<?=$style_name?> { clear:both; margin:0; border:0px solid #e1e1e1; }
#<?=$style_name?> .item { clear:both; display:none; }
#<?=$style_name?> .file-img-b { width:140px; height:94px; border:0; border-left:0; }
#<?=$style_name?> .subject { clear:both; height:21px; color:#666666; font-weight:bold; font-size:13px; }
#<?=$style_name?> .subject a { color:#666666; text-decoration:none; }
#<?=$style_name?> .prev { float:left; margin:0 0 0 0px; cursor:pointer; }
#<?=$style_name?> .next { float:left; margin:0 0px 0 0; cursor:pointer; }
#<?=$style_name?> .link { float:left; margin:0 0 0 0px; text-align:center; }
</style>

<div id="<?=$style_name?>">

<? for ($i=0; $i<$rows; $i++) { ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr><td colspan="4" height="1" bgcolor="cccccc"></td></tr><tr>
<?
$img = "$g4[path]/data/file/$bo_table/thumb/{$list[$i][wr_id]}";
if (!@file_exists($img)) $img = "$g4[path]/data/file/$bo_table/thumbnail/{$list[$i][wr_id]}";
if (!@file_exists($img)) $img = "{$list[$i][file][0][path]}/{$list[$i][file][0][file]}";
if (!@file_exists($img)) $img = "";
if (!$list[$i][wr_id]) $img = "";
if (@is_dir($img)) $img = "";


?>

<? if ($img) { ?>
    <td><a href="<?=$list[$i][href]?>"><img src="<?=$img?>" class="file-img-b"></a></td>
<? } ?>

    <td width="542" valign="top" style="padding-top:23; padding-right:13; padding-left:15;">
    <div class="subject"><a href="<?=$list[$i][href]?>"><span style="font-size:15px; letter-spacing:-1px;"><?=$list[$i][subject]?></span></a><span style="color:#FF6633; font-size:10px"><?=$list[$i]['comment_cnt']?></span></div>
<div style="color:#9a99aa;"><a href="<?=$list[$i][href]?>"><span style="color:#747172; text-decoration:none; line-height:160%;" ><?=cut_str(strip_tags($list[$i][wr_content]),350,"...")?></span></a></div>   
    </td>
   
    <td width="1" valign="middle">
        <table width="1" border="0" cellspacing="0" cellpadding="0">
            <tr><td width="1" height="15"></td></tr>
            <tr><td width="1" height="110" background="../skin/board/idea/img/dottom.gif"></td></tr>
            <tr><td width="1" height="15"></td></tr>
        </table>
  </td>
   
    <td width="127" style="padding-left:5;" valign="middle">
        <table width='98' border='0' cellspacing='0' cellpadding='0'>
          <tr><td height='28' valign='top'><span class='st_facebook_hcount' displayText='Facebook'></span></td></tr>
          <tr><td height='28' valign='top'><span class='st_twitter_hcount' displayText='Tweet'></span></td></tr>
        </table> 
        <table border='0' cellspacing='0' cellpadding='0'>
          <tr>
          <td width='63' align='right'><a href='<?=$good_href?>' target='hiddenframe'><img src='../skin/board/idea/img/good.gif' border='0' align='absmiddle'></a></td>
          <td width='8' background='../skin/board/idea/img/good1.gif'><font color='666666'></td>
          <td background='../skin/board/idea/img/good2.gif' align="center" style="padding-left:4; padding-right:4;"><font color='666666'><?=$list[$i][wr_good]?></font></td>
          <td width='2' background='../skin/board/idea/img/good3.gif'><font color='666666'></td>
          </tr>
        </table>
    </td>
  </tr>
</table>
<? } ?>
<? if (count($list) == 0) { echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td></td>
  </tr>
</table>"; } ?>

</div>
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로