게시판을 수정하였는데 부족한점이 있네요 정보
게시판을 수정하였는데 부족한점이 있네요본문
제가 사용한 태그입니다.
<div id="board_list">
<?
$list_view_cnt = 1;
// 게시물이 잇거나 뷰페이지가 아닐때
if(1 <= count($list) && $wr_id == ""){
for ($i=0; $i<$list_view_cnt; $i++) {
$html = 0;
if (strstr($list[$i]['wr_option'], "html1"))
$html = 1;
else if (strstr($list[$i]['wr_option'], "html2"))
$html = 2;
$list_view_content = conv_content($list[$i]['wr_content'], $html);
?>
<div style="border-bottom:1px #2a2a2a solid;margin-bottom:10px;">
<div style="border-top:3px #2a2a2a solid;border-bottom:1px #2a2a2a solid;color:#ffffff;width:100%;height:35px;">
<span style="float:left;font-weight:bold;margin-top:9px;margin-left:8px;">
<?=get_text($list[$i][wr_subject]);?>
</span>
<span style="float:right;margin-top:9px;margin-right:8px;">
조회 : <?=$list[$i][wr_hit];?>
</span>
</div>
<div> <!-- 익스 6 버그때문에 추가 -->
<div style="width:100%;margin:10px;clear:right;">
<?=$list_view_content;?>
</div>
<?
}
}
?>
</div>
</div>
게시판 리스트페이지에 맨첫번째글을 view페이지처럼 보여주는 작업을 했습니다.
그런데 공지사항을 올리게되면 계속 공지사항페이지만 보여지게 됩니다.
공지사항을 뺀 나머지 내용을 보이게 하려면 어떻게 수정을 해야하나요?
<div id="board_list">
<?
$list_view_cnt = 1;
// 게시물이 잇거나 뷰페이지가 아닐때
if(1 <= count($list) && $wr_id == ""){
for ($i=0; $i<$list_view_cnt; $i++) {
$html = 0;
if (strstr($list[$i]['wr_option'], "html1"))
$html = 1;
else if (strstr($list[$i]['wr_option'], "html2"))
$html = 2;
$list_view_content = conv_content($list[$i]['wr_content'], $html);
?>
<div style="border-bottom:1px #2a2a2a solid;margin-bottom:10px;">
<div style="border-top:3px #2a2a2a solid;border-bottom:1px #2a2a2a solid;color:#ffffff;width:100%;height:35px;">
<span style="float:left;font-weight:bold;margin-top:9px;margin-left:8px;">
<?=get_text($list[$i][wr_subject]);?>
</span>
<span style="float:right;margin-top:9px;margin-right:8px;">
조회 : <?=$list[$i][wr_hit];?>
</span>
</div>
<div> <!-- 익스 6 버그때문에 추가 -->
<div style="width:100%;margin:10px;clear:right;">
<?=$list_view_content;?>
</div>
<?
}
}
?>
</div>
</div>
게시판 리스트페이지에 맨첫번째글을 view페이지처럼 보여주는 작업을 했습니다.
그런데 공지사항을 올리게되면 계속 공지사항페이지만 보여지게 됩니다.
공지사항을 뺀 나머지 내용을 보이게 하려면 어떻게 수정을 해야하나요?
댓글 전체