인덱스 페이지에 최신글 공지사항 게시판이 안나타나네요.

인덱스 페이지에 최신글 공지사항 게시판이 안나타나네요.

QA

인덱스 페이지에 최신글 공지사항 게시판이 안나타나네요.

본문

인덱스 페이지에 메뉴별 개설된 게시판 중에서 3개를 해당영역에 맞게 추출할려고 하니 공지사항에 해당하는 게시판이 안나타나네요.
이래저래 해봐도 해결이 안돼 도움을 청합니다
도와주세요..^^;;;;






<?
define('_INDEX_', true);
include_once('./_common.php');

if (G4_IS_MOBILE) {
    include_once(G4_MOBILE_PATH.'/index.php');
    return;
}

// 초기화면 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오.
if ($config['cf_include_index']) {
    if (!@include_once($config['cf_include_index'])) {
        die('기본환경 설정에서 초기화면 파일 경로가 잘못 설정되어 있습니다.');
    }
    return; // 이 코드의 아래는 실행을 하지 않습니다.
}

include_once('./_head.php');
?>
 <img src="images/main/in_img.jpg" alt="">

<table width="1020" height="147" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="2">
<img src="images/main/01_01.gif" width="12" height="147" alt=""></td>
<td background="images/main/01_02.gif">
<img src="images/main/01_02.gif" width="302" height="37" alt=""></td>
<td>
<img src="images/main/01_03.gif" width="289" height="37" alt=""></td>
<td rowspan="2">
<img src="images/main/01_04.gif" width="13" height="147" alt=""></td>
<td>
<img src="images/main/01_05.gif" width="387" height="37" alt=""></td>
<td rowspan="2">
<img src="images/main/01_06.gif" width="17" height="147" alt=""></td>
</tr>
<tr>
<td>
<!-- 메인화면 최신글 시작 -->
<?
//  최신글
$sql = " select bo_table from `{$g4['board_table']}` a left join `{$g4['group_table']}` b on (a.gr_id=b.gr_id)  where a.bo_device <> 'mobile' and a.bo_show_menu = '1' and b.gr_show_menu = '1' order by b.gr_order, a.bo_order ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
    if ($i%2==1) $lt_style = "margin-left:20px";
    else $lt_style = "";
?>

        <?
        // 이 함수가 바로 최신글을 추출하는 역할을 합니다.
        // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.

        // 사용방법
        // latest(스킨, 게시판아이디, 출력라인, 글자수);        $row['bo_table']
        echo latest("basic", "er_notice", 5, 25);
        ?>
<?
}
?>
</td>
<td>
        <?
        // 이 함수가 바로 최신글을 추출하는 역할을 합니다.
        // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.

        // 사용방법
        // latest(스킨, 게시판아이디, 출력라인, 글자수);        $row['bo_table']
        echo latest("basic", "er_bokji", 5, 20);
        ?>

</td>
<td>
        <?
        // 이 함수가 바로 최신글을 추출하는 역할을 합니다.
        // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.

        // 사용방법
        // latest(스킨, 게시판아이디, 출력라인, 글자수);        $row['bo_table']
        echo latest("basic", "er_gallery", 5, 5);
        ?>
</td>
</tr>
</table>
<table width="1020" height="108" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="5">
<img src="images/main/02_01.gif" width="12" height="108" alt=""></td>
<td rowspan="5">
<img src="images/main/02_02.gif" width="302" height="108" alt=""></td>
<td rowspan="5">
<img src="images/main/02_03.gif" width="127" height="108" alt=""></td>
<td>
<img src="images/main/02_04.gif" width="111" height="9" alt=""></td>
<td rowspan="5">
<img src="images/main/02_05.gif" width="282" height="108" alt=""></td>
<td rowspan="5">
<img src="images/main/02_06.gif" width="169" height="108" alt=""></td>
<td rowspan="5">
<img src="images/main/02_07.gif" width="17" height="108" alt=""></td>
</tr>
<tr>
<td>
<img src="images/main/02_08.gif" width="111" height="29" alt=""></td>
</tr>
<tr>
<td>
<img src="images/main/02_09.gif" width="111" height="29" alt=""></td>
</tr>
<tr>
<td>
<img src="images/main/02_10.gif" width="111" height="27" alt=""></td>
</tr>
<tr>
<td>
<img src="images/main/02_11.gif" width="111" height="14" alt=""></td>
</tr>
</table>

<!-- 메인화면 최신글 끝 -->

<?
include_once('./_tail.php');
?>

이 질문에 댓글 쓰기 :

답변 3

<!-- 메인화면 최신글 시작 -->
<?
//  최신글
$sql = " select bo_table from `{$g4['board_table']}` a left join `{$g4['group_table']}` b on (a.gr_id=b.gr_id)  where a.bo_device <> 'mobile' and a.bo_show_menu = '1' and b.gr_show_menu = '1' order by b.gr_order, a.bo_order ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
    if ($i%2==1) $lt_style = "margin-left:20px";
    else $lt_style = "";
?>

        <?
        // 이 함수가 바로 최신글을 추출하는 역할을 합니다.
        // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.

        // 사용방법
        // latest(스킨, 게시판아이디, 출력라인, 글자수);        $row['bo_table']
        echo latest("basic", "er_notice", 5, 25);
        ?>
<?
}
?>


----------------------------------------------------------
위의 소스 부분을 모두 지우고 아래 한줄만 넣어 보세요.
----------------------------------------------------------

<?php echo latest("basic", "er_notice", 5, 25); ?>
답변을 작성하시기 전에 로그인 해주세요.
전체 123,498 | RSS
QA 내용 검색

회원로그인

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