리스트 출력 질문

게시판 리스트.
공지글에는 빨간색
일반글에는 검정색
답글에는 흰색
 
어떻게 해야 될까요?
아래처럼 했더니만 공지글이 두개로 나오고...
 
 
        if ($list[$i][is_notice]){
            echo "<a href='{$list[$i][href]}'><font color=red>{$list[$i][subject]}</font></a>";
 }
        if ($list[$i][reply]){
            echo $list[$i][reply];
            echo $list[$i][icon_reply]." ";
            echo "<a href='{$list[$i][href]}'><span class=white>{$list[$i][subject]}</font></a>";
 } else {
            echo "<a href='{$list[$i][href]}'><font color=black>{$list[$i][subject]}</font></a>";
 }
|

댓글 4개

<?
echo $nobr_begin;
echo $list[$i][reply];
echo $list[$i][icon_reply];
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
echo "<font color=red>{$list[$i][subject]}</font></font>";
else {
if ($list[$i][reply]) {
echo "<font color=white>{$list[$i][subject]}</font>";

} else {

echo "<font color=black>{$list[$i][subject]}</font>";
}
}
echo "</a>";

if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:7pt;'>{$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];
echo $nobr_end;
?>

확인 안했슴.....ㅎㅎㅎ
또 지우실까봐서용~~~
잘 됩니다. ^^

참! 질문한 것은 지우지 않아요. ㅋㄷ
유아원님때문에 괴로운 사람이 있데요...자게에.....ㅠ.ㅠ
오잉? 요즘 자게를 잘 안 가봐서... ^ ^;
누구지... ㅡ.ㅡ,,
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
19년 전 조회 1,164
19년 전 조회 1,527
19년 전 조회 1,638
19년 전 조회 3,783
19년 전 조회 1,553
19년 전 조회 1,093
19년 전 조회 1,534
19년 전 조회 1,552
19년 전 조회 1,317
19년 전 조회 1,218
19년 전 조회 1,524
19년 전 조회 1,170
19년 전 조회 1,331
19년 전 조회 1,598
19년 전 조회 1,520
19년 전 조회 1,900
19년 전 조회 967
19년 전 조회 3,383
19년 전 조회 1,020
19년 전 조회 1,048