모바일 최신게시글 출력중에 특정 게시판만 하고 싶어요..님들..

모바일 최신게시글 출력중에 특정 게시판만 하고 싶어요..님들..

QA

모바일 최신게시글 출력중에 특정 게시판만 하고 싶어요..님들..

본문

모바일 통합게시판 최신게시글 출력하는 소스인데요..

특정 게시판 예를 들어 qna 게시판글만 출력하고 싶은데..

어떻게 손을 대어야 할지 모르겠습니다..

 

지도 부탁드립니다..꾸벅!

 

 

<?

// 이 파일은 새로운 파일 생성시 반드시 포함되어야 함

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

?>

<div class="clr blank"></div>

<ul data-role="listview">

<li data-role="list-divider">통합 최신글</li>

<?

for($i=0;$i<count($list);$i++){

 

$list_selected=$nbsp=$wr_comment="";

 

$list[$i]['subject'] = conv_subject($list[$i]['wr_subject'], $subject_len, "…");

 

if($wr_id==$list[wr_id]) $list_selected="class='list_selected'";

 

$reply = $list['wr_reply'];

 

if($list[$i][wr_reply]){

for ($k=0; $k<strlen($reply); $k++) $nbsp.= '  ';

$list[$i]['subject']=$nbsp."[re]".$list['subject'];

}

 

if($list[$i][wr_comment]){

 

$cmt=sql_fetch("select wr_datetime from ".$g4[write_prefix].$list[$i][bo_table]." where wr_is_comment=1 and wr_parent='$list[$i][wr_id]' order by wr_datetime desc");

 

if ($cmt[$i]['wr_datetime'] >= date("Y-m-d H:i:s", $g4['server_time'] - 86400)) 

$wr_comment="<span class='list_cmt_cnt_new'>{$list[$i][wr_comment]}</span>";

else $wr_comment="<span class='list_cmt_cnt'>{$list[$i][wr_comment]}</span>";

}

 

$icon_secret = "";

$contents = $list[$i][wr_subject];

if (strstr($list[$i]['wr_option'], "secret")){

$icon_secret = "<img src='$g4[m_path]/images/icon_secret.gif' align='absmiddle'>";

$contents="비밀글입니다.";

}

 

$icon_new = "";

if ($list[$i]['wr_datetime'] >= date("Y-m-d H:i:s", $g4['server_time'] - ($board['bo_new'] * 3600)))

$icon_new = "<img src='$g4[m_path]/images/icon_new.gif' align='absmiddle'>";

?>

 

<li><a href="<?=$g4[m_path]?>/view.php?bo_table=<?=$list[$i][bo_table]?>&wr_id=<?=$list[$i][wr_id]?>">

<h3><?=$list[$i][subject]?> <?if($wr_comment){?><span class="ui-li-count"><?=$wr_comment?></span><?}?></h3>

<p><?=$list[$i][bo_subject]?> / <strong><?=$list[$i][wr_name]?></strong> / <?=date("Y-m-d",strtotime($list[$i][wr_datetime]))?></p> </a>

</li>

<?}?>

</ul>

 

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
전체 2

회원로그인

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