코멘트가 달리면 상태 이미지가 변하는(접수완료->답변완료) 게시판의 상태 이미지를 최신글에 포함시키고 싶습니다. > 그누4 질문답변

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!

그누4 질문답변

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

코멘트가 달리면 상태 이미지가 변하는(접수완료->답변완료) 게시판의 상태 이미지를 최신글에 포함시키고 싶습니다. 정보

코멘트가 달리면 상태 이미지가 변하는(접수완료->답변완료) 게시판의 상태 이미지를 최신글에 포함시키고 싶습니다.

본문


그러니까
최신글에 제목하고 상태에 있는 이미지를 내보내고 싶은데
어떻게 해야 할까요
저 완전 생초보라서 자세히좀 설명 부탁드릴게요ㅠㅠㅠ

원 게시판 상태창에 달았던건

<?if($list[$i][comment_cnt]){?>
<img src="img/btn_complete.gif">
<?}else{?>
<img src="img/btn_wait.gif">
  <?}?>

이거입니다..


그리고 최신글 스킨 latest.skin.php 소스입니다


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

<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
    <td width='14'><img src='<?=$latest_skin_path?>/img/xe_latest_left.gif'></td>
    <td width='100%' background='<?=$latest_skin_path?>/img/xe_latest_bg.gif'>&nbsp;&nbsp;<strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong></td>
    <td width=37 background='<?=$latest_skin_path?>/img/xe_latest_bg.gif'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/xe_latest_right.gif' border='0'></a></td>
</tr>
</table>

<table width='100%' cellpadding='0' cellspacing='0'>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
    <td colspan='4' align='center'>
        <table width='98%'>
        <tr>
            <td height='25' style='font-size:11px;color:777;'><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>&nbsp;&nbsp;
            <?
            echo $list[$i]['icon_reply'] . " ";
            echo "<a href='{$list[$i]['href']}'>";
            if ($list[$i]['is_notice'])
                echo "<font style='font-family:돋움; font-size:11px; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
            else
                echo "<font style='font-family:돋움; font-size:11px; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
            echo "</a>";

            if ($list[$i]['comment_cnt'])
                echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:11px; color:#777;'>{$list[$i]['comment_cnt']}</span></a>";

            // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
            // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

            echo " " . $list[$i]['icon_new'];
            echo " " . $list[$i]['icon_file'];
            echo " " . $list[$i]['icon_link'];
            echo " " . $list[$i]['icon_hot'];
            echo " " . $list[$i]['icon_secret'];
            ?></td>
<td width='60' align='right' style='font-size:11px;color:777;'><?if($list[$i][comment_cnt]){?>
<img src="img/btn_complete.gif">
<?}else{?>
<img src="img/btn_wait.gif">
  <?}?></td></tr>
        </table></td>
</tr>
<? } ?>

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

</table>





댓글 전체

다르게는 해당 코멘트의 숫자 1이 올라가면 완료가 된다는 뜻이되는데 리스트에 보시는 숫자의 값을 정의한 $가 있을겁니다.{$list[$i]['comment_cnt']}이게 그거인거 같구요. 이 값으로 if 하시면 됩니다. 0보다 크면 src= img는 답변완료.gif 로 합니다.
전체 66,558 |RSS
그누4 질문답변 내용 검색

회원로그인

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