최신게시물에 new 아이콘 표기 소스 문의 드려요. > 그누4 질문답변

그누4 질문답변

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

최신게시물에 new 아이콘 표기 소스 문의 드려요. 정보

최신게시물에 new 아이콘 표기 소스 문의 드려요.

본문

갤러리형 최근게시물입니다.
게시판처럼 제목 끝자락에 신규글은 new로 표기하고, 그외 기타 아이콘등을 표기하려는데,
잘 안되네요. 소스코드좀 문의해봄니다. 고수분들 답변 부탁드려요^^;;

=======================================================================================

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


$uni = md5(uniqid(rand(), true));

list($line_mod, $height) = explode(",", $options);

$box_height = (int)$line_mod * (int)$height;
?>

<table width=100% cellpadding=0 cellspacing=0 border=0>
<colgroup width=14>
<colgroup>
<colgroup width=37>
<colgroup width=14>
<!--<tr>
    <td><img src='<?=$latest_skin_path?>/img/latest_t01.gif'></td>
    <td background='<?=$latest_skin_path?>/img/bg_latest.gif'>&nbsp;&nbsp;<strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' onfocus="this.blur()"><?=$board[bo_subject]?></a></strong></td>
    <td background='<?=$latest_skin_path?>/img/bg_latest.gif'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'onfocus="this.blur()"><img src='<?=$latest_skin_path?>/img/more.gif' border=0></a></td>
    <td><img src='<?=$latest_skin_path?>/img/latest_t02.gif'></td>
</tr> -->
<tr><td colspan='4' align='center' style='padding-left:5px; padding-right:5px; padding-top:5px; padding-bottom:5px;'>
<table width="100%" align="center" border="0">
<? if (count($list) == 0) { ?>
    <tr><td colspan=4 align=center height=50>no images</td></tr>
<? } else { ?>
<tr>

<?
for ($i=0; $i<count($list); $i++)
{
    if ($i > 0)
    $title = get_text($list[$i][subject]);
//    $content = cut_str(get_text($list[$i][wr_content]), 80);
    $img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
    if (!file_exists($img) || !$list[$i][file][0][file])
        $img = "$latest_skin_path/img/noimage.gif";
    $href = "$g4[bbs_path]/board.php?bo_table=$bo_table";

    echo <<<HEREDOC
    <td width='125' height='90' valign='top' align='center'>
      <table width='125' height='90' border='0' cellpadding='0' cellspacing='0' align='center'>
        <tr>
          <td width='125' height='90'  align='center'>
<div style='width:125px;;border:1px solid #CCCCCC;padding:3px' align='center'>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}' onfocus='this.blur()'><img src='{$img}' width='125' height='90'  border='0' align='absmiddle'></a>
</div>
          </td>
      </tr>
  <tr>
  <td width='150' height='20' align='center' valign='bottom'>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}' onfocus='this.blur()'>{$list[$i][subject]}</a>
  </td>
</tr>
    </table>
  </td>
 
HEREDOC;
}
}
?>
 
</tr>
</table>
</td></tr>
</table>

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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