답변 5개
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 2개
댓글을 작성하려면 로그인이 필요합니다.
</p><p style="word-break: break-all; line-height: 21.6px; color: rgb(51, 51, 51); font-family: dotum, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"><span style="font-size: 14.6667px;">if ($wr_id == $list[$i]['wr_id']) {</span></p><p style="word-break: break-all; line-height: 21.6px; color: rgb(51, 51, 51); font-family: dotum, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"><font color="#484848" face="돋움, Dotum, sans-serif"></font><span style="font-size: 14.6667px;"><span class="Apple-tab-span" style="white-space: pre;"> </span>$tr_css = ' class="list-now"';</span></p><p style="word-break: break-all; line-height: 21.6px; color: rgb(51, 51, 51); font-family: dotum, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"><font color="#484848" face="돋움, Dotum, sans-serif"></font><span style="font-size: 14.6667px;"><span class="Apple-tab-span" style="white-space: pre;"> </span>$subject_css = ' now';</span></p><p style="word-break: break-all; line-height: 21.6px; color: rgb(51, 51, 51); font-family: dotum, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"><font color="#484848" face="돋움, Dotum, sans-serif"></font><span style="font-size: 14.6667px;"><span class="Apple-tab-span" style="white-space: pre;"> </span>$num = '<span class="wr-text red">열람중</span>';</span></p><p style="word-break: break-all; line-height: 21.6px; color: rgb(51, 51, 51); font-family: dotum, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"><font color="#484848" face="돋움, Dotum, sans-serif"></font><span style="font-size: 14.6667px;"><span class="Apple-tab-span" style="white-space: pre;"> </span>} else if ($list[$i]['is_notice']) { // 공지사항</span></p><p style="word-break: break-all; line-height: 21.6px; color: rgb(51, 51, 51); font-family: dotum, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"><font color="#484848" face="돋움, Dotum, sans-serif"></font><span style="font-size: 14.6667px;"><span class="Apple-tab-span" style="white-space: pre;"> </span>$tr_css = ' class="active"';</span></p><p style="word-break: break-all; line-height: 21.6px; color: rgb(51, 51, 51); font-family: dotum, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"><font color="#484848" face="돋움, Dotum, sans-serif"></font><span style="font-size: 14.6667px;"><span class="Apple-tab-span" style="white-space: pre;"> </span>$subject_css = ' notice';</span></p><p style="word-break: break-all; line-height: 21.6px; color: rgb(51, 51, 51); font-family: dotum, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"><font color="#484848" face="돋움, Dotum, sans-serif"></font><span style="font-size: 14.6667px;"><span class="Apple-tab-span" style="white-space: pre;"> </span>$num = '<span class="wr-icon wr-notice"></span>';</span></p><p style="word-break: break-all; line-height: 21.6px; color: rgb(51, 51, 51); font-family: dotum, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"><font color="#484848" face="돋움, Dotum, sans-serif"></font><span style="font-size: 14.6667px;"><span class="Apple-tab-span" style="white-space: pre;"> </span>$list[$i]['ca_name'] = '공지';</span></p><p style="word-break: break-all; line-height: 21.6px; color: rgb(51, 51, 51); font-family: dotum, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"><font color="#484848" face="돋움, Dotum, sans-serif"></font><span style="font-size: 14.6667px;"><span class="Apple-tab-span" style="white-space: pre;"> </span>} else if ($list[$i]['icon_reply']) {</span></p><p style="word-break: break-all; line-height: 21.6px; color: rgb(51, 51, 51); font-family: dotum, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"><font color="#484848" face="돋움, Dotum, sans-serif"></font><span style="font-size: 14.6667px;"><span class="Apple-tab-span" style="white-space: pre;"> </span>$num = '<span class="en"></span><span style="font-size: 14.6667px;">'.$list[$i]['num'].'</span><span style="font-size: 14.6667px;"></span>';</span></p><p style="word-break: break-all; line-height: 21.6px; color: rgb(51, 51, 51); font-family: dotum, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"><font color="#484848" face="돋움, Dotum, sans-serif"></font><span style="font-size: 14.6667px;"><span class="Apple-tab-span" style="white-space: pre;"> </span>} else {</span></p><p style="word-break: break-all; line-height: 21.6px; color: rgb(51, 51, 51); font-family: dotum, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"><font color="#484848" face="돋움, Dotum, sans-serif"></font><span style="font-size: 14.6667px;"><span class="Apple-tab-span" style="white-space: pre;"> </span>$num = '<span class="en">'.$list[$i]['num'].'</span>';</span></p><p style="word-break: break-all; line-height: 21.6px; color: rgb(51, 51, 51); font-family: dotum, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"><font color="#484848" face="돋움, Dotum, sans-serif"></font><span style="font-size: 14.6667px;"> </span></p><p style="word-break: break-all; line-height: 21.6px; color: rgb(51, 51, 51); font-family: dotum, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"><font color="#484848" face="돋움, Dotum, sans-serif"></font><span style="font-size: 14.6667px;"><span class="Apple-tab-span" style="white-space: pre;"> </span>}</span></p><p style="word-break: break-all; line-height: 21.6px; color: rgb(51, 51, 51); font-family: dotum, sans-serif; background-color: rgb(255, 255, 255);"><span style="font-size: 14.6667px;">
답변에 대한 댓글 1개
글만 번호가 1,2,3,4 순으로 매겨지게요.
저렇게 하면
글과 리플 몽땅 번호가 매겨져서요.
댓글을 작성하려면 로그인이 필요합니다.
if ($wr_id == $list[$i]['wr_id']) {
$tr_css = ' class="list-now"';
$subject_css = ' now';
$num = '열람중';
} else if ($list[$i]['is_notice']) { // 공지사항
$tr_css = ' class="active"';
$subject_css = ' notice';
$num = '';
$list[$i]['ca_name'] = '공지';
} else if ($list[$i]['icon_reply']) {
$num = '';
} else {
$num = ''.$list[$i]['num'].'';
}
이런식으로 되어있어요.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
요렇게 되게 ...ㅎㅎㅎ
[code]
if ($wr_id == $list[$i]['wr_id']) {
$tr_css = ' class="list-now"';
$subject_css = ' now';
$num = '<span class="wr-text red">열람중</span>';
} else if ($list[$i]['is_notice']) { // 공지사항
$tr_css = ' class="active"';
$subject_css = ' notice';
$num = '<span class="wr-icon wr-notice"></span>';
$list[$i]['ca_name'] = '공지';
} else if ($list[$i]['icon_reply']) {
$num = '<span class="en"></span>';
$list[$i]['num'] = $list[$i]['num']-1;
} else {
$num = '<span class="en">'.$list[$i]['num'].'</span>';
}
[/code]