list.skin.php을 메인 화면에서 호출하려면 어떻게 해야하나요?

list.skin.php을 메인 화면에서 호출하려면 어떻게 해야하나요?

QA

list.skin.php을 메인 화면에서 호출하려면 어떻게 해야하나요?

본문

list.skin.php에서 글들을 메인 화면에서 호출하려하는데

게시판에서는 잘 나오는데

메인에서는 해당 게시판으로 설정이 안되어 있으니

'게시물이 없습니다' 라고 나옵니다.

해당 게시판에 올라온 글을 메인에서도 볼 수 있게 하려면 어떻게 해야하나요? 

 


<style type="text/css">
.title { height:40px; text-align:center; color:#000000; padding:5 0 5 0;}
.list { height:40px; color:#000000; padding:5 0 5 0;}
</style>
<table width="100%" cellpadding="0" cellspacing="0" style="margin-top:10;" border="0">
    <form name="fboardlist" method="post">
    <input type='hidden' name='bo_table' value='<?=$bo_table?>'>
    <input type='hidden' name='sfl'  value='<?=$sfl?>'>
    <input type='hidden' name='stx'  value='<?=$stx?>'>
    <input type='hidden' name='spt'  value='<?=$spt?>'>
    <input type='hidden' name='page' value='<?=$page?>'>
    <input type='hidden' name='sw'   value=''>
    <tr><td bgcolor="#DC011D" height="2" colspan="9"></td></tr>
    <tr><td bgcolor="#000000" height="1" colspan="9"></td></tr>
    <tr>
        <td class="title" width="50"><? if ($is_checkbox) { ?><input onclick="if (this.checked) all_checked(true); else all_checked(false);" type="checkbox"><?}else{?>번호<?}?></td> 
        <td class="title" width="50"><?=subject_sort_link('wr_datetime', $qstr2, 1)?>등록일</a></td>
        <td class="title" width="100">공사분류</td> 
        <td class="title">제목</td> 
        <td class="title" width="70">공사지역</td> 
        <td class="title" width="70">공사면적</td> 
        <td class="title" width="80">추정예산</td> 
        <td class="title" width="60"><?=subject_sort_link('wr_12', $qstr2, 1)?>견적마감</td> 
        <td class="title" width="60">견적상황</td> 
    </tr>
    <tr><td bgcolor="#CCCCCC" height="1" colspan="9"></td></tr>
    <? 
    for ($i=0; $i<count($list); $i++) { 
        $bg = $i%2 ? 0 : 1;
 //건축물분류
 $wr3   = explode("|",$list[$i][wr_3]);
  
 //주소
 $wr7   = explode("|",$list[$i][wr_7]);
 $addr   = explode(" ",$wr7[2]);
 //평수
 $wr6   = explode("|",$list[$i][wr_6]);
 //금액
 $wr4   = explode("|",$list[$i][wr_4]);
    ?>
    <tr align="center">
        <td class="list">
 <? 
 if ($list[$i][is_notice]) // 공지사항 
     echo "<b>공지</b>";
 else if ($wr_id == $list[$i][wr_id]) // 현재위치
     echo "<span class='current'>{$list[$i][num]}</span>";
 else
     echo $list[$i][num];
 ?>
 <? if ($is_checkbox) { ?><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"><? } ?>
 </td> 
        <td class="list"><?=$list[$i][datetime2]?></td>
        <td class="list"><?=substr($wr3[0],0,10)?></td> 
        <td class="list" align="left">
 <? 
            echo $nobr_begin;
            echo $list[$i][reply];
            echo $list[$i][icon_reply];
            if ($is_category && $list[$i][ca_name]) { 
                //echo "<span class=small><font color=gray>[<a href='{$list[$i][ca_name_href]}'>{$list[$i][ca_name]}</a>]</font></span> ";
            }
            if ($list[$i][is_notice])
                echo "<a href='{$list[$i][href]}'><span class='notice'>{$list[$i][subject]}</span></a>";
            else
                echo "<a href='{$list[$i][href]}'>{$list[$i][subject]}</a>";
            echo " " . $list[$i][icon_new];
            echo " " . $list[$i][icon_secret];
            echo $nobr_end;
 ?>
 </td> 
        <td class="list"><?=$addr[0]?></td> 
        <td class="list"><?=$wr6[0]?> ㎡</td> 
        <td class="list"><?=($wr4[1]=="check")?"상담후결정":$wr4[0];?></td> 
        <td class="list"><?=substr($list[$i][wr_12],2,2)?>.<?=substr($list[$i][wr_12],4,2)?>.<?=substr($list[$i][wr_12],6,2)?></td> 
        <td class="list">
 <? 

 if($list[$i][wr_12] < date("Ymd",time())){ 
     if ($list[$i][wr_2]=="완료"){
         echo "<img src='$board_skin_path/img/ing4.gif' align='absmiddle'>";
     }else{
         $sql  = " update $write_table set wr_2 = '마감' where wr_id = '".$list[$i][wr_id]."' ";
         sql_query($sql);
         echo "<img src='$board_skin_path/img/ing3.gif' align='absmiddle'>";
     }
 }else{ 
     if ($list[$i][wr_2]=="신청") echo "<img src='$board_skin_path/img/ing1.gif' align='absmiddle'>";
     else if ($list[$i][wr_2]=="진행") echo "<img src='$board_skin_path/img/ing2.gif' align='absmiddle'>";
     else if ($list[$i][wr_2]=="마감") echo "<img src='$board_skin_path/img/ing3.gif' align='absmiddle'>";
     else echo "<img src='$board_skin_path/img/ing4.gif' align='absmiddle'>";
 }
 ?>
 </td> 
    </tr>
    <tr><td bgcolor="#CCCCCC" height="1" colspan="9"></td></tr>
    <?}?>
    <? if (count($list) == 0) { echo "<tr><td colspan='9' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
    </form>
</table>

이 질문에 댓글 쓰기 :

답변 3

echo latest("basic", bo_table명, 5, 25); 이렇게하면 latest스킨에서 basic스킨을 사용하여 해당게시판 글을 불러옵니다.

메인에 해당게시판과 똑같이하고싶다면/skin/latest/basic로가셔서 스타일시트랑 게시판좀 수정하세요

답변을 작성하시기 전에 로그인 해주세요.
전체 123,127 | RSS
QA 내용 검색

회원로그인

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